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-limiter causing 5xx errors for locate clients #34

Open
stephen-soltesz opened this issue Sep 10, 2020 · 0 comments
Open

rate-limiter causing 5xx errors for locate clients #34

stephen-soltesz opened this issue Sep 10, 2020 · 0 comments

Comments

@stephen-soltesz
Copy link
Contributor

Today we deployed a new version locate with https://github.com/m-lab/locate/pull/32/files#diff-03269340b0cd4f39c6eee256654b12a6 that now distinguishes between ErrNoContent (http204) and returns 503. We happen to have an alert for 503 errors specifically, which began firing.

It turns out that this has been happening for a while, however previously it was returning 500 errors, for which we do not have an alert.

@nkinkade investigated more carefully and discovered that the rate-limiter was triggering on requests from the VM IP when the client lat=/lon= parameters were empty. As a result of empty lat/lon, the query pattern that the rate-limiter ignores was not present, so the rate-limiter did not ignore those requests, and rate limited them.

This is a bug.

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