Hi Clinton,
Actually, what I'm saying is that I'd like every searcher to have a replica
of every shard. Right now, when I have primaries + 1 set of replicas, it
acts as I'd expect which is all the primaries on the "indexers" and all the
replicas on the "searchers". When I change the number of replicas to 3 (I
have 3 search hosts) so all my search hosts get a replica, two replicas end
up on the search hosts and 1 replica end up with the primaries on the
"indexers". Here's a sample config:
For searchers:
cluster.name: "mycluster"
node.name: ${HOSTNAME}
node.master: true
node.data: true
node.role: search
path.conf: /etc/elastic/conf
path.data: /app/elastic/data
path.work: /app/elastic/work
path.logs: /app/elastic/logs
path.plugins: /app/elastic/plugins
bootstrap.mlockall: true
transport.tcp.port: 9301
http.port: 9201
discovery.zen.minimum_master_nodes: 3
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["node0004:9301", "node0005:9301",
"node0006:9301"]
cluster.routing.allocation.awareness.attributes: role
cluster.routing.allocation.awareness.force.role.values: index,search
index.number_of_shards: 3
index.number_of_replicas: 1
For indexers:
cluster.name: "mycluster"
node.name: ${HOSTNAME}
node.master: true
node.data: true
node.role: index
path.conf: /etc/elastic/conf
path.data: /app/elastic/data
path.work: /app/elastic/work
path.logs: /app/elastic/logs
path.plugins: /app/elastic/plugins
bootstrap.mlockall: true
transport.tcp.port: 9301
http.port: 9201
discovery.zen.minimum_master_nodes: 3
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["node0004:9301", "node0005:9301",
"node0006:9301"]
cluster.routing.allocation.awareness.attributes: role
cluster.routing.allocation.awareness.force.role.values: index,search
index.number_of_shards: 3
index.number_of_replicas: 1
Thanks for the help!
Sebastien
On Sat, May 25, 2013 at 2:35 AM, Clinton Gormley clint@traveljury.comwrote:
Are you saying that the searchers have no shards? Both primaries and
replicas are on the indexers?
Please post your config (and any index settings)
--
You received this message because you are subscribed to a topic in the
Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/elasticsearch/HEzxX0bnPoo/unsubscribe?hl=en-US
.
To unsubscribe from this group and all its topics, 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.