Skip to content

Commit

Permalink
Merge pull request #3415 from ggiguash/nginx_config
Browse files Browse the repository at this point in the history
USHIFT-3136: Increase nginx resources and timeouts to mitigate failed ostree installations
  • Loading branch information
openshift-merge-bot[bot] committed May 31, 2024
2 parents d9ed425 + 69f05f4 commit e368f30
Showing 1 changed file with 15 additions and 1 deletion.
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

0 comments on commit e368f30

Please sign in to comment.