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

Missing keepalive parameter in nginx configuration #1430

Open
ldumaine opened this issue Feb 24, 2025 · 2 comments
Open

Missing keepalive parameter in nginx configuration #1430

ldumaine opened this issue Feb 24, 2025 · 2 comments
Labels
community triage Needs triage and scheduling

Comments

@ldumaine
Copy link

ldumaine commented Feb 24, 2025

Hi,

I think the proposed nginx configuration doesn't activate keepalive connexions as the upstream server doesn't include the keepalive parameter that activates the cache for connections to upstream servers.

https://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive

See there for example
https://github.com/minio/minio/blob/39df134204b17336b133ab22256ac17fe72adcd6/docs/resiliency/nginx.conf
Or there:
https://min.io/docs/minio/linux/integrations/setup-nginx-proxy-with-minio.html

Without the keepalive parameter
$mc ping -c 100 ssd|tail -n 5
96: https://fsdfdsl min=1.39ms max=18.54ms average=8.34ms errors=0 roundtrip=12.98ms
97: https://fsdfdsl min=1.39ms max=18.54ms average=8.29ms errors=0 roundtrip=4.01ms
98: https://fsdfdsl min=1.39ms max=18.54ms average=8.25ms errors=0 roundtrip=3.93ms
99: https://fsdfdsl min=1.39ms max=18.54ms average=8.18ms errors=0 roundtrip=1.54ms
100: https://fsdfdsl min=1.39ms max=18.54ms average=8.12ms errors=0 roundtrip=1.79ms

With the keepalive parameter (keepalive 48)
$mc ping -c 100 ssd | tail -n 5
96: https://fdsfds min=0.97ms max=16.60ms average=2.16ms errors=0 roundtrip=1.88ms
97: https://fdsfds min=0.97ms max=16.60ms average=2.16ms errors=0 roundtrip=1.93ms
98: https://fsdfdsl min=0.97ms max=16.60ms average=2.15ms errors=0 roundtrip=1.12ms
99: https://fdsfds min=0.97ms max=16.60ms average=2.14ms errors=0 roundtrip=1.37ms
100: https://fdsfsd min=0.97ms max=16.60ms average=2.13ms errors=0 roundtrip=1.30ms

Regards, Luc.

@ldumaine ldumaine added community triage Needs triage and scheduling labels Feb 24, 2025
@klauspost klauspost transferred this issue from minio/minio Feb 24, 2025
@klauspost
Copy link
Contributor

The stuff in the minio repo is not to be used, but the docs should be fixed.

@ravindk89
Copy link
Collaborator

So the webdocs do not mention setting keepalive at at all - if we do mention it, it has to include a baseline parameter value that we believe to be generally 'safe'. I'm not sure what that value would be.

@allanrogerr any guidance here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community triage Needs triage and scheduling
Projects
None yet
Development

No branches or pull requests

3 participants