I am trying to connect two OpenSearch instances to one OpenSearch Dashboard. Based on what I’ve read so far it is possible, but it seems really convoluted and through the numerous tests so far I haven’t been able to achieve it.
I have one namespace called logging and another logging-2. In logging there are the dashboard and the first OpenSearch instance and in logging-2 is the second OpenSearch instance. I have deployed everything through the original OpenSearch Helm Charts. Both instances are called opensearch and the different nodes follow the same pattern opensearch-master etc.
I found several places in the OpenSearch Dashboard’s configuration where the second instance might be added, so here is what I don’t understand so far.
There is this an opensearchHosts attribute in the dashboard’s values file. It is connected to an environment variable called OPENSEARCH_HOSTS. Despite the plural in the name, I wasn’t able to add more than one value and make it work. Is it actually possible to include multiple hosts and is adding multiple hosts the way to connect two instances to one dashboard?
There is an opensearch.hosts setting in the opensearch_dashboard.yml with which I encountered the same problem. Is it actually possible to include multiple hosts and is adding multiple hosts the way to connect two instances to one dashboard?
There is a data sources feature that requires an endpoint to connect a remote instance. What should be the endpoint address to the second instance in logging-2?
@AleksandarIvanovopensearchHosts, opensearch.hosts and OPENSEARCH_HOSTS are related to the same settings.
These options require a list of OpenSearch nodes from the same cluster. OpenSearch Dashboards will use them as a fallback in case one of them won’t work.
Unfortunately, you can’t manage two separate OpenSearch clusters using single OpenSearch Dashboards.
However, you could consider Cross Cluster search to connect with a remote cluster.
Hello!
Is there a way at Dashboards to utilize more than one Coordinating node (to utilize more RAM/CPU/ect)?
Maybe some experience of using Loadbalancer of some sort?