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:
On 4 Nov., 15:14, kalyan kalyanc...@gmail.com wrote:
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.