can't add second node

Boris Guéry guery.b at gmail.com
Mon May 5 08:05:10 CEST 2014


Hi,

use `varnishd -C -f [path to your vcl file]` to lint and dump your
compiled VCL.

You may also want to start your service in verbose debug mode by running

sh -v -x /etc/init.d/varnish start

Le 05/05/2014 04:50, Tim Dunphy a écrit :
> Hey all,
> 
> I have a very basic entirely stripped down default.vcl that I
> can't seem to get to work. And I'm unclear as to why.
> 
> 
> With one node defined I am good and can restart at will:
> 
> # man page for details on VCL syntax and semantics. # # Default
> backend definition.  Set this to point to your content # server. # 
> probe favicon { .url = "/favicon.ico"; .timeout = 60ms; .interval =
> 2s; .window = 5; .threshold = 3; }
> 
> backend web1  { .host = "xx.xx.xx.xx"; .port = "80"; .probe =
> favicon; }
> 
> 
> [root at varnish1 varnish]# service varnish restart Stopping Varnish
> Cache:                                    [  OK  ] Starting Varnish
> Cache:                                    [  OK  ]
> 
> 
> However as soon as I add one more node, vernish fails to start:
> 
> # man page for details on VCL syntax and semantics. # # Default
> backend definition.  Set this to point to your content # server. # 
> probe favicon { .url = "/favicon.ico"; .timeout = 60ms; .interval =
> 2s; .window = 5; .threshold = 3; }
> 
> backend web1  { .host = "xx.xx.xx.xx"; .port = "80"; .probe =
> favicon; }
> 
> backend web2  { .host = "xx.xx.xx.xx; .port = "80"; .probe =
> favicon; } Varnish will not start with this config:
> 
> [root at varnish1 varnish]# service varnish start Starting Varnish
> Cache:                                    [FAILED]
> 
> I was just hoping someone could enlighten me as to why I may be
> having trouble here!
> 
> Thanks for any advice you can give.
> 
> Tim
> 
> -- GPG me!!
> 
> gpg --keyserver pool.sks-keyservers.net
> <http://pool.sks-keyservers.net> --recv-keys F186197B
> 
> 
> 
> _______________________________________________ varnish-misc
> mailing list varnish-misc at varnish-cache.org 
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
> 


-- 
Boris Guéry

mobile: +33 6 86 83 03 12
twitter: @borisguery
skype:  borisguery
pgp:    0x034C6265



More information about the varnish-misc mailing list