From a7bd942b38bd8196957b7ec679921efb65a88007 Mon Sep 17 00:00:00 2001 From: Rafael Monnerat Date: Wed, 11 Oct 2017 16:47:17 +0200 Subject: [PATCH] stack/caucase: User shorter path for sock Reduce a little the path+filename for the socket file, as NGINX/Linux has a limitation for long paths on this instruction. This small change allow the resilience test works w/o kernel patches or workarrounds. --- stack/caucase/buildout.hash.cfg | 2 +- stack/caucase/instance-caucase.cfg.jinja2.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stack/caucase/buildout.hash.cfg b/stack/caucase/buildout.hash.cfg index 10761ed70d..e09d846dc1 100644 --- a/stack/caucase/buildout.hash.cfg +++ b/stack/caucase/buildout.hash.cfg @@ -28,7 +28,7 @@ md5sum = a317d2f948cd3d16c860d05cc07ecf42 [template-caucase] filename = instance-caucase.cfg.jinja2.in -md5sum = 7db9e8bf23cf4689e7986c381b94d2cb +md5sum = d31d4c9855d653d3d74c6133a7d85530 [instance-caucase] filename = instance.cfg.in diff --git a/stack/caucase/instance-caucase.cfg.jinja2.in b/stack/caucase/instance-caucase.cfg.jinja2.in index a964a2c316..0dcdba4e67 100644 --- a/stack/caucase/instance-caucase.cfg.jinja2.in +++ b/stack/caucase/instance-caucase.cfg.jinja2.in @@ -157,7 +157,7 @@ mode = 700 [caucase-gunicorn] recipe = slapos.cookbook:wrapper -socket = ${directory:ca-dir}/ca.flaskserver.sock +socket = ${directory:ca-dir}/ng.sock command-line = {{ gunicorn_bin }} caucase.wsgi:app -b unix:${:socket} -e CA_CONFIGURATION_FILE=${caucase-conf:output} --error-logfile ${:log-file} --pid ${:pid-file} --capture-output --timeout 60 --threads 2 --log-level error --preload log-file = ${directory:log}/ca-gunicorn-error.log pid-file = ${directory:run}/ca-gunicorn.pid -- 2.25.1