Help Center> Cloud Search Service> FAQs> Cluster Access/Cluster Connection> Why Does My ECS Fail to Connect to a Cluster?
Updated on 2023-09-20 GMT+08:00

Why Does My ECS Fail to Connect to a Cluster?

Perform the following steps to troubleshoot this problem:

  1. Check whether the ECS instance and cluster are in the same VPC.
    • If they are, go to 2.
    • If they are not, create an ECS instance and ensure that the ECS instance is in the same VPC as the cluster.
  2. View the security group rule setting of the cluster to check whether port 9200 (TCP protocol) is allowed or port 9200 is included in the port range allowed in both the outbound and inbound directions.
    • If it is allowed, go to 3.
    • If it is not allowed, switch to the VPC management console and configure the security group rule of the cluster to allow port 9200 in both the outbound and inbound directions.
  3. Check whether the ECS instance has been added to a security group.
    • If the instance has been added to a security group, check whether the security group configuration rules are appropriate. You can view the Security Group information on the Basic Information tab page of the cluster. Then, go to step 4.
    • If the instance has not been added to the security group, go to the VPC page from the ECS instance details page, select a security group, and add the ECS to the group.
  4. Check whether the ECS instance can connect to the cluster.
    ssh <Private network address and port number of a node>

    If the cluster contains multiple nodes, check whether the ECS can be connected to each node in the cluster.

    • If the connection is normal, the network is running properly.
    • If the connection still fails, contact technical support.

Cluster Access/Cluster Connection FAQs

more