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

Increase Nginx limits for internal responses #3504

Merged

Conversation

webbnh
Copy link
Member

@webbnh webbnh commented Jul 25, 2023

The recent "Ops Review" revealed a mysterious behavior around the "inner" Nginx proxy: whenever we had a request timeout, we immediately had a second failure which returned a 413 response to the client. We initially thought that this was a configuration problem in the "outer" proxy, but that proved to be unfounded. Then I stumbled onto this explanation: because the client_max_body_size is increased only for the Pbench Server API routes, when the request times out and is redirected to the internal 50X.html page, the maximum request size changes back to the default, and the redirected request fails with a 413 instead of the appropriate 504.

This PR adds client_max_body_size to the two internal routes, to allow them to function properly in the face of large request sizes. (We don't make the client_max_body_size definition global, because there is no reason to tolerate large request sizes for the other routes.)

@webbnh webbnh added Server Code Infrastructure Containerization Of and relating to the process of setting up and maintaining container images labels Jul 25, 2023
@webbnh webbnh added this to the v0.73 milestone Jul 25, 2023
@webbnh webbnh self-assigned this Jul 25, 2023
@webbnh webbnh force-pushed the nginx_limits_for_internals branch from fd2c3ba to 493d2f0 Compare July 25, 2023 19:28
@webbnh webbnh marked this pull request as ready for review July 25, 2023 19:53
@webbnh webbnh requested review from portante, atheurer and ndokos and removed request for atheurer July 25, 2023 19:54
@webbnh webbnh merged commit a97e6c9 into distributed-system-analysis:main Jul 26, 2023
6 checks passed
@webbnh webbnh deleted the nginx_limits_for_internals branch July 26, 2023 18:26
webbnh added a commit to webbnh/pbench that referenced this pull request Jul 27, 2023
webbnh added a commit that referenced this pull request Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Infrastructure Containerization Of and relating to the process of setting up and maintaining container images Server
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants