TL;DR: Is there a way to reliably guarantee that a local node has all the
data of an index locally in memory?
We have a very time critical application (search times > 5-10 ms are a real
problem for us). To keep search as fast as possible we figured the best way
would be to use a node in the same process to eliminate network latency and
also being as self contained as possible.
That's working out nicely, so far, except that we have to manually change
the number_of_replicas every time we add or remove a node to the cluster.
We actually don't want to mess with the replica settings at all.
We just want our local nodes to join the cluster, grab *all *the data for
the index so we never ever have to ask additional nodes again.
Bonus question: are there any performance does and don'ts hints / links /
blogposts / best practices you could recommend?