Search code examples
javajmswebspheremessage-driven-beancluster-computing

Propagating configuration within the WAS cluster by means of MOM


I am developing application which is embedded within the cluster environment in Websphere AS. I am using several nodes and sometimes I would like to change configuration settings on the fly and propagate it to all nodes within the cluster. I don't want to hold the config in the db or at least I would like to cache it on the node level and trigger config refresh action which forces each node to refresh the config from some common ground (i.e. db or net drive) to avoid constant round-trips to the config storage.

More over some configuration can't be stored in db i.e. log level needs to be applied on the logger object in each node separately.

I was thinking about using JMS Topics and publish/subscribe approach to achive that goal. The idea is that each node could subscribe to each Topic and no matter which nodes initate the config change modification would be propagated to all nodes within the cluster.

Has anyone ever tried to do that in WAS and whether there are any obstacles with this approach. If there are or if you have any other suggestion on how to solve that problem I would be very greatfull for your help.

Tx in advance, Marcin


Solution

  • Currently we solved the problem with maybe not the most pretty approach but with the most simple one. Since we are using only 2 nodes we have possibility to enter web interface of specific node where we modify settings per each node. Maybe it is not very pretty but for now it is the easiest way. The config is stored in DB and we are planning to trigger config reload in each node and change the log level per node as well.