Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIFI-13597: fix: modified kafka manager to use poll in producer #104

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

i-chvets
Copy link
Contributor

Description

During latest experiments with large number of APs, we narrowed down that memory is consumed by Kafka internal queue on GW (producer). And with large number of messages producer cannot keep up with emptying this queue.
One noticeable suspect was identified in flush() call here
Looks like, flushing on every message slows down producer to 100 messages per second.

The solution was to use poll() to allow for faster message transmission in peak times.

Related Jira: https://telecominfraproject.atlassian.net/browse/WIFI-13597

NOTE: This fix is port of Telecominfraproject/wlan-cloud-ucentralgw#360

Summary of changes:

  • Modified code in KafkaManager to use poll instead of flush for every messages sent. flush is used only on empty internal notification queue in idle times.

https://telecominfraproject.atlassian.net/browse/WIFI-13597

NOTE: This fix is port of Telecominfraproject/wlan-cloud-ucentralgw#360

Summary of changes:
- Modified code in KafkaManager to use poll instead of flush for every
  messages sent. flush is used only on empty internal notification queue
  in idle times.

Signed-off-by: Ivan Chvets <[email protected]>
@i-chvets i-chvets merged commit fd25e19 into main Jun 13, 2024
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants