On 3/11/2013 11:56 AM, feroz_kh wrote:
We are planning to upgrade our solr servers from version 3.5 to 4.1. We have master slave configuration and the index size is quite big (i.e. around 14 GB ). 1. Do we really need to re-format the whole index , when we upgrade to 4.1 ? 2. What will be the consequences - if we do not re-format and simply upgrade war file and config files ( solrconfig.xml, schema.xml ) on all slaves and master together. (Shutdown all master & slaves and then upgrade & startup) ? 3. If re-formatting is neccessary - then what is the best tool to achieve it. ( How long does it usually take to re-format the index of size around 14GB ) ?
If you are replicating from 3.5 to 4.1, then your index will be in the 3.5 format. If you upgrade both the master where you index and the slave(s), existing index files will be in the old format, new index segments will be in the new format. If you were to optimize your index after upgrading, it would completely replace it with the new format.
For me on a fast I/O subsystem (six 1TB SATA drives in RAID10), it takes about ten minutes to optimize a 22GB index on Solr 3.5. Solr 4.1 needs to compress stored fields, which means extra CPU time, but less time actually writing to disk, so it would be about the same or possibly less.
Thanks, Shawn