Skip to content

Commit 57c7975

Browse files
authored
Add codespeed timeout config (#649)
1 parent fecc66a commit 57c7975

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

salt/codespeed/config/codespeed.service.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ After=network.target
66
Environment=LC_ALL=en_US.UTF-8
77
Environment=LANG=en_US.UTF-8
88
WorkingDirectory=/srv/codespeed/{{ instance }}/src
9-
ExecStart=/srv/codespeed/{{ instance }}/env/bin/gunicorn {{ wsgi_app }} -w 4 --bind unix:///var/run/codespeed/{{ instance }}.sock
9+
ExecStart=/srv/codespeed/{{ instance }}/env/bin/gunicorn {{ wsgi_app }} -w 4 --timeout 300 --bind unix:///var/run/codespeed/{{ instance }}.sock
1010
ExecReload=/bin/kill -HUP $MAINPID
1111
ExecStop = /bin/kill -s TERM $MAINPID
1212
Restart=on-failure

salt/codespeed/config/nginx.conf.jinja

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ server {
3333
proxy_set_header Host $http_host;
3434
proxy_redirect off;
3535

36+
# Result uploads insert thousands of rows and run well past the 60s default
37+
proxy_read_timeout 300s;
38+
proxy_send_timeout 300s;
39+
3640
if (!-f $request_filename) {
3741
proxy_pass http://codespeed-{{ instance }};
3842
break;

0 commit comments

Comments
 (0)