-
Notifications
You must be signed in to change notification settings - Fork 14
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
bug(curation api): 504 returned from GET collection and datasets #7190
Comments
The problem is still happening after the fixes. The metrics show that it's not the queries that are taking the longest. We should look closer at cloudfront to see if there is any caching we can do to improve the speed the same way we are doing it for the portal API. |
After adding additional instrumentation to an rdev, the GET curation/v1/collections from the backend server returns in less than 10 seconds. This was after mirroring prod database to the rdev environment. Still 504 are returned and responses can take over 60 seconds to complete. The load balancer metrics do show a 504 is returned in the logs which should be our next target to investigate. |
I've been using locust to test the system with this code. You'll need to grab the
|
Here is an instance where is succeeded but still took upwards of 30 seconds from the browser.
The logs show the backend server took 6 seconds to complete. This means that the load balancer is getting hung up on this response since rdev do not use cloudfront. Request
Response Headers
The response header shows that The returned payload was 2.7 MB and I don't think it is compressed. |
Describe the bug
When making requests to GET /v1/collection with and without an API Key, a 504 is returned about 50% of the time.
Error
To Reproduce
curl https://api.cellxgene.cziscience.com/curation/v1/collections
or
curl https://api.cellxgene.cziscience.com/curation/v1/datasets
Expected behavior
the endpoints should never return a 504 under proper working conditions.
Environment
Curation API prod
Additional context
{$.details.response_time > 60}
and{$.request_id = "4c28ce0f-7ef5-402f-982a-b51c243b8aba"}
. Here is one of the logs:The text was updated successfully, but these errors were encountered: