Operations

Kafka Configuration

qianmoQqianmoQ· 更新于 2026-10-30· 阅读 3 分钟· 0 次阅读

登录后可跨设备保存划线和私人笔记登录

You are viewing documentation for an older version (3.6) of Kafka. For up-to-date documentation, see the latest version.

Kafka Configuration

Kafka Configuration

Important Client Configurations

The most important producer configurations are:

  • acks
  • compression
  • batch size

The most important consumer configuration is the fetch size.

All configurations are documented in the configuration section.

A Production Server Config

Here is an example production server configuration:

  # ZooKeeper
  zookeeper.connect=[list of ZooKeeper servers]

  # Log configuration
  num.partitions=8
  default.replication.factor=3
  log.dir=[List of directories. Kafka should have its own dedicated disk(s) or SSD(s).]

  # Other configurations
  broker.id=[An integer. Start with 0 and increment by 1 for each new broker.]
  listeners=[list of listeners]
  auto.create.topics.enable=false
  min.insync.replicas=2
  queued.max.requests=[number of concurrent requests]

Our client configuration varies a fair amount between different use cases.

Last modified December 19, 2025: Add license info to every source file and handle `documentation.html` links for all versioned paths. (devlive-community/knowforge#764) (379dba2230)

评论

登录后参与评论

正在加载评论…