From 2e06c7ee5187e75e634fb8df12d479cd543c0ed0 Mon Sep 17 00:00:00 2001 From: Sergio Oliveira Date: Thu, 29 Oct 2015 12:01:29 -0200 Subject: [PATCH] Restart colab workers after 1000 requests --- cookbooks/colab/templates/gunicorn.py.erb | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/cookbooks/colab/templates/gunicorn.py.erb b/cookbooks/colab/templates/gunicorn.py.erb index 512e3c5..9126f95 100644 --- a/cookbooks/colab/templates/gunicorn.py.erb +++ b/cookbooks/colab/templates/gunicorn.py.erb @@ -5,3 +5,4 @@ workers = <%= node['config']['colab_http_workers'] || 'multiprocessing.cpu_count syslog = True proc_name = "colab" timeout = 90 +max_requests = 1000 -- libgit2 0.21.2