This commit is contained in:
2021-01-14 10:33:42 +08:00
parent 8c3b531f3a
commit 908dded6c1
+1
View File
@@ -159,6 +159,7 @@ class Kafka extends \Snowflake\Process\Process
try { try {
$topicConf->set('auto.commit.enable', '1'); $topicConf->set('auto.commit.enable', '1');
$topicConf->set('auto.commit.interval.ms', '100'); $topicConf->set('auto.commit.interval.ms', '100');
$topicConf->set('auto.create.topics.enable', 'true');
//smallest:简单理解为从头开始消费, //smallest:简单理解为从头开始消费,
//largest:简单理解为从最新的开始消费 //largest:简单理解为从最新的开始消费