Moving ZooKeeper Servers

2009-05-04 Thread Satish Bhatti
Here is the scenario: (1) We have 2 live instances of our application, running on 2 different sets of machines, a preproduction instance and a production instance. As part of this setup we have 5 ZooKeeper servers running on machines pre-1 thru pre-5. They have been running for several days. (2)

Re: Moving ZooKeeper Servers

2009-05-04 Thread Ted Dunning
I think it would be easier to add the production machines to the cluster one by one and then remove the pre-production ZK instances from the cluster one by one. This gives you continuity that you lack otherwise. Adding machines is a matter of changing the configuration on each ZK and restarting Z

Re: Moving ZooKeeper Servers

2009-05-04 Thread Mahadev Konar
Hi Satish, Is the re generation of state in production something that is not acceptable? Copying over the whole datadir and datalogdir as it is maintaining the dirctory structure would be necessary. Also, in general this is a bad idea (just to warn you) since you would have to be careful with da

Re: Moving ZooKeeper Servers

2009-05-04 Thread Ted Dunning
In fact, the much, much simpler approach of bringing up the production ZK cluster and simply writing a program to read from the pre-production cluster and write to the production one is much more sound. If you can't do that, you may need to rethink your processes since they are likely to be delica