Generally speaking, the varnish setup you are describing would use a hash director and not round-robin, so that the object would only be cached on one of your varnish nodes and therefore only require a single purge request.
If your object lives on multiple nodes, then you could do something simple like send a HTTP request to *every* one of your hosts. This would require you to keep a list of your hosts and also create the appropriate permissions on all of your varnish instances: $ for i in `cat varnish_host.list`; do curl -XPURGE http://$i/object;done I hope that helps. Maybe somebody can offer a better solution than myself. On Tue, May 28, 2013 at 2:17 PM, Puneet <[email protected]> wrote: > Hi All,**** > > ** ** > > I am using a Load Balancer (LB) in front of Varnish instances. Just say > the LB is listening on Port: 80 and there are multiple instances of Varnish > on different port nos.**** > > i.e. I have a single LB which is connected to 4 instances of varnish, and > LB is executing in a round-robin fashion. **** > > ** ** > > Now, how can I purge objects on Varnish and maintain consistency among > different instances of Varnish.**** > > ** ** > > Thanks**** > > Puneet**** > > ** ** > > ** ** > > _______________________________________________ > varnish-misc mailing list > [email protected] > https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc >
_______________________________________________ varnish-misc mailing list [email protected] https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
