Kafka的配置选项
一.producer
1.client.id
- description
An id string to pass to the server when making requests.
The purpose of this is to be able to track the source of requests beyond
just ip/port by allowing a logical application name to be
included in server-side request logging.
一个在发送请求时传递给服务器的id【字符串表示】。
这个配置的目的是为了在跟踪请求源时,通过允许在服务端请求日志中包含一个逻辑应用名,
而不是仅仅通过ip地址/端口号的方式【去跟踪请求源】。- type:
String - default:
"" - Importance:
medium
2.partitioner.class
- description:
Partitioner class that implements the
org.apache.kafka.clients.producer.Partitioner interface.- type:
class - default:
org.apache.kafka.clients.producer.internals.DefaultPartitioner - Importance:
medium
3.connections.max.idle.ms【主题级】
- Description :
Idle connections timeout: the server socket processor threads close the connections that idle more than this【服务器套接字处理线程关闭空闲的连接】 - Type :
long - Default :
600000 - Valid Values :
null - Importance :
medium - Dynamic Update Mode:
read-only
4.connections.max.idle.ms【producer/consumer级别】
- Descripttion:
Close idle connections after the number of milliseconds specified by this config. - Type:
long - Default:
540000 - Importance:
medium










