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 cutoff timeout #843

Merged
merged 1 commit into from
Jan 2, 2014
Merged
Show file tree
Hide file tree
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
12 changes: 6 additions & 6 deletions AppController/lib/haproxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -288,15 +288,15 @@ def self.initialize_config
# any Mongrel, not just the one that started the session
option redispatch

# Timeout a request if the client did not read any data for 60 seconds
timeout client 60000
# Timeout a request if the client did not read any data for 600 seconds
timeout client 600000

# Timeout a request if Mongrel does not accept a connection for 60 seconds
timeout connect 60000
# Timeout a request if Mongrel does not accept a connection for 600 seconds
timeout connect 600000

# Timeout a request if Mongrel does not accept the data on the connection,
# or does not send a response back in 1 minute.
timeout server 60000
# or does not send a response back in 10 minutes.
timeout server 600000

# Enable the statistics page
stats enable
Expand Down
38 changes: 19 additions & 19 deletions AppController/lib/nginx.rb
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ def self.write_app_config(app_name, http_port, https_port, my_public_ip,
proxy_redirect off;
proxy_pass http://gae_#{app_name};
client_max_body_size 2G;
proxy_connect_timeout 60;
client_body_timeout 60;
proxy_read_timeout 60;
proxy_connect_timeout 600;
client_body_timeout 600;
proxy_read_timeout 600;
}
DEFAULT_CONFIG
secure_default_location = default_location
Expand Down Expand Up @@ -196,7 +196,7 @@ def self.write_app_config(app_name, http_port, https_port, my_public_ip,
location /reserved-channel-appscale-path {
proxy_buffering off;
tcp_nodelay on;
keepalive_timeout 55;
keepalive_timeout 600;
proxy_pass http://#{login_ip}:#{CHANNELSERVER_PORT}/http-bind;
}

Expand Down Expand Up @@ -237,7 +237,7 @@ def self.write_app_config(app_name, http_port, https_port, my_public_ip,
location /reserved-channel-appscale-path {
proxy_buffering off;
tcp_nodelay on;
keepalive_timeout 55;
keepalive_timeout 600;
proxy_pass http://#{login_ip}:#{CHANNELSERVER_PORT}/http-bind;
}

Expand Down Expand Up @@ -299,9 +299,9 @@ def self.write_fullproxy_app_config(app_name, http_port, https_port,
proxy_redirect off;
proxy_pass http://gae_ssl_#{app_name};
client_max_body_size 2G;
proxy_connect_timeout 60;
client_body_timeout 60;
proxy_read_timeout 60;
proxy_connect_timeout 600;
client_body_timeout 600;
proxy_read_timeout 600;
}
DEFAULT_CONFIG
end
Expand All @@ -319,9 +319,9 @@ def self.write_fullproxy_app_config(app_name, http_port, https_port,
proxy_redirect off;
proxy_pass http://gae_#{app_name};
client_max_body_size 2G;
proxy_connect_timeout 60;
client_body_timeout 60;
proxy_read_timeout 60;
proxy_connect_timeout 600;
client_body_timeout 600;
proxy_read_timeout 600;
}
DEFAULT_CONFIG
end
Expand Down Expand Up @@ -375,7 +375,7 @@ def self.write_fullproxy_app_config(app_name, http_port, https_port,
location /reserved-channel-appscale-path {
proxy_buffering off;
tcp_nodelay on;
keepalive_timeout 55;
keepalive_timeout 600;
proxy_pass http://#{login_ip}:#{CHANNELSERVER_PORT}/http-bind;
}

Expand Down Expand Up @@ -450,7 +450,7 @@ def self.write_fullproxy_app_config(app_name, http_port, https_port,
location /reserved-channel-appscale-path {
proxy_buffering off;
tcp_nodelay on;
keepalive_timeout 55;
keepalive_timeout 600;
proxy_pass http://#{login_ip}:#{CHANNELSERVER_PORT}/http-bind;
}

Expand Down Expand Up @@ -537,9 +537,9 @@ def self.create_datastore_server_config(my_ip, proxy_port)
proxy_redirect off;
proxy_pass http://#{DatastoreServer::NAME};
client_max_body_size 30M;
proxy_connect_timeout 60;
client_body_timeout 60;
proxy_read_timeout 60;
proxy_connect_timeout 600;
client_body_timeout 600;
proxy_read_timeout 600;
}

}
Expand Down Expand Up @@ -575,8 +575,8 @@ def self.create_datastore_server_config(my_ip, proxy_port)
proxy_set_header Host $http_host;
proxy_redirect off;

client_body_timeout 60;
proxy_read_timeout 60;
client_body_timeout 600;
proxy_read_timeout 600;
#Increase file size so larger applications can be uploaded
client_max_body_size 30M;
# go to proxy
Expand Down Expand Up @@ -730,7 +730,7 @@ def self.initialize_config
#tcp_nopush on;

#keepalive_timeout 0;
keepalive_timeout 60;
keepalive_timeout 600;
tcp_nodelay on;
server_names_hash_bucket_size 128;

Expand Down