I have a 5-core solr 1.4 master that replicates to another 5-core solr using solr replication as described here . All recordings are performed against the master and are periodically interrupted by subordinates. This is done using the following sequence:
- Commit each core core
- Replication on every slave core
- Optimization on every slave core
- Commit each slave core
The problem I ran into is that the slave seems to be holding old index files and is taking up more disk space. For example, after 3 repetitions, the main data directory of the main core looks like this:
$ du -sh * 145M index
But the data directory on the slave kernel looks like this:
$ du -sh * 300M index 144M index.20100621042048 145M index.20100629035801 4.0K index.properties 4.0K replication.properties
Here is the contents of index.properties:
#index properties
And replication.properties:
#Replication details
Solrconfig.xml for this slave contains a default delete policy:
[...] <mainIndex> <unlockOnStartup>false</unlockOnStartup> <reopenReaders>true</reopenReaders> <deletionPolicy class="solr.SolrDeletionPolicy"> <str name="maxCommitsToKeep">1</str> <str name="maxOptimizedCommitsToKeep">0</str> </deletionPolicy> </mainIndex> [...]
What am I missing?
source share