El contenido no se encuentra disponible en el idioma seleccionado. Estamos trabajando continuamente para agregar más idiomas. Gracias por su apoyo.

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

Kafka Common Parameters

Updated on 2022-08-12 GMT+08:00

This section applies to MRS 3.x or later.

Navigation path for setting parameters:

For details about how to set parameters, see Modifying Cluster Service Configuration Parameters.

Common Parameters

Table 1 Parameter description

Parameter

Description

Default Value

log.dirs

List of Kafka data storage directories. Use commas (,) to separate multiple directories.

%{@auto.detect.datapart.bk.log.logs}

KAFKA_HEAP_OPTS

Specifies the JVM option used for Kafka to start broker. It is recommended that you set this parameter based on service requirements.

-Xmx6G -Xms6G

auto.create.topics.enable

Indicates whether a topic is automatically created. If this parameter is set to false, you need to run a command to create a topic before sending a message.

true

default.replication.factor

Default number of replicas of a topic is automatically created.

2

monitor.preInitDelay

Delay of the first health check after the server is started. If the startup takes a long time, increase the value of the parameter. Unit: millisecond

600,000

Timeout Parameters

Table 2 Broker-related timeout parameters

Parameter

Description

Default Value

Impact

controller.socket.timeout.ms

Specifies the timeout for connecting controller to broker. Unit: millisecond

30,000

Generally, retain the default value of this parameter.

group.max.session.timeout.ms

Specifies the maximum session timeout during the consumer registration. Unit: millisecond

1800000

The configured value must be less than the value of this parameter.

group.min.session.timeout.ms

Specifies the minimum session timeout during the consumer registration. Unit: millisecond

6,000

The configured value must be greater than the value of this parameter.

offsets.commit.timeout.ms

Specifies the timeout for the Offset to submit requests. Unit: millisecond

5,000

This parameter specifies the maximum delay for processing an Offset request.

replica.socket.timeout.ms

Specifies the timeout of the request for synchronizing replica data. Its value must be greater than or equal to that of the replica.fetch.wait.max.ms parameter. Unit: millisecond

30,000

Specifies the maximum timeout for establishing a channel before the synchronization thread sends a synchronization request. The value must be greater than that of the replica.fetch.wait.max.ms parameter.

request.timeout.ms

Specifies the timeout for waiting for a response after the client sends a connection request. If no response is received within the timeout, the client resends the request. A request failure is returned after the maximum retry times is reached. Unit: millisecond

30,000

This parameter is configured when the networkclient connection is transferred in the controller and replica threads on the broker node.

transaction.max.timeout.ms

Specifies the maximum timeout allowed by the transaction. If the client request time exceeds the value of this parameter, broker returns an error in InitProducerIdRequest. This prevents a long client request timeout, ensuring that consumer can receive topics. Unit: millisecond

900,000

Specifies the maximum timeout for transactions.

user.group.cache.timeout.sec

Specifies the time when the user group information is stored in the cache. Unit: second

300

Specifies the time for caching the mapping between users and user groups. If time exceeds the threshold, the system automatically runs the id -Gn command to query the user information. During this period, the mapping in the cache is used.

zookeeper.connection.timeout.ms

Specifies the timeout for connecting to ZooKeeper. Unit: millisecond

45,000

This parameter specifies the duration for connecting the ZooKeeper and zkclient for the first time. If the duration exceeds the value of this parameter, the zkclient automatically disconnects the connection.

zookeeper.session.timeout.ms

Specifies the ZooKeeper session timeout duration. During this period, ZooKeeper disconnects the connection if broker does not report its heartbeats to ZooKeeper. Unit: millisecond

45,000

ZooKeeper session timeout has the following functions:

1) Based on value of this parameter and the number of ZooKeeper URLs in ZKURL, if the connection duration exceeds the node timeout value (sessionTimeout/Number of transferred ZooKeeper URLs), the connection fails and the system attempts to connect to the next node.

2) After the connection is established, a session (for example, the temporary BrokerId node registered on the ZooKeeper) is cleared by the ZooKeeper a session timeout later if the broker is stopped.

Table 3 Producer-related timeout parameters

Parameter

Description

Default Value

Impact

request.timeout.ms

Specifies the timeout of a message request.

30,000

If a network fault occurs, increase the value of this parameter. If the value is too small, the Batch Expire occurs.

Table 4 Consumer-related timeout parameters

Parameter

Description

Default Value

Impact

connections.max.idle.ms

Specifies the maximum retention period for idle connections.

600,000

If the idle connection time is greater than this parameter value, this connection is disconnected. If necessary, a new connection is created.

request.timeout.ms

Specifies the timeout for consumer requests.

30,000

If the request times out, the request will fail and be sent again.

Utilizamos cookies para mejorar nuestro sitio y tu experiencia. Al continuar navegando en nuestro sitio, tú aceptas nuestra política de cookies. Descubre más

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback