This commit is contained in:
2020-12-23 16:16:59 +08:00
parent 6d4ef4561c
commit 22b2968658
+1
View File
@@ -161,6 +161,7 @@ class Kafka extends \Snowflake\Process\Process
$topicConf = new TopicConf();
$topicConf->set('auto.commit.enable', '1');
$topicConf->set('auto.create.topics.enable', 'true');
$topicConf->set('auto.commit.interval.ms', '100');
//smallest:简单理解为从头开始消费,largest:简单理解为从最新的开始消费
$topicConf->set('auto.offset.reset', 'smallest');