Configuring replica nodes at a global level

Hi Pahni,

I'm not 100% sure of what your are trying to achieve - but here are some
tools that would probably help. The thing to realise is that replicas are
copies of index shards and automatically spread out through the cluster to
balance usage. There is no notion of a replica node but rather a replica
shard.

That said, things you can do to control replica counts:

  1. Use index templates to control the default number of replicas
    (recommended)
    : Elasticsearch Platform — Find real-time answers at scale | Elastic
  2. Use elasticsearch.yml to control the default number of replicas (you
    have to make sure all nodes have the same yml)
  3. Use allocation filtering which nodes indices are allocated
    on: Elasticsearch Platform — Find real-time answers at scale | Elastic

Hope this helps,
Boaz

On Tuesday, September 24, 2013 7:47:51 PM UTC+2, Phani Chaitanya wrote:

Again some newbie questions. I'm wondering how to configure a replica node
at a global level rather than at index level. These are the questions that
I have :

  1. Can we configure that nodes 2 & 3 are replicas of node 1 in ES ? If
    yes, how ? - This is because I don't want to explicitly configure the
    settings for index level and what ever the replicas are for a primary shard
    should automatically replicate the indexes/data that are part of the
    primary shard.
    1. I'm wondering if there is any property like node.replica = true
      and using the same node name in case of replicas will be the solution to
      this.
  2. We have index level replica settings for shards - Can we control on
    which nodes the index replicas exists (this is in some sense related to 1st
    point) ?

Thanks,
Phani.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.