Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
funasr_web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1b1d9139
authored
Jun 11, 2024
by
‘chizw’
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]kafka优化
1 parent
7cb6e58a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
kafka_service/funasr_consumer.py
kafka_service/funasr_consumer.py
View file @
1b1d913
...
...
@@ -17,6 +17,7 @@ consumer_new = KafkaConsumer(
bootstrap_servers
=
ConfigInfo
.
kafka_consumer_bootstrap_servers
,
# Kafka broker 的地址
group_id
=
ConfigInfo
.
kafka_consumer_group_id
,
# 消费者组 ID
auto_offset_reset
=
ConfigInfo
.
kafka_consumer_auto_offset_reset
,
# 从最早的消息开始消费
connections_max_idle_ms
=
3000000
,
request_timeout_ms
=
3000000
,
fetch_max_wait_ms
=
300000
,
)
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment