-
Notifications
You must be signed in to change notification settings - Fork 22
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
Is it possible to connect to more than one cluster? #26
Comments
I’ve never had to do it myself and so elastic doesn’t currently support it. A quick search turns up https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-cross-cluster-search.html so maybe it depends on how you query the HTTP endpoint. Do you have an example of what this would look like over HTTP other than that? I ask as that’s elastic’s only way of communicating with ES servers currently. |
In my case I'm not looking to search across two different clusters. Just to be able to make two independent connections and access those two clusters independently. It's a slightly unusual use-case so I guess I'm not surprised it's not supported. As an example it might be worth taking a quick look at elasticsearch-elixir which supports multiple connections by defining modules and associating config against those. Similar to how Ecto Repos are defined. Unfortunately |
Seems like it could be done relatively straightforward. I would imagine configuration like:
Then to query either cluster:
Where Happy to accept patches for this. |
Is elastic capable of connecting to more than a single cluster? Based on the docs it seems like you can only specify connection details for a single cluster.
The text was updated successfully, but these errors were encountered: