I have a cluster with six nodes. The nodes are in different data centers,
but I don't think that matters, as the connectivity is beefy and thick. I
have turned multicast off and unicast on. Each node knows about all the
others explicitly. When I bring up a visualization of the cluster using the
"head" plugin, I see them all. This appears to work as it should. My
cluster looks like this:
DEV-02 (development data center)
MESA-01 (mesa data center)
MESA-02 (mesa data center)
MESA-03 (mesa data center)
BUCK-01 (buck data center)
BUCK-02 (buck data center)
I have each node configured for 5 shards.
I have each node set to be master true and data true
I do ALL of my document addition using MESA-01 and I can do queries on ANY
node and get a result, so that's working. But I notice two things and have
one requirement I can't figure out:
Most queries come in sub-30ms. But every now and again I get a query
that is longer. I set my slow query log to complain over 100ms and I see
that maybe one query out of 15 or so takes 800ms to 1200ms. This is on any
I have unassigned shards. I presume this is bad, yes? How do I get them
to allocate? When I stop and start the service on any of the nodes, the
shards are shuffled around, but rarely are the unassigned shards put on a
node. Why? How do I resolve this?
And my requirement - Is there a way to say, "Look, Elasticsearch, I don't
want you shuffling shards around here and there, I'd like EVERY node to
have a COMPLETE replica of the data, and you just keep it up to date. That
way, you see, a query on a buck data center node won't have to ask a mesa
data center for a document if it doesn't have it."
Solving #2 is important, but solving my requirement is somewhat critical. I
think fixing these two things will take care of issue #1.
At least it'll get me configured right so if #1 is still there, I can
diagnose from a position of not wondering if misconfiguration is my problem.
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 email@example.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/33e7db26-ed5e-4c9e-abe5-fd656a73e978%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.