Running Two varnishncsa Instances using Systemd : looking for best practice
Yassine Aouadi
yassine.aouadi90 at gmail.com
Wed Jan 29 16:57:12 UTC 2020
Dridi,
Thank you for the Catch !
I was going to correct with "RespStatus > 399 or BerespStatus > 399" but
yours is better.
Splitting the unitsseems to look fine in Dev :
---
● varnishncsa-access.service - Varnish HTTP accelerator log daemon
Loaded: loaded (/lib/systemd/system/varnishncsa-access.service;
disabled; vendor preset: enabled)
Active: active (running) since Wed 2020-01-29 16:52:15 UTC; 5s ago
Docs: https://www.varnish-cache.org/docs/4.1/
man:varnishncsa
Process: 10571 ExecStart=/usr/bin/varnishncsa -c -b -a -w
/var/log/varnish/access-varnishncsa.log -D -P
/run/varnishncsa/varnishncsa-access.pid -f
/etc/varnish/varnishncsa_logmatic.format -q *Status < 400
Main PID: 10575 (varnishncsa)
Tasks: 1
Memory: 188.0K
CPU: 44ms
CGroup: /system.slice/varnishncsa-access.service
└─10575 /usr/bin/varnishncsa -c -b -a -w
/var/log/varnish/access-varnishncsa.log -D -P
/run/varnishncsa/varnishncsa-access.pid -f
/etc/varnish/varnishncsa_logmatic.format -q *Status < 400
Jan 29 16:52:15 LAB-*** systemd[1]: Starting Varnish HTTP accelerator log
daemon...
Jan 29 16:52:15 LAB*** ystemd[1]: Started Varnish HTTP accelerator log
daemon.
● varnishncsa-error.service - Varnish HTTP accelerator log daemon
Loaded: loaded (/lib/systemd/system/varnishncsa-error.service; disabled;
vendor preset: enabled)
Active: active (running) since Wed 2020-01-29 16:52:15 UTC; 5s ago
Docs: https://www.varnish-cache.org/docs/4.1/
man:varnishncsa
Process: 10566 ExecStart=/usr/bin/varnishncsa -c -b -a -w
/var/log/varnish/error-varnishncsa.log -D -P
/run/varnishncsa/varnishncsa-error.pid -f
/etc/varnish/varnishncsa_logmatic.format -q *Status > 399
Main PID: 10574 (varnishncsa)
Tasks: 1
Memory: 312.0K
CPU: 46ms
CGroup: /system.slice/varnishncsa-error.service
└─10574 /usr/bin/varnishncsa -c -b -a -w
/var/log/varnish/error-varnishncsa.log -D -P
/run/varnishncsa/varnishncsa-error.pid -f
/etc/varnish/varnishncsa_logmatic.format -q *Status > 399
Jan 29 16:52:15 LAB-*** systemd[1]: Starting Varnish HTTP accelerator log
daemon...
Jan 29 16:52:15 LAB-*** systemd[1]: Started Varnish HTTP accelerator log
daemon.
---
Would provide feedback once moving to prod.
>
>
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20200129/5a40d6cd/attachment.html>
More information about the varnish-misc
mailing list