Forum

Thread tagged as: Question

varnish cache purge issue behind load balancer

I am using varnish cache and it works great on single server.

but, I am using varnish cache on multiple servers and putting them all behind a load balancer. so each server has its own cache, this works great in very high traffic website.

however, it becomes difficult to purge cache when pages are updated. I want to know if there is a way to purge cache on multiple servers so that all of them are updated at once.

sawan ruparel

sawan ruparel 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

The built in Varnish feature will send a purge to one location only. You could possibly proxy that and reissue the purge to your cluster (it's just an HTTP message), but that's not something I've ever done.

It is probably not a perch issue, but I am trying to send PURGE request to "curl -X PURGE https://xyz.com/pagename" but it wont invalidate.

I don't know what I am doing wrong.

Is it possible to tweak perch code so it also purge other IP address cache?

Rachel Andrew

Rachel Andrew 394 points
Perch Support

No that isn't something we support.