• Cloud Search Service

css
  1. Help Center
  2. Cloud Search Service
  3. User Guide
  4. FAQs
  5. What Should I Do If an ECS Cannot Connect to a Cluster?

What Should I Do If an ECS Cannot Connect to a Cluster?

Perform the following steps:

  1. Check whether the ECS instance and cluster are in the same VPC.
    • If yes, go to 2.
    • If 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 yes, go to 3.
    • If not, switch to the VPC management console and set the security group rule of the cluster to allow port 9200 in both the outbound and inbound directions.
  3. Check whether the ECS instance is added to a security group.
    • If added to a security group, check whether the security group configuration rules meet the requirements. For details, see the description of Security Group in the cluster information table in Cluster Management. Then go to 4.
      Figure 1 Viewing security group information
    • If not, go to the VPC page from the ECS instance details page, select a security group, and add the security group.
  4. Check whether the ECS instance can connect to the cluster.
    ssh <Private network address and port number of a node>
    NOTE:

    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 port is unreachable, contact customer service.