Steven Erat's Blog Steven Erat Photography
 
 
Viewing By Entry
 
 

TalkingTree  JRun 4 clusters and the jrunserver.store file

 

Here I'm reposting a recent reply to the CFGURU mailing list regarding usage of jrunserver.store when clustering JRun servers.

> You should note that the jrunserver.store file
> in the directories for the servers in a
> cluster (these directories I speak of are the ones beneath the
> "wsconfig" directory) contain a list of the proxy port
> numbers for all of the servers in a cluster.

The jrunserver.store file is more of a bootstrap to get the connector started. It doesn't necessarily have to contain a list of all cluster members and their proxy port. The webserver will connect to the first available server listed in the .store file and begin a dialog with it to get a complete list of cluster members and their proxy ports. Connector logging will show this. There is a misconception that the jrunserver.store must contain a list clustered servers and that adding a server's ip and proxy port to it is sufficient to cluster, but neither are true. Any manual modifications you make to it will be overwritten at runtime.

Below is a snippet from a recent connector log when using CFMX 6.1 U1 on JRun4 U4 with Apache 2 on Linux (the connector logging defaults to Apache error_log)

In this example, I have two JRun servers clustered between two machines. In this case, the jrunserver.store file contained only 192.168.0.3:51020.

[Tue Nov 23 10:51:22 2004] [notice] jrApache[init] JRun 4.0 (Build 84683) Apache 2 module - Sep 2 2004 07:07:16
...
[Tue Nov 23 11:19:07 2004] [notice] jrApache[3514: 18438] trying to bootstrap from "192.168.0.3:51020"
[Tue Nov 23 11:19:07 2004] [notice] jrApache[3514: 18438] 192.168.0.3:51020 initPool finished
[Tue Nov 23 11:19:07 2004] [notice] jrApache[3514: 18438] initialized temp proxy for 192.168.0.3:51020
[Tue Nov 23 11:19:07 2004] [notice] jrApache[3514: 18438] 192.168.0.3:51020 fetching clustered-servers
...
[Tue Nov 23 11:19:07 2004] [notice] jrApache[3514: 18438] clustered-servers: Vagrant=192.168.0.3:51020\nLeonid=192.168.0.2:51002\n
[Tue Nov 23 11:19:07 2004] [notice] jrApache[3514: 18438] Vagrant = 192.168.0.3:51020
[Tue Nov 23 11:19:07 2004] [notice] jrApache[3514: 18438] Leonid = 192.168.0.2:51002

JRun server keeps cluster definitions in {JRun4_HOME}/lib/jmc.xml. As an example here is cluster 'foobar' having servers 'foo' and 'bar':

<cluster>
<domain-name>foobar</domain-name>
<server>foo</server>
<server>bar</server>
</cluster>

 


Comments

Well, I'm not if this is really a misconception more than it is a change in behavior, correct? We use JRun with Updater 2 on a couple of boxes, and that version still relied on the servers being listed in the jrunserver.store file. Didn't the current use of jrunserver.store get introduced with Updater 3? (We had a support call with a Macromedia engineer and I believe she told me this.)


Dave,

I think you are correct. I am most familiar with working with JRun 4 Updater 3 and Updater 4, and I've encountered several people that believe that they can directly edit the jrunserver.store file based on their experience with JRun 3.1 or perhaps an earlier version of JR4. The misconception must be due to a change, but I first thought the change was between JR3.1 and JR4.


Adding a link in the comments of this blog entry to cross reference another blog entry where jrunserver.store is discussed further in those comments:

http://www.talkingtree.com/blog/index.cfm?mode=ent...


 

 

Calendar

 
Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    

Search This Site

 
This is an exact search only

About This Site

 
Adobe Alumni & Community Professional. Expert in ColdFusion, Flex, LCDS, Photoshop, Lightroom. Linux RHCE. Follow Me!. For my photography check out Boston Portrait Photographer.
More about me

Recent Entries

 
ColdFusion 9.01 Server Monito..

Recent Comments

 
Posted By Swagat:
Ben Forta, best-selling ColdFusion author is coming to India this August at India's largest Adobe Flash Platform Conference. Ben Forta will conduct a ...

Posted By Steve:
The updated presentation I gave at CF.Objective() 2010 is available here: [link] At the end of the preso I gave a brief, pre-recorded demo of wri ...

Posted By Brad Munz:
I've come across a OOM problem in HotSpot which looks alot like this: java.lang.OutOfMemoryError: requested 4096000 bytes for GrET in /BUILD_AREA/jdk6 ...

recently played

 

no song is playing

now playing, a plug-in for itunes

Categories

 
RSS Adobe (34)
RSS Bicycling (9)
RSS Blogging (39)
RSS Books (13)
RSS Breeze (13)
RSS CFMX Podcasts (10)
RSS ColdFusion (429)
RSS Computer Technology (51)
RSS Events (26)
RSS Flex (20)
RSS Gadgets (10)
RSS HiTech Industry (16)
RSS Java (25)
RSS Learning (57)
RSS Linux (70)
RSS Mac OS X (22)
RSS Macromedia (27)
RSS Meetup (35)
RSS New England (62)
RSS Odds & Ends (25)
RSS Outdoors (32)
RSS Personal (29)
RSS Photos (111)
RSS Photoshop (29)
RSS Podcasts (18)
RSS Rants (19)
RSS Restaurants (8)
RSS Science (34)
RSS Spain (16)
RSS Travel (42)
RSS Twitter (10)
RSS Video (20)
RSS Webcam (3)
RSS Writing (10)

Blogs I Read

 
Terrence Ryan
Ben Forta
Ray Camden
Kinky Solutions
Dan Vega
Gary Gilbert
Simeon Bateman
Red Hat Blogs
O'Reilly Digital Media
O'Reilly Radar
John Nack
The Strobist
Scott Kelby
Matt Kloskowski
Joe McNally
Digital Photography School
Engadget
Science Blog

RSS

 


Add to Google
Add to My Yahoo!

Aggregated By

 


Aggregated by ColdFusionBlogger.org

Credits and Stuff

 
BlogCFC - Free ColdFusion Powered Blog Software
CJM Group - ColdFusion Website Hosting


 
 
blog | photos | flickr | referers | webcam | stats | about | contact
 
Copyright © 2010 Steven Erat. All rights reserved.
This is a personal weblog. The opinions expressed here represent my own and not those of my employer