Buying a Kafka Instance
Kafka instances are tenant-exclusive, and physically isolated in deployment. You can customize the computing capabilities and storage space of a Kafka instance as required.
Preparing Instance Dependencies
Before creating a Kafka instance, prepare the resources listed in Table 1.
Resource |
Requirement |
Operations |
---|---|---|
VPC and subnet |
You need to configure a VPC and subnet for the Kafka instance as required. You can use the current account's existing VPC and subnet, or create new ones. Note: VPCs must be created in the same region as the Kafka instance. |
For details about how to create a VPC and subnet, see the Virtual Private Cloud User Guide. |
Security group |
Different Kafka instances can use the same or different security groups. The security group must be in the same region as the Kafka instance. Before accessing a Kafka instance, configure security groups based on the access mode. For details, see Table 2. |
For details about how to create a security group and configure security group rules, see the Virtual Private Cloud User Guide. |
Quick Config of a Cluster Kafka Instance
- Log in to the console.
- Click
in the upper left corner to select a region.
Select a region near you to ensure the lowest latency possible.
- Click
in the upper left corner and choose Application > Distributed Message Service for Kafka to open the Kafka instance list.
- Click Buy Kafka Instance in the upper right corner of the page.
- Set basic instance configurations on the Quick Config page.
Table 2 Basic instance configuration parameters Parameter
Description
Billing Mode
- Pay-per-use is a postpaid mode. You can pay after using the service, and will be billed for your usage duration. The fees are calculated in seconds and settled by hour.
Region
DMS for Kafka instances in different regions cannot communicate with each other over an intranet. Select a nearest location for low latency and fast access.
AZ
An AZ is a physical region where resources use independent power supply and networks. AZs are physically isolated but interconnected through an internal network.
Select one AZ or at least three AZs. The AZ setting is fixed once the instance is created.
- Select a bundle.
DMS for Kafka provides preconfigured specifications. You can select one as required. Specify the disk type and capacity as required. The disk type cannot be changed once the Kafka instance is created.
The storage space is consumed by message replicas, logs, and metadata. Specify the storage space based on the expected service message size, the number of replicas, and the reserved disk space. Each Kafka broker reserves 33 GB disk space for storing logs and metadata.
Disks are formatted when an instance is created. As a result, the actual available disk space is 93% to 95% of the total disk space.
- Set the network information.
Table 3 Instance network parameters Parameter
Description
VPC
Select a created or shared VPC.
A VPC provides an isolated virtual network for your Kafka instances. You can configure and manage the network as required. You can click Manage VPC on the right to go to the VPC console and view or create a VPC.
After the Kafka instance is created, its VPC cannot be changed.
Subnet
Select a created subnet.
After the Kafka instance is created, its subnet cannot be changed.
IPv6
This parameter is displayed after IPv6 is enabled for the subnet. The instance with IPv6 enabled can be accessed on a client using IPv6 addresses.
The IPv6 setting is fixed once the instance is created.
Private IP Addresses
Select Auto or Manual.
- Auto: The system automatically assigns an IP address from the subnet.
- Manual: Select IP addresses from the drop-down list. If the number of selected IP addresses is less than the number of brokers, the remaining IP addresses will be automatically assigned.
This parameter is not displayed when IPv6 is enabled.
Security Group
Select a created security group.
A security group is a set of rules for accessing a Kafka instance. You can click Create Security Group on the right to go to the security group page and view or create a security group.
Before accessing a Kafka instance on the client, configure security group rules based on the access mode. For details about security group rules, see Table 2.
- Configure the instance access mode.
- Configure advanced settings.
Table 5 Advanced configuration parameters Parameter
Description
Instance Name
You can customize a name that complies with the rules: 4–64 characters; starts with a letter; can contain only letters, digits, hyphens (-), and underscores (_).
Enterprise Project
This parameter is for enterprise users.
Enterprise projects facilitate project-level management and grouping of cloud resources and users. The default project is default.
Capacity Threshold Policy
Specify how messages are processed when the disk usage threshold (95%) is reached.- Automatically delete: Messages can be produced and consumed, but 10% of the earliest messages will be deleted to ensure sufficient disk space. This policy is suitable for scenarios where no service interruption can be tolerated. Data may be lost.
- Stop production: New messages cannot be produced, but existing messages can still be consumed. This policy is suitable for scenarios where no data loss can be tolerated.
Automatic Topic Creation
Enable automatic Kafka topic creation if needed.
If this option is enabled, a topic will be automatically created when a message is produced in or consumed from a topic that does not exist. The default topic parameters are listed in Table 6.
For cluster instances, after you change the value of the log.retention.hours (retention period), default.replication.factor (replica quantity), or num.partitions (partition quantity) parameter, the value will be used in later topics that are automatically created. For example, assume that num.partitions is changed to 5, an automatically created topic has parameters listed in Table 6.
Tags
Tags are used to identify cloud resources. When you have multiple cloud resources of the same type, you can use tags to classify them based on usage, owner, or environment.
If your organization has configured tag policies for DMS for Kafka, add tags to Kafka instances based on the policies. If a tag does not comply with the policies, Kafka instance creation may fail. Contact your organization administrator to learn more about tag policies.
- If you have predefined tags, select a predefined pair of tag key and value. You can click Create predefined tags to go to the Tag Management Service (TMS) console and view or create tags.
- You can also create new tags by specifying Tag key and Tag value.
Up to 20 tags can be added to each Kafka instance. For details about the requirements on tags, see Configuring Kafka Instance Tags.
Manager Username
You can customize a name that complies with the rules: 4–64 characters; starts with a letter; can contain only letters, digits, hyphens (-), and underscores (_).
Enter "manager-test".
Password
Set the password of Kafka Manager.
A password must meet the following requirements:
- Contains 8 to 32 characters.
- Contains at least three types of the following characters: uppercase letters, lowercase letters, digits, and special characters `~!@#$%^&*()-_=+\|[{}];:'",<.>? and spaces, and cannot start with a hyphen (-).
- Cannot be the username spelled forward or backward.
Description
Enter a Description of the instance for 0–1024 characters.
- Click Confirm.
- Confirm the instance information, and click Submit.
- Return to the instance list and check whether the Kafka instance has been created.
It takes 3 to 15 minutes to create an instance. During this period, the instance status is Creating.
- If the instance is created successfully, its status changes to Running.
- If the instance is in the Failed state, delete it by referring to Deleting Kafka Instances and try creating another one. If the instance creation fails again, contact customer service.
Instances that fail to be created do not occupy other resources.
Standard Config of a Cluster Kafka Instance
- Log in to the console.
- Click
in the upper left corner to select a region.
DMS for Kafka instances in different regions cannot communicate with each other over an intranet. Select a nearest location for low latency and fast access.
- Click
in the upper left corner and choose Application > Distributed Message Service for Kafka to open the Kafka instance list.
- Click Buy Kafka Instance in the upper right corner of the page.
- Set basic instance configurations on the Standard Config page.
Table 7 Basic instance configuration parameters Parameter
Description
Billing Mode
- Pay-per-use is a postpaid mode. You can pay after using the service, and will be billed for your usage duration. The fees are calculated in seconds and settled by hour.
Region
DMS for Kafka instances in different regions cannot communicate with each other over an intranet. Select a nearest location for low latency and fast access.
AZ
An AZ is a physical region where resources use independent power supply and networks. AZs are physically isolated but interconnected through an internal network.
Select one AZ or at least three AZs. The AZ setting is fixed once the instance is created.
- Configure the following instance specifications:
Table 8 Instance specifications parameters Parameter
Description
Version
Kafka version, which can be 1.1.0, 2.3.0, 2.7, or 3.x.
The version is fixed once the instance is created.
Architecture
Select Cluster.
Broker Flavor
Select a broker flavor as required.
Maximum number of partitions per broker × Number of brokers = Maximum number of partitions of an instance. If the total number of partitions of all topics exceeds the upper limit of partitions, topic creation fails.
Brokers
Specify the broker quantity.
Type
Select the disk type for Kafka data storage. The disk type cannot be changed once the Kafka instance is created.
Capacity
Specify the disk size for Kafka data storage.
The storage space is consumed by message replicas, logs, and metadata. Specify the storage space based on the expected service message size, the number of replicas, and the reserved disk space. Each Kafka broker reserves 33 GB disk space for storing logs and metadata.
Disks are formatted when an instance is created. As a result, the actual available disk space is 93% to 95% of the total disk space.
Figure 1 Instance flavor - Set the network information.
Table 9 Instance network parameters Parameter
Description
VPC
Select a created or shared VPC.
A VPC provides an isolated virtual network for your Kafka instances. You can configure and manage the network as required. You can click Manage VPC on the right to go to the VPC console and view or create a VPC.
After the Kafka instance is created, its VPC cannot be changed.
Subnet
Select a created subnet.
After the Kafka instance is created, its subnet cannot be changed.
IPv6
This parameter is displayed after IPv6 is enabled for the subnet. The instance with IPv6 enabled can be accessed on a client using IPv6 addresses.
The IPv6 setting is fixed once the instance is created.
Private IP Addresses
Select Auto or Manual.
- Auto: The system automatically assigns an IP address from the subnet.
- Manual: Select IP addresses from the drop-down list. If the number of selected IP addresses is less than the number of brokers, the remaining IP addresses will be automatically assigned.
This parameter is not displayed when IPv6 is enabled.
Security Group
Select a created security group.
A security group is a set of rules for accessing a Kafka instance. You can click Create Security Group on the right to go to the security group page and view or create a security group.
Before accessing a Kafka instance on the client, configure security group rules based on the access mode. For details about security group rules, see Table 2.
- Configure the instance access mode.
- Configure advanced settings.
Table 11 Advanced configuration parameters Parameter
Description
Instance Name
You can customize a name that complies with the rules: 4–64 characters; starts with a letter; can contain only letters, digits, hyphens (-), and underscores (_).
Enterprise Project
This parameter is for enterprise users.
Enterprise projects facilitate project-level management and grouping of cloud resources and users. The default project is default.
Capacity Threshold Policy
Specify how messages are processed when the disk usage threshold (95%) is reached.- Automatically delete: Messages can be produced and consumed, but 10% of the earliest messages will be deleted to ensure sufficient disk space. This policy is suitable for scenarios where no service interruption can be tolerated. Data may be lost.
- Stop production: New messages cannot be produced, but existing messages can still be consumed. This policy is suitable for scenarios where no data loss can be tolerated.
Automatic Topic Creation
Enable automatic Kafka topic creation if needed.
If this option is enabled, a topic will be automatically created when a message is produced in or consumed from a topic that does not exist. The default topic parameters are listed in Table 12.
For cluster instances, after you change the value of the log.retention.hours (retention period), default.replication.factor (replica quantity), or num.partitions (partition quantity) parameter, the value will be used in later topics that are automatically created. For example, assume that num.partitions is changed to 5, an automatically created topic has parameters listed in Table 12.
Tags
Tags are used to identify cloud resources. When you have multiple cloud resources of the same type, you can use tags to classify them based on usage, owner, or environment.
If your organization has configured tag policies for DMS for Kafka, add tags to Kafka instances based on the policies. If a tag does not comply with the policies, Kafka instance creation may fail. Contact your organization administrator to learn more about tag policies.
- If you have predefined tags, select a predefined pair of tag key and value. You can click View predefined tags to go to the Tag Management Service (TMS) console and view or create tags.
- You can also create new tags by specifying Tag key and Tag value.
Up to 20 tags can be added to each Kafka instance. For details about the requirements on tags, see Configuring Kafka Instance Tags.
Manager Username
You can customize a name that complies with the rules: 4–64 characters; starts with a letter; can contain only letters, digits, hyphens (-), and underscores (_).
Enter "manager-test".
Password
Set the password of Kafka Manager.
A password must meet the following requirements:
- Contains 8 to 32 characters.
- Contains at least three types of the following characters: uppercase letters, lowercase letters, digits, and special characters `~!@#$%^&*()-_=+\|[{}];:'",<.>? and spaces, and cannot start with a hyphen (-).
- Cannot be the username spelled forward or backward.
Description
Enter a Description of the instance for 0–1024 characters.
- In Summary on the right, view the selected instance configuration.
- Click Confirm.
- Confirm the instance information, and click Submit.
- Return to the instance list and check whether the Kafka instance has been created.
It takes 3 to 15 minutes to create an instance. During this period, the instance status is Creating.
- If the instance is created successfully, its status changes to Running.
- If the instance is in the Failed state, delete it by referring to Deleting Kafka Instances and try creating another one. If the instance creation fails again, contact customer service.
Instances that fail to be created do not occupy other resources.
Purchasing a Kafka Instance with Same Configurations
To purchase another Kafka instance with the same configuration as the current one, reuse the current configuration through the Buy Another function.
- Log in to the console.
- Click
in the upper left corner and select a region.
DMS for Kafka instances in different regions cannot communicate with each other over an intranet. Select a nearest location for low latency and fast access.
- Click
in the upper left corner and choose Application > Distributed Message Service for Kafka to open the Kafka instance list.
- Select a target Kafka instance and choose More > Buy Another in the Operation column.
- Adjust the automatically replicated parameter settings as required. For details, see Standard Config of a Cluster Kafka Instance.
For security purposes, parameter settings involved in the following scenarios will not be replicated and a re-configuration is required:
- SSL username and password of a Kafka instance with ciphertext access enabled.
- Public IP addresses of a Kafka instance with public access enabled.
- Manually assigned IP addresses of a Kafka instance. Select Manual for Private IP Addresses again and specify private IP addresses.
- Name of a target Kafka instance.
- In Summary on the right, view the selected instance configuration.
- Click Confirm.
- Confirm the instance information, and click Submit.
- Return to the instance list and check whether the Kafka instance has been created.
It takes 3 to 15 minutes to create an instance. During this period, the instance status is Creating.
- If the instance is created successfully, its status changes to Running.
- If the instance is in the Failed state, delete it by referring to Deleting Kafka Instances and try creating another one. If the instance creation fails again, contact customer service.
Instances that fail to be created do not occupy other resources.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot