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

Rate limiting per worker? #14

Open
heldopslippers opened this issue Nov 5, 2015 · 2 comments
Open

Rate limiting per worker? #14

heldopslippers opened this issue Nov 5, 2015 · 2 comments

Comments

@heldopslippers
Copy link

Hi Guys,

We currently use Sidekiq-rate-limiter.
We experiencing that when we use mulitple differen workers (same queue and name) they all have their own limit.

So for example:
I start 50 times FirstWorker (limit 1 per second).
And start 50 time SecondWorker (limit 1 per second).

It will actually do 2 jobs per second.
Has anybody else have a solution for this?

@bobber205
Copy link

no way you can use the same queue/name of worker for different workers.

@JIucToyxuu
Copy link

JIucToyxuu commented Feb 3, 2017

How we see from README - this gem should support options from https://github.com/gevans/sidekiq-throttler gem. README sidekiq-throttler gem contain paragraph 'Custom Keys'. So, maybe this can be used as solution for this issue? Or :key option is not supported?

P.S. instead of :key should be use :name option.

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

No branches or pull requests

3 participants