Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Creating a Quota

Updated on 2024-04-07 GMT+08:00

Scenario

On the console, you can control the message production and consumption rate limits for users, clients, or topics.

Rate limits for users and clients work on the entire broker, while topic rate limits work on a specific topic.

Operation Impact

  • When the quota is reached, production/consumption latency increases.
  • If the quota is small and the production rate is high, production may time out and messages may be lost. As a result, some messages fail to be produced.
  • If the initial production/consumption traffic is heavy, and a small quota is set, the production/consumption latency increases and some messages fail to be produced. To ensure stable production and consumption, you are advised to first set the quota to half the traffic, and then half the quota each time you set it until the target quota is reached. For example, if the initial production traffic is 100 MB/s, you can set the production limit to 50 MB/s first. After production becomes stable, change the production limit to 25 MB/s until the target limit is reached.

Prerequisites

  • To control user traffic, enable SASL_SSL when creating a Kafka instance and then obtain the username on the Users page on the console.
  • To control client traffic, obtain the client ID from the client configuration.
  • To control topic traffic, obtain the topic name from the Topics page.

Creating a User or Client Quota

  1. Log in to the management console.
  2. Click in the upper left corner to select a region.

    NOTE:

    Select the region where your Kafka instance is located.

  3. Click and choose Application > Distributed Message Service for Kafka to open the console of DMS for Kafka.
  4. Click the desired Kafka instance to view the instance details.
  5. In the navigation pane, choose Kafka Quotas > Quotas.
  6. Click the User/Client tab.
  7. In the upper left corner, click Create Quota. The Create Quota slide panel is displayed.
  8. Set quota parameters.

    Table 1 Quota parameters

    Parameter

    Description

    Username

    Enter the name of the user to apply the quota to. To apply the quota to all users, click Use Default next to Username.

    After the quota is created, the username cannot be changed.

    Client ID

    Enter the ID of the client to which the quota applies. To apply the quota to all clients, click Use Default next to Client ID.

    After the quota is created, the client ID cannot be changed.

    Production Limit

    Set an upper limit on the production rate. The unit is MB/s. If this parameter is left blank, no limit is set.

    Consumption Limit

    Set an upper limit on the consumption rate. The unit is MB/s. If this parameter is left blank, no limit is set.

    NOTE:
    • If SASL is not enabled for the instance, Username is not displayed in the Create Quota slide panel.
    • Username and Client ID cannot be both empty.
    • Production Limit and Consumption Limit cannot be both empty.

  9. Click OK. The Background Tasks page is displayed. If the status of the quota creation task is Successful, the quota has been created.

    Go to the Kafka Quotas > Quotas page. On the User/Client tab page, select User quotas, Client quotas, or User and client quotas, then click to view the created quota.

    Figure 1 Viewing the new quota

Creating a Topic Quota

  1. Log in to the management console.
  2. Click in the upper left corner to select a region.

    NOTE:

    Select the region where your Kafka instance is located.

  3. Click and choose Application > Distributed Message Service for Kafka to open the console of DMS for Kafka.
  4. Click the desired Kafka instance to view the instance details.
  5. In the navigation pane, choose Kafka Quotas > Quotas.
  6. Click the Topic tab.
  7. In the upper left, click Create Quota. The Create Quota slide panel is displayed.
  8. Set quota parameters.

    Table 2 Quota parameters

    Parameter

    Description

    Topic Name

    Enter the name of the topic to apply the quota to.

    After the quota is created, the topic cannot be changed.

    Production Limit

    Set an upper limit on the production rate. The unit is MB/s. If this parameter is left blank, no limit is set.

    Consumption Limit

    Set an upper limit on the consumption rate. The unit is MB/s. If this parameter is left blank, no limit is set.

    NOTE:

    Production Limit and Consumption Limit cannot be both empty.

  9. Click OK. The Background Tasks page is displayed. If the status of the quota creation task is Successful, the quota has been created.

    Go to the Kafka Quotas > Quotas page. On the Topic tab page, enter the name of the new quota in the upper right corner, then click to view the created quota.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback