hello everyone ,
i would like to know , what are benefits to added a second elasticsearch node (beside that make elasticsearch in green state ), and how to proceed via docker-compose (i installed elk stack via docker) ?
thank you in advance
hello everyone ,
i would like to know , what are benefits to added a second elasticsearch node (beside that make elasticsearch in green state ), and how to proceed via docker-compose (i installed elk stack via docker) ?
thank you in advance
On the same physical machine? I think it does make a lot of sense to add a new one.
If you just want to have a green cluster with one single node, just change the number of replica shards to 0 in your index settings.
thank you for your response
yes it's for the same physical machine , i am asking if when we added a second node (by the way each node do an job ,like an multithreading code ) that increase performance .
On the same physical machine? I think it will most likely degrade the performance but you have to test it.
i tried to make number of replica "0" with this command :
curl -XPUT 'localhost:9200/my_index/_settings' -d '{
"index.number_of_replicas" : 0
}'
it doesn't work with this error message :
{"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}
You need to pass the json content type. Like:
curl -XPUT 'localhost:9200/my_index/_settings' -H 'Content-Type: application/json' -d'{
"index.number_of_replicas" : 0
}'
thank you , it works
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.