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

USHIFT-3136: Increase nginx resources and timeouts to mitigate failed ostree installations #3415

Merged
merged 1 commit into from
May 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion test/bin/start_webserver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ mkdir -p "${IMAGEDIR}"
cd "${IMAGEDIR}"

NGINX_CONFIG="${IMAGEDIR}/nginx.conf"
# See the https://nginx.org/en/docs/http/ngx_http_core_module.html page for
# a full list of HTTP configuration directives
cat > "${NGINX_CONFIG}" <<EOF
worker_processes 8;
worker_processes 32;
events {
}
http {
Expand All @@ -26,6 +28,18 @@ http {
root ${IMAGEDIR};
autoindex on;
}

# Timeout during which a keep-alive client connection will stay open on the server
# Default: 75s
keepalive_timeout 300s;

# Timeout for transmitting a response to the client
# Default: 60s
send_timeout 300s;

# Buffers used for reading response from a disk
# Default: 2 32k
output_buffers 2 1m;
}
pid ${IMAGEDIR}/nginx.pid;
daemon on;
Expand Down