Mailing List Archive

Config change.
I need to add more backend servers and req.http.Host definitions quite often,
is there a way to change the config without restarting varnish and loose the
entire cache?

Or is it just simpler to have a backend on loopback and write a separate app
to handle the backend distribution without having to restart varnish and
loose the cache. This might not be a problem for most uses but i plan to
store around 6TB in the cache on each box, so i would realy like not having
to refill it each time i add a new site to the caches =)

also is it possible to make varnish listen on sevral adresses/ports, i tried
with mutiple -a x.x.x.x:y but it did'nt seem to work.

// Fredrik Neij
Config change. [ In reply to ]
In message <200707031452.53961.tiamo at tfr.org>, TiAMO writes:

>I need to add more backend servers and req.http.Host definitions quite often,
>is there a way to change the config without restarting varnish and loose the
>entire cache?

Yes, you can load a new VCL code from the CLI interface with no disruption
to your active traffic.

--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
Config change. [ In reply to ]
TiAMO <tiamo at tfr.org> writes:
> I need to add more backend servers and req.http.Host definitions quite
> often, is there a way to change the config without restarting varnish
> and loose the entire cache?

vcl.load newconf /my/new/config
vcl.use newconf

> also is it possible to make varnish listen on sevral adresses/ports, i
> tried with mutiple -a x.x.x.x:y but it did'nt seem to work.

Not supported yet, but if you open a ticket I'll try to fix it for 1.1.

DES
--
Dag-Erling Sm?rgrav
Senior Software Developer
Linpro AS - www.linpro.no