On 11/06/2021 00.28, Walter Underwood wrote:
Are you trying to send queries to less loaded machines? If so, this won’t do
that.
Leaders only do a little bit more work than followers. All indexing processing
is local
and that is most of the CPU usage.
I suspect that depends on the type of replica.
Reducing the load on leaders seems like a valuable feature. We've
observed cases where a high query load on leaders caused it to become
unresponsive, resulting in a cascade of failures, eventually rendering
an entire cluster unusable.
In fact, it would also be useful to be able to direct certain queries
*only* to leaders when you know that replicas are lagging behind.
- Bram