On Thu, Aug 6, 2009 at 4:10 AM, Robert Petersen <rober...@buy.com> wrote:
> Maintenance Questions: In a two slave one master setup where the two > slaves are behind load balancers what happens if I have to restart solr? > If I have to restart solr say for a schema update where I have added a > new field then what is the recommended procedure? > > If I can guarantee no commits or optimizes happen on the master during > the schema update so no new snapshots become available then can I safely > leave rsyncd enabled? When I stop and start a slave server, should I > first pull it out of the load balancers list or will solr gracefully > release connections as it shuts down so no searches are lost? > We pull slaves out of the load balancer, wait for 15-20 seconds and then stop the tomcat process. > > What do you guys do to push out updates? > Disable the cron job on all slaves (which calls snappuller). Update schema on master and re-index. For each slave: Take it out of rotation, stop tomcat, update the schema, start tomcat, call snappuller, start cron. This is now a piece of cake with the java based replication in Solr 1.4 which supports replicating configuration too without downtime. -- Regards, Shalin Shekhar Mangar.