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

Fix dropped events #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fix dropped events #9

wants to merge 2 commits into from

Conversation

tomoyat1
Copy link
Collaborator

@tomoyat1 tomoyat1 commented Sep 26, 2019

Please read the CLA carefully before submitting your contribution to Mercari.
Under any circumstances, by submitting your contribution, you are deemed to accept and agree to be bound by the terms and conditions of the CLA.

https://www.mercari.com/cla/

WHAT

Updates to Services are sometimes dropped when a cluster has many services.
By removing the BucketRateLimiter attached to the workqueue, this PR fixes this problem.

WHY

The DefaultControllerRateLimiter() contains a BucketRateLimiter (implementation of a token bucket) with the parameters 10 tokens per second and bucket size of 100.
The Informer listens to all addition/deletion/updates made to Service s, which saturates this token bucket. This rate limit is unnecessary, and removing it fixes the problem.


Please merge after #8, since fix-dropped-events branch contains commits from #8

@tomoyat1 tomoyat1 self-assigned this Sep 26, 2019
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.

1 participant