Default number of replicas for Elastic Search index


be default when an index gets created in E.S. it will always have at least one replica. In a simple one node environment, I do not have a need for replicas at all. I know how to change the number of replica's to 0 AFTER an index has been created, but how can I configure E.S., so it does not create a replica for any index we create ?

I know we can use 'curl' and do this, but most indices are created by end-users using Kibanan, thus they cannot use 'curl' at all.


You can force this with an index template:

  "template": "INDEXorPATTERN",
  "version" : 50001,
  "settings" : {
    "index.refresh_interval" : "5s",
    "number_of_shards": "1",
    "number_of_replicas": "0"
    "mappings": {

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.