Operation scenario: When purchasing an instance, if you select VPC and choose a corresponding VPC environment (such as VPC A), then CKafka services (such as data production and consumption) can only be accessed from VPC A. If you subsequently find that you need to access the CKafka services in VPC A from other VPCs (such as VPC B), you can select an appropriate routing policy for VPC by configuring the access mode.
Suggestion: To ensure security, this access mode supports user management and ACL policy configuration to manage user access permission. Configure as appropriate.
Directions:
2. Click Instance List on the left sidebar and then the ID/Name of your instance to enter the instance details page.
3. On the page you enter, click Add a routing policy in the "Access Mode" module.
4. In the pop-up window, select VPC Network as the route type and select the access mode and network.
Note:
If you select VPC access, you can specify the IP to keep it unchanged when changing the access mode.
5. Click Submit to add the VPC network.
6. Click View All IPs and Ports in the Operation column to view the list of IPs and ports that should be opened.
Note:
As broker scaling and migration will cause port changes, do not add only the current listed ports; otherwise, message read/write may become abnormal after scaling and migration. If your server is configured with security groups for access restrictions, you should open the following port ranges on the server:
Port range that should be opened for the VPC route: 9092–60000
Port range that should be opened for the public network route: 50000–53000
Port range that should be opened for the supportive route: 6000–12000
Operation scenario: If your consumer or producer is located in a self-built data center or another cloud, you can produce and consume data in CKafka through public network access.
Suggestion: To ensure security, Kafka offers various security authentication mechanisms, which mainly fall into two categories: SSL and SASL2. SASL/PLAIN is a more commonly used authentication method based on account and password. CKafka supports SASL_PLAINTEXT and SASL_SSL authentication. We recommend that you configure the authentication method as appropriate when selecting public domain name access.
Directions:
2. Click Instance List on the left sidebar and then the ID/Name of your instance to enter the instance details page.
3. On the page you enter, click Add a routing policy in the "Access Mode" module.
4. In the pop-up window, select Public domain name access as the route type and select the access mode and network.
5. Click Submit to add the public network routing policy.
6. Click View All IPs and Ports in the Operation column to view the list of IPs and ports that should be opened.
Note:
As broker scaling and migration will cause port changes, do not add only the current listed ports; otherwise, message read/write may become abnormal after scaling and migration. If your server is configured with security groups for access restrictions, you should open the following port ranges on the server:
Port range that should be opened for the VPC route: 9092–60000
Port range that should be opened for the public network route: 50000–53000
Port range that should be opened for the supportive route: 6000–12000
CKafka provides 3 Mbps public network bandwidth free of charge by default, which can be increased for Pro Edition instances. For detailed directions, see Public Network Bandwidth Management.
Was this page helpful?