#374: Implement restart in vcl_error
----------------------+-----------------------------------------------------
Reporter: tcouery | Owner: phk
Type: defect | Status: new
Priority: normal | Milestone: Varnish 2.1 release
Component: varnishd | Version: trunk
Severity: normal | Keywords: restart vcl_error
----------------------+-----------------------------------------------------
It would be very interesting to use restart in vcl_error to switch to a
new backend when a server is down.
We can't use restart in vcl_fetch when the server is down because
vcl_fetch is never called.
sub vcl_error {
if (obj.status = 503) {
restart;
}
}
--
Ticket URL: <http://varnish.projects.linpro.no/ticket/374>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator
----------------------+-----------------------------------------------------
Reporter: tcouery | Owner: phk
Type: defect | Status: new
Priority: normal | Milestone: Varnish 2.1 release
Component: varnishd | Version: trunk
Severity: normal | Keywords: restart vcl_error
----------------------+-----------------------------------------------------
It would be very interesting to use restart in vcl_error to switch to a
new backend when a server is down.
We can't use restart in vcl_fetch when the server is down because
vcl_fetch is never called.
sub vcl_error {
if (obj.status = 503) {
restart;
}
}
--
Ticket URL: <http://varnish.projects.linpro.no/ticket/374>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator