Routing to replicas


(Val Vakar) #1

Hey guys,

I have several indices with one replica each. I noticed that requests are
sent to both replicas instead of one at a time, so the slower machine is
always the bottleneck. Is there a way to route requests to one replica at a
time?

Thanks,
Val

--
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.


(Alexander Reelsen) #2

Hey,

there is a routing option. However I am not yet sure, if that is what you
want. You could use shard allocation to index new data into stronger
machines, and then have a nightly cronjob which changes the index meta
data, so it gets moved over to the weaker systems. Maybe this is what you
want?

References
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-routing-field.html
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/index-modules-allocation.html#shard-allocation-filtering

Hope this helps, otherwise ask more :slight_smile:

--Alex

On Sun, Nov 3, 2013 at 5:39 PM, Val Vakar val.vakar@gmail.com wrote:

Hey guys,

I have several indices with one replica each. I noticed that requests are
sent to both replicas instead of one at a time, so the slower machine is
always the bottleneck. Is there a way to route requests to one replica at a
time?

Thanks,
Val

--
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.

--
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.


(system) #3