From e3091c869790bacdeb85039f7b8bf5f01d6c75042cd459407d77992514ccce42 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sun, 25 Sep 2022 13:07:01 +0000 Subject: [PATCH] Accepting request 1005874 from home:bmwiedemann:branches:server:http - Make reload fail nicely on vcl syntax error - Set TasksMax=16384 because default thread_pool_max is 5000 so systemd killed varnish on high load OBS-URL: https://build.opensuse.org/request/show/1005874 OBS-URL: https://build.opensuse.org/package/show/server:http/varnish?expand=0&rev=116 --- varnish.changes | 6 ++++++ varnish.service | 1 + varnish_reload_vcl | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/varnish.changes b/varnish.changes index 32e5ed5..a746f13 100644 --- a/varnish.changes +++ b/varnish.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Sep 21 08:10:13 UTC 2022 - Bernhard Wiedemann + +- Make reload fail nicely on vcl syntax error +- Set TasksMax=16384 because default thread_pool_max is 5000 + ------------------------------------------------------------------- Mon Sep 19 02:44:04 UTC 2022 - Bernhard Wiedemann diff --git a/varnish.service b/varnish.service index 83c859e..962a800 100644 --- a/varnish.service +++ b/varnish.service @@ -21,6 +21,7 @@ PIDFile=/var/run/varnishd.pid ExecStart=/usr/sbin/varnishd -P /var/run/varnishd.pid -F $VARNISHD_PARAMS ExecReload=/usr/sbin/varnish_reload_vcl KillMode=mixed +TasksMax=16384 [Install] WantedBy=multi-user.target diff --git a/varnish_reload_vcl b/varnish_reload_vcl index be2695f..73bbf74 100644 --- a/varnish_reload_vcl +++ b/varnish_reload_vcl @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -e # Generate a unique timestamp ID for this version of the VCL TIME=$(date +%s)