Connecting to a Cluster

Now that you've created a cluster, it's time to connect your application to your new Cassandra cluster. Aside from setting your firewall rules, Instaclustr provides a few examples (customised to your cluster) for the wide selection of client libraries Cassandra 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.

Note: 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.

connecting_cluster_01_pix.png

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 on the Cluster Settings page for the cluster.

Click Cluster Settings from the Manage Cluster menu.

connecting_cluster_2_final_pix.png

3. Under Firewall Rules section, enter any additional IP addresses you wish to trust to the Cassandra Allowed Addresses list.

Note: If your cluster is running on AWS and using VPC peering and you would prefer that an AWS security group be allowed to connect rather than individual addresses, please raise a support request.

Click the Save Cluster Settings button when you are finished.

connecting_clusters_03_final_pixelated.png

Note: this setting page contains two other option settings under the Cluster section. Firstly, you can enter a description of your cluster. Secondly, the Two-factor Delete option provides additional security against accidentally deleting a cluster. If it is enabled, a member of our Support team will confirm a delete request via a designated e-mail address or telephone number before your cluster is deleted.

4. Instaclustr provides connection information and examples on the Connection Info page which can be accessed by clicking Connection Details from the Manage Cluster menu.

connecting_cluster_04_final_pix.png

5. 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 Cassandra supports.

connecting_cluster_05_final_pix.png

At this point we provide custom examples for:

  • CQLSH
  • Java
  • Python
  • Ruby

6. We recommend reviewing the following support articles as a next step:

Last updated:
If you have questions regarding this article, feel free to add it to the comments below.

0 Comments

Please sign in to leave a comment.