Commit be19ddf0 by ‘chizw’

[+]kafka优化

1 parent 1b1d9139
...@@ -17,8 +17,8 @@ consumer_new = KafkaConsumer( ...@@ -17,8 +17,8 @@ consumer_new = KafkaConsumer(
bootstrap_servers=ConfigInfo.kafka_consumer_bootstrap_servers, # Kafka broker 的地址 bootstrap_servers=ConfigInfo.kafka_consumer_bootstrap_servers, # Kafka broker 的地址
group_id=ConfigInfo.kafka_consumer_group_id, # 消费者组 ID group_id=ConfigInfo.kafka_consumer_group_id, # 消费者组 ID
auto_offset_reset=ConfigInfo.kafka_consumer_auto_offset_reset, # 从最早的消息开始消费 auto_offset_reset=ConfigInfo.kafka_consumer_auto_offset_reset, # 从最早的消息开始消费
connections_max_idle_ms=3000000, connections_max_idle_ms=5000000,
request_timeout_ms=3000000, request_timeout_ms=4000000,
fetch_max_wait_ms=300000, fetch_max_wait_ms=300000,
) )
log.info("启动2") log.info("启动2")
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!