default the _river to 1/1 for better OOB experiance (single node recovery with local gateway support)
This commit is contained in:
parent
3a5938b2d1
commit
c96014bb90
|
@ -179,7 +179,7 @@ public class MetaDataCreateIndexService extends AbstractComponent {
|
|||
}
|
||||
if (request.settings.get(SETTING_NUMBER_OF_REPLICAS) == null) {
|
||||
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 {
|
||||
indexSettingsBuilder.put(SETTING_NUMBER_OF_REPLICAS, settings.getAsInt(SETTING_NUMBER_OF_REPLICAS, 1));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue