Skip to content

Commit

Permalink
Merge pull request #843 from nlake44/increase-timeout
Browse files Browse the repository at this point in the history
increase cutoff timeout
  • Loading branch information
shatterednirvana committed Jan 2, 2014
2 parents 771ca1c + c4d320f commit 541903f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
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

0 comments on commit 541903f

Please sign in to comment.