tencent cloud

Feedback

Self-Built Cluster Connection Instructions (CLB Method)

Last updated: 2024-09-09 21:45:28

    Overview

    When self-built services on Cloud Virtual Machine (CVM) are connected through the CKafka connector, it is necessary to follow the cross-VPC resource access solution standard set by the Tencent Cloud Network Team. You need to first mount your self-built services onto the Cloud Load Balancer (CLB) to achieve cross-VPC resource access to resources.
    That is, when you build your MySQL or Mongo services on CVM and use them as a data source to connect the CKafka connector, you need to connect them by mounting the CLB. This document describes the related operation process.

    Operation Process

    Step 1: Purchasing a CLB Instance (Optional)

    If the customer's account already has a private network CLB instance, it can be reused to save costs. Alternatively, a separate CLB instance can be created to provide services. Below is the operation process for creating a new private network CLB.
    Note
    When a CLB instance is purchased, ensure it is in the same region and VPC as that of the CVM cluster. This ensures the CLB can be properly mounted to the CVM instance. Also, choose to purchase a private network CLB instance.
    

    Step 2: Configuring the CLB Instance

    1. Create a TCP listener: Enter the CLB Console > Instance Management page and find the instance to be configured. On the instance details page, click Listener Management, and then click Create TCP Listener.
    
    The port configured here is the port used to access the CLB. Health checks and session persistence can be configured based on actual needs.
    2. Bind self-built services: After successful creation of the listener, click the corresponding listener, and then click Bind on the right side to bind the CVM instance.
    
    Select the CVM instance to be bound and fill in the service port number:
    
    Note:
    For self-built MySQL clusters, it is recommended to bind only one CVM instance (either a primary node or a secondary node).This is because there may be a delay in binlog synchronization between the MySQL primary and secondary databases, which can cause binlog read errors when the connector’s requests are forwarded to different MySQL services. Therefore, it is recommended to bind only a single MySQL service in self-built clusters.
    3. View service health status: After the service is created, you can view the corresponding services and their health status.
    

    Step 3: Creating a Connection

    Enter the CKafka console, click Connector > Connection List, and then click New Connection.
    Note
    Select the CLB instance that is mounted to the CVM service, the port should be the corresponding CLB listener port, and the username and password should be the ones corresponding to the service.
    
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support