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

www.osm.org and api.osm.org tune Apache HTTP timeouts #950

Open
Firefishy opened this issue Sep 6, 2023 · 7 comments
Open

www.osm.org and api.osm.org tune Apache HTTP timeouts #950

Firefishy opened this issue Sep 6, 2023 · 7 comments
Labels
service:api issues related to the API

Comments

@Firefishy
Copy link
Member

Currently both www and api share the same HTTP timeout, the HTTP timeouts should tuned appropriately.

  • www.openstreetmap.org should have a ~30 seconds HTTP timeout
  • api.openstreetmap.org should likely retain the 300 seconds HTTP timeout
@tomhughes
Copy link
Member

Maybe do some research before suggesting timeouts that exactly match what we already have?

@tomhughes
Copy link
Member

@Firefishy
Copy link
Member Author

I know the api timeout is 300s. The main issue is www should not be such a long timeout.

@tomhughes
Copy link
Member

It isn't, it's 30 seconds, that's what web_timeout is.

It doesn't really help though because once one of them is hogging all the daemons the other one won't get a look in.

None of it is in any way relevant to anything that happened today as far as I know, but I'll know more once I've actually finished getting to the bottom of what happened instead of just guessing and throwing random suggestions in the ring.

@Firefishy Firefishy changed the title www.osm.org and api.osm.org tuned HTTP timeouts www.osm.org and api.osm.org tune Apache HTTP timeouts Sep 6, 2023
@Firefishy
Copy link
Member Author

I have tweaked the ticket title to include Apache. Currently apache's global timeout is set to Timeout 300. Timeout directive sets many underlying apache timeouts if not explicitly set.

@Firefishy
Copy link
Member Author

@Firefishy Firefishy reopened this Sep 6, 2023
@tomhughes
Copy link
Member

We already have the request timeout configured separately in apache via the reqtimeout module.

I'm still investigating what happened but at least in part timeouts were actually making it worse because we wound up with lots of database queries still running after the web requests that initiated them had timed out.

@pnorman pnorman added the service:api issues related to the API label Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service:api issues related to the API
Projects
None yet
Development

No branches or pull requests

3 participants