Search local only

Hi !

I have currently a cluster with one shard on multiple nodes, using the
option 'auto_expand_replicas' => '0-all', so that every node has all the
data.
Some nodes are in Europe and some are in America.

When I'm requesting a server in Europe, I notice in the logs that
sometimes, the request is send to a server in America, which makes the
request longer.
Is there a way to keep replications between severs and to force
elasticsearch to search only locally ?

Thanks for your help !

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/c85b6404-77e1-4f1e-b132-a5756bba869f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Have a look at http://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-preference.html http://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-preference.html
Might help.

That said we don’t recommend splitting your cluster on 2 data centers.

--
David Pilato - Developer | Evangelist
elastic.co
@dadoonet https://twitter.com/dadoonet | @elasticsearchfr https://twitter.com/elasticsearchfr | @scrutmydocs https://twitter.com/scrutmydocs

Le 27 avr. 2015 à 17:14, Christophe Rosko christophe@digiteka.com a écrit :

Hi !

I have currently a cluster with one shard on multiple nodes, using the option 'auto_expand_replicas' => '0-all', so that every node has all the data.
Some nodes are in Europe and some are in America.

When I'm requesting a server in Europe, I notice in the logs that sometimes, the request is send to a server in America, which makes the request longer.
Is there a way to keep replications between severs and to force elasticsearch to search only locally ?

Thanks for your help !

--
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 mailto:elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/c85b6404-77e1-4f1e-b132-a5756bba869f%40googlegroups.com https://groups.google.com/d/msgid/elasticsearch/c85b6404-77e1-4f1e-b132-a5756bba869f%40googlegroups.com?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout https://groups.google.com/d/optout.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/1F102723-28F1-41E0-9AD5-8B8DE6C0220E%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.