You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for making this library! I'm using it at work, and we are trying to throttle a bunch of nightly calls we make to an API. Their limit is 10 requests / second. Currently we run 3 resque servers, with with several workers. We've created a special queue just for this API, and throw all of our jobs related to the API onto this queue. So our resque config looks like this: Resque.rate_limit(:special_api_queue, at: 2, per: 1)
And yet, we still are getting rate limit errors. From the ReadMe, I would think this means a limit of 2 per second. Which, even if the limit was per server (which is certainly unexpected behavior), should be 6 / second.
So my question here is just understanding how this queue limit plays across multiple resqueue worker threads and servers.
What I'd love is a way to set the rate limit from that queue across all servers/workers, so that I can rest assured that rate limits won't get hit, even if I scale up or down our number of servers/workers.
Thanks! - Blake
The text was updated successfully, but these errors were encountered:
Hi, thanks for making this library! I'm using it at work, and we are trying to throttle a bunch of nightly calls we make to an API. Their limit is 10 requests / second. Currently we run 3 resque servers, with with several workers. We've created a special queue just for this API, and throw all of our jobs related to the API onto this queue. So our resque config looks like this:
Resque.rate_limit(:special_api_queue, at: 2, per: 1)
And yet, we still are getting rate limit errors. From the ReadMe, I would think this means a limit of 2 per second. Which, even if the limit was per server (which is certainly unexpected behavior), should be 6 / second.
So my question here is just understanding how this queue limit plays across multiple resqueue worker threads and servers.
What I'd love is a way to set the rate limit from that queue across all servers/workers, so that I can rest assured that rate limits won't get hit, even if I scale up or down our number of servers/workers.
Thanks! - Blake
The text was updated successfully, but these errors were encountered: