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

Report and/or gracefully handle rate limiter connection issues #491

Open
soulshake opened this issue Aug 29, 2018 · 1 comment
Open

Report and/or gracefully handle rate limiter connection issues #491

soulshake opened this issue Aug 29, 2018 · 1 comment

Comments

@soulshake
Copy link
Contributor

soulshake commented Aug 29, 2018

Worker depends on an external Redis for rate-limiting purposes. Since this Redis runs on Heroku, its endpoint can sometimes change.

If it cannot connect to this Redis, worker fails to start, so no jobs can run.

We should:

  • make worker report this issue (and add an alert)
  • make worker handle this failure more gracefully

Open question: How should worker handle a situation where it cannot connect to its Redis? Should it:

  • fail to start (as currently)
  • start, but disregard rate limits completely
  • start, but in some different fallback mode where it makes fewer requests
  • something else?

Alternatively, it would not hurt to reevaluate worker's behavior towards the GCE API. Is there any way we can get rid of the dependency on an external rate-limit-checker completely?

References

@igorwwwwwwwwwwwwwwwwwwww
Copy link
Contributor

Alternatively, it would not hurt to reevaluate worker's behavior towards the GCE API. Is there any way we can get rid of the dependency on an external rate-limit-checker completely?

I am strongly in favour of getting rid of it.

According to the Quotas page we are well within current quota limits. According to our redis rate limiting metrics we are still heavily rate limiting ourselves every now and then, but mostly are not applying any rate limits.

I would be in favour of turning it and applying for quota increases if we hit quota limits on their end.

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

2 participants