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

Large API requests causing Seattle server to go down #3224

Closed
misaugstad opened this issue May 2, 2023 · 2 comments · Fixed by #3276
Closed

Large API requests causing Seattle server to go down #3224

misaugstad opened this issue May 2, 2023 · 2 comments · Fixed by #3276

Comments

@misaugstad
Copy link
Member

Brief description of problem/feature

We continue to have an issue with the size of the Seattle dataset, and our current inability to reliably serve up that data! This is a particularly big issue for CV applications for which we have documentation that assumes that the APIs will actually work. The API that we run into the most issues with is /adminapi/labels/cvMetadata.

I've tried to increase Java's heap size, but it's surprisingly difficult to figure out whether changes I'm making are even taking effect. There are multiple places where I can set a max heap size, and not all of them actually work. And it's even harder to know if the changes work on production servers.

Potential solution(s)

@michaelduan8 had suggested in the past that we add parameters to allow users to select a range of label IDs. This way, they could query for only 50k labels at a time, for example.

We could also put more effort into figuring out how exactly to configure Java's max heap size. Would also want to talk to CSE Support about how much memory is too much for us to be taking up. Are we close to the limit for what is reasonable? Or have we just failed to figure out how to set an appropriate heap size for a real production website?

@misaugstad
Copy link
Member Author

Here is some further info, posted in #3239

Status Info:

HTTP/1.1 502 Proxy Error
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16
Content-Type: text/html; charset=iso-8859-1

HTML output:

Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /adminapi/labels/cvMetadata.
Reason: Error reading from remote server

Steps to reproduce
curl -I https://sidewalk-sea.cs.washington.edu/adminapi/labels/cvMetadata

@misaugstad
Copy link
Member Author

Just tested this on prod and was able to do our biggest API request twice simultaneously, so I believe that this has been fixed!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant