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

[Bug] Fluss sender will be in busy loop when is in low traffic #306

Open
1 of 2 tasks
luoyuxia opened this issue Jan 3, 2025 · 4 comments
Open
1 of 2 tasks

[Bug] Fluss sender will be in busy loop when is in low traffic #306

luoyuxia opened this issue Jan 3, 2025 · 4 comments
Assignees
Labels
bug Something isn't working component=client

Comments

@luoyuxia
Copy link
Collaborator

luoyuxia commented Jan 3, 2025

Search before asking

  • I searched in the issues and found nothing similar.

Fluss version

main

Minimal reproduce step

When in low traffic, the sender finds no records ready to send, sleeps 1ms, and then runOnce again to check whether records are ready which causes a busy loop to occupy more CPU..

What doesn't meet your expectations?

N/A

Anything else?

If I modify it to sleep 50ms, the CPU will be reduced from 120 to 80... But we will need a more sophisticated mechanism to solve it..

Are you willing to submit a PR?

  • I'm willing to submit a PR!
@luoyuxia luoyuxia added bug Something isn't working component=client labels Jan 3, 2025
@sunxiaojian
Copy link

@luoyuxia please assign it to me.

@loserwang1024
Copy link
Collaborator

Hi, @sunxiaojian ,thanks for your voluntary. However, I have already done something about it and want to fix it as soon as possible because it will block my work .@luoyuxia , I'd like to do it.

@sunxiaojian
Copy link

Hi, @sunxiaojian ,thanks for your voluntary. However, I have already done something about it and want to fix it as soon as possible because it will block my work .@luoyuxia , I'd like to do it.

@loserwang1024 ok, go ahead.

@luoyuxia
Copy link
Collaborator Author

luoyuxia commented Jan 7, 2025

Thanks all your guys..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component=client
Projects
None yet
Development

No branches or pull requests

3 participants