Creating replicas dynamically


(BARNEY) #1

Hi,
Can any one please tell me how to create replicas dynamically?
Because at present i configure my node with 2 shards and 0
replica(then cluster health is green),if no memory in 1st node and
want to index more documents ,then i need to create one more node
having replica of the first node.

Thanks,
Kalyan


(Karussell) #2

What do you want to achieve?

Replicas means 'duplications' of your shards, so it will use more
memory/resources if you increase the replica count...
if you want to distribute one index you'll need to increase the shard
count (or split the index). Setting the shard count is only possible
when creating an index, so you'll need to reindex.

Nevertheless Here is the API:
http://www.elasticsearch.org/guide/reference/api/admin-indices-update-settings.html

Peter.

On 4 Nov., 15:14, kalyan kalyanc...@gmail.com wrote:

Hi,
Can any one please tell me how to create replicas dynamically?
Because at present i configure my node with 2 shards and 0
replica(then cluster health is green),if no memory in 1st node and
want to index more documents ,then i need to create one more node
having replica of the first node.

Thanks,
Kalyan


(system) #3