-
Notifications
You must be signed in to change notification settings - Fork 24.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Auto discover certain coordinator nodes only. #28831
Comments
I think you could give your coordinating nodes an attribute. Like I'll mark this as |
We discussed this in FixitFriday and would like to add |
You can also negate node roles, e.g. The following should achieve what you're looking for:
The adoptme here is to simplify the API so that the "wildcard" hack is not needed. |
Today we can execute cluster API actions on only master, data or ingest nodes using the `master:true`, `data:true` and `ingest:true` filters, but it is not so easy to select coordinating-only nodes (i.e. those nodes that are neither master nor data nor ingest nodes). This change fixes this by adding support for a `coordinating_only` filter such that `coordinating_only:true` adds all coordinating-only nodes to the set of selected nodes, and `coordinating_only:false` deletes them. Resolves #28831.
Today we can execute cluster API actions on only master, data or ingest nodes using the `master:true`, `data:true` and `ingest:true` filters, but it is not so easy to select coordinating-only nodes (i.e. those nodes that are neither master nor data nor ingest nodes). This change fixes this by adding support for a `coordinating_only` filter such that `coordinating_only:true` adds all coordinating-only nodes to the set of selected nodes, and `coordinating_only:false` deletes them. Resolves #28831.
Describe the feature:
I have setup my ES cluster to write to ingest only nodes, and read from coordinator nodes that's not master nor data nodes.
The problem is if I add more coordinator "client" nodes (not master, not ingest, not data) to server query spikes, there's no way for the client to auto discover those nodes without including either master or data nodes. The workaround I have now is to make those new nodes to be ingest nodes as well.
So I just auto discover ingest nodes for read, but then I won't be able to split write & read nodes.
The only way to discover nodes via REST afaik is to use /_nodes/xyz, where xyz is a comma separated "node roles". Maybe there's another way to do this? Or maybe splitting read from write like what I'm doing is overkill?
The text was updated successfully, but these errors were encountered: