Change default value of elasticsearch replicas
After executing "freezer-scheduler register" we face problem that all shards failed in elasticsearch (ES). If we use number of replicas "0" according to ES documentation for one node installation then this issue disappeared. After "first use" of freezer tool cloud engineer can add additional ES nodes to cluster and fine tune this value in configuration file. Change-Id: I4f2a6562358aefb6244f8d0590a9f138db19a925
This commit is contained in:
parent
176d895360
commit
d5ae874e92
|
@ -51,7 +51,9 @@ delay_auth_decision = False
|
|||
db=elasticsearch
|
||||
hosts='http://elasticsearch_host:9200'
|
||||
# freezer-db-init uses the following parameter to set the number of replicas
|
||||
number_of_replicas=2
|
||||
# In a production environment, this value should be equal to:
|
||||
# (Number of elasticsearch node in the cluster - 1)
|
||||
number_of_replicas=0
|
||||
|
||||
#use_ssl=False
|
||||
#ca_certs=''
|
||||
|
|
|
@ -33,7 +33,7 @@ from freezer_api.common import db_mappings
|
|||
DEFAULT_CONF_PATH = '/etc/freezer-api.conf'
|
||||
DEFAULT_ES_SERVER_PORT = 9200
|
||||
DEFAULT_INDEX = 'freezer'
|
||||
DEFAULT_REPLICAS = 1
|
||||
DEFAULT_REPLICAS = 0
|
||||
|
||||
|
||||
class MergeMappingException(Exception):
|
||||
|
|
Loading…
Reference in New Issue