Changing index replication factor to 0

Currently I am working on a single node Elasticsearch setup. But the replication factor was set to 1 by default. The space on my node is 3TB. If I decrease the replication factor to 0 , what will happen in that case?

  1. On the current node since replication factor is 1 , does this create 2 replicas?
  2. What will happen to the already consumed space on this node, will that be decreased or will it not impact?
  3. Once I move to production, should I move replication factor back to 1 or this will only be required if another node is added.

Basically I want to understand the concept of changing the replication factor on the space consumed on the node.

If you have a single node then you will never be able to allocate replicas, so it makes no impact.

Thank you for replying. So that means if I need additional space I would have to add new nodes, decreasing replication factor would not help. Right?

If you add a new node to the cluster, then replicas will, by default, be allocated. That means you need two nodes of the same size as your existing node to fit all the data. If you added a 3rd node, then per node usage would be lower.

Thanks this helps!!

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