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 Leonid=192.168.0.2:51002
[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':

foobar
foo
bar