OpenSearch Connecting to a Cluster

Now that you’ve created a cluster, it’s time to connect your application to your new OpenSearch cluster. Aside from setting your firewall rules, Instaclustr provides a few examples (customised to your cluster) for the wide selection of client libraries OpenSearch supports to help you through this process.

  1. After your Cluster has finished provisioning, navigate to your Cluster Details page. All your nodes should be in a Running state with no errors listed. Some infrastructure providers allocate both public and private (data centre local) IP addresses to cluster nodes. If both are available, they will be listed with their respective nodes on this page. We suggest that if your application is running within the same data centre as your cluster, you investigate configuring your client to connect to the private addresses. Please refer to your provider’s pricing documentation.
  2. Instaclustr manages the firewall permissions for the nodes in your cluster. Each cluster node only allows connections from one or more trusted IP addresses. You can add one or more trusted IP addresses to the cluster firewall by clicking Firewall Rules from the side bar.
  3. Under the Firewall Rules section, enter any additional IP addresses you wish to trust to the OpenSearch Allowed Addresses list. If your cluster is running on AWS and clients are connecting using VPC peering, then you may also add one or more AWS security groups to the list. Click the Save button when you are finished. Click Add my Public IP to the firewall to add your public IP address to the cluster firewall and then Save to save your changes.
  4. The Connection Info page contains a list of your node addresses, authentication credentials to connect to your cluster, and a few connection examples for popular clients that OpenSearch supports.

At this point, we provide custom examples for:

OpenSearch provides clients for several popular programming languages, with more coming.

  • Go
  • Python
  • Node.js

opensearch.org maintains a comprehensive list of clients for your language of choice.

By Instaclustr Support
Need Support?
Experiencing difficulties on the website or console?
Already have an account?
Need help with your cluster?
Contact Support
Why sign up?
To experience the ease of creating and managing clusters via the Instaclustr Console
Spin up a cluster in minutes