Mailing List Archive

Multiple VCL upon Startup
I've successfully loaded and labeled several VCL files with one that routes properly, as outlined on this page:

https://varnish-cache.org/docs/5.1/users-guide/vcl-separate.html

However, I need this setup to load automatically upon reboot of the server without intervention. I found only one article that claims to do this by supplying a cli file to varnishadm via an "I" flag in the daemon_args. I'm running version 5.0 on Ubuntu and the man page does not include this option and attempting to use it causes varnish to fail:

varnishd: invalid option -- 'I'

The article that describes this method is from varnish-software.com<http://varnish-software.com> and claims it should work on version 5 and up. Am I to assume that this is only available in the commercial version of varnish?

https://info.varnish-software.com/blog/one-vcl-per-domain?success=true


I'm interested in recommendations so that I can rely on varnish to load multiple VCL files upon startup/reboot.


Thanks!


Mike
Re: Multiple VCL upon Startup [ In reply to ]
Hello Michael,

On Wed, Jun 27, 2018 at 5:20 AM, Michael Davis <mdavis@csidigital.net> wrote:
> I've successfully loaded and labeled several VCL files with one that routes
> properly, as outlined on this page:
>
> https://varnish-cache.org/docs/5.1/users-guide/vcl-separate.html
>
> However, I need this setup to load automatically upon reboot of the server
> without intervention. I found only one article that claims to do this by
> supplying a cli file to varnishadm via an "I" flag in the daemon_args. I'm
> running version 5.0 on Ubuntu and the man page does not include this option
> and attempting to use it causes varnish to fail:
>
> varnishd: invalid option -- 'I'
>
> The article that describes this method is from varnish-software.com and
> claims it should work on version 5 and up. Am I to assume that this is only
> available in the commercial version of varnish?

I'm afraid this blog post may be a bit misleading. The label feature
appeared in 5.0 but the ability to switch to a label from the active
VCL landed in 5.1 along with the ability to specify a CLI script at
startup.

> https://info.varnish-software.com/blog/one-vcl-per-domain?success=true
>
>
> I'm interested in recommendations so that I can rely on varnish to load
> multiple VCL files upon startup/reboot.

First, I strongly advise an upgrade to 6.0 since none of the 5.x
series are supported. They may get security releases, but not general
bug fixes.

If you really can't move away from 5.0 or really need to get this
working while you are planning your upgrade, there may be a way
depending on your operating system.

Cheers
_______________________________________________
varnish-misc mailing list
varnish-misc@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc