-
Notifications
You must be signed in to change notification settings - Fork 34
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
502 Error when searching with high delta on few users #467
Comments
I've reproduced it, thanks for reporting. There's possible a short term fix which is to increase the timeout on the gunicorn server, as the query actually takes 1m15s and the timeout is at 1m. But it's strange that the query takes that long, I'm going to try to reproduce on staging and try some things. |
Hmm, it's very fast on staging unfortunately. |
Some more background about the bug: I've seen this while running a script that checks users activity with a delta of 1 year, the full URL queried by the script is: The 1 year delta is not a problem for the vast majority of users, but for some reason for a few users the query slows down at the point the server response times out. |
Searching for actions from a few users causes 502 Error response when using high delta in query.
For example:
https://apps.fedoraproject.org/datagrepper/raw/?user=karsten&category=bodhi&order=desc&rows_per_page=50&delta=5184000
I can reproduce every time with user
karsten
with a delta of 60 days, but I don't think it's due to too many entries detected for the user, as a delta of just 30 days shows no entries (but it takes a lot of time).Querying other users with the same delta and with much more activity doesn't show any problem and the reply is blazing fast. For example:
https://apps.fedoraproject.org/datagrepper/raw/?user=mattia&category=bodhi&order=desc&rows_per_page=50&delta=5184000
The text was updated successfully, but these errors were encountered: