default the _river to 1/1 for better OOB experiance (single node recovery with local gateway support)

This commit is contained in:
kimchy 2010-09-23 02:46:13 +02:00
parent 3a5938b2d1
commit c96014bb90
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ public class MetaDataCreateIndexService extends AbstractComponent {
} }
if (request.settings.get(SETTING_NUMBER_OF_REPLICAS) == null) { if (request.settings.get(SETTING_NUMBER_OF_REPLICAS) == null) {
if (request.index.equals(riverIndexName)) { if (request.index.equals(riverIndexName)) {
indexSettingsBuilder.put(SETTING_NUMBER_OF_REPLICAS, settings.getAsInt(SETTING_NUMBER_OF_REPLICAS, 2)); indexSettingsBuilder.put(SETTING_NUMBER_OF_REPLICAS, settings.getAsInt(SETTING_NUMBER_OF_REPLICAS, 1));
} else { } else {
indexSettingsBuilder.put(SETTING_NUMBER_OF_REPLICAS, settings.getAsInt(SETTING_NUMBER_OF_REPLICAS, 1)); indexSettingsBuilder.put(SETTING_NUMBER_OF_REPLICAS, settings.getAsInt(SETTING_NUMBER_OF_REPLICAS, 1));
} }