Can we have two varnishes on two ports running on the same system?

Did I just wander around if we can have two copies of varnish on separate ports on the same machine?

I tried to implement active active mode on local.

+4
source share
1 answer

Yes, you can. Not sure what you are doing, but you can start two varnish processes, each on separate ports, or one varnish instance listening on two ports. Examples of each of them:

varnishd -a 0.0.0.0:3000 -f /etc/varnish/default_1.vcl -i varnish_1 -n /var/lib/varnish/ubuntu1.dev/varnish_1
varnishd -a 0.0.0.0:3001 -f /etc/varnish/default_2.vcl -i varnish_2 -n /var/lib/varnish/ubuntu1.dev/varnish_2

, 3000 3001, , . (shm).

- -, ( ).

varnishd -a 0.0.0.0:3000,0.0.0.0:3001 -f /etc/varnish/default.vcl
+4

Source: https://habr.com/ru/post/1540256/


All Articles