I’ve had another flash of inspiration - now i’m not sure if this functionality is available when you install CF in MultiServer config (I install in WAR/EAR mode) and have access to the Enterprise Administrator but i thought i’d share it with you anyway.
At the moment I only have two load balanced CF6 Pro servers but there’s potential to be moving to two load balanced CF7 Enterprise servers each running 3 instances of CF. Currently when I need to make a tweak in the administrator I have to do it on both servers, with the multiple instances I’d have to make changes in 6 administrators! With the new Admin API wouldn’t it be cool if I could configure one node as a ‘master’ node and then sync it’s settings to the other instances in the cluster? Sure sounds like it would save a load of time….! Or is there a single XML config file I can copy between the servers and achieve the same thing?
February 12th, 2005 at 11:50 am
Why not go all out?
You could use either the DirectoryWatcher Gateway to monitor changes to the config files, when the XML file changes you could pick it up and use JMS to send the config changes to JMS Listeners on the other 5 servers.
Or could could use the SocketGateway to either stream a file into an instance of a Java java.io.FileStream or just loop the config file and write each piece into a sending gateway on one port and listeners on the other 5.
If you’re going to use CFMX7 for wonderful, new, creative things… why not go all out?
(I’m no Java whiz, I’ll guarantee you I probably got some of that WAY wrong… it was still fun!)
February 12th, 2005 at 1:33 pm
The Admin API is available in all editions so you could access it as a web service from the other servers (you may need to build a web service wrapper to manage session so that you can login and then execute each command).
Copying the XML files across servers would work but you’d have to restart servers to read the changes in - the Admin API means you don’t need to restart.