Juan Hernandez has uploaded a new change for review. Change subject: packaging: Increase Apache AJP timeout (#845832) ......................................................................
packaging: Increase Apache AJP timeout (#845832) https://bugzilla.redhat.com/845832 The default timeout that Apache uses when waiting to receive network data from the application server is 60 seconds. Some of the RESTAPI request can take longer than that and will fail with this setting, so we need to increase it to account for the slowest operations. Change-Id: Id43ff3b79de8d7955018809cce66c2c06984298d Signed-off-by: Juan Hernandez <juan.hernan...@redhat.com> --- M packaging/fedora/setup/ovirt-engine-proxy.conf.in 1 file changed, 22 insertions(+), 4 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/33/7933/1 diff --git a/packaging/fedora/setup/ovirt-engine-proxy.conf.in b/packaging/fedora/setup/ovirt-engine-proxy.conf.in index 538acaf..b2adf4a 100644 --- a/packaging/fedora/setup/ovirt-engine-proxy.conf.in +++ b/packaging/fedora/setup/ovirt-engine-proxy.conf.in @@ -1,12 +1,30 @@ #import basedefs -# Redirect all requests to the application server using the AJP protocol -# and making sure that the connections will be recovered in a short time -# interval (5 seconds at the moment): -ProxyPass / ajp://localhost:${basedefs.JBOSS_AJP_PORT}/ retry=5 +# +# Redirect all requests to the application server using the AJP +# protocol. +# +# The following parameters are recommended: +# +# retry=5 +# +# This is needed to make sure that connections to the application server +# are recovered in a short time interval (5 seconds at the moment) +# otherwise when the application server is restarted the web server will +# refuse to connect during 60 seconds. +# +# timeout=300 +# +# This is needed to make sure that long RESTAPI requests have time to +# finish before the web server aborts the request as the default timeout +# (controlled by the Timeout directive in httpd.conf) is 60 seconds. +# +ProxyPass / ajp://localhost:${basedefs.JBOSS_AJP_PORT}/ retry=5 timeout=300 +# # Remove the Expect headers from API requests (this is needed to fix a # problem with some API clients): +# <IfModule mod_headers.c> RequestHeader unset Expect early </IfModule> -- To view, visit http://gerrit.ovirt.org/7933 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Id43ff3b79de8d7955018809cce66c2c06984298d Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Juan Hernandez <juan.hernan...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches