Created
February 13, 2020 08:17
-
-
Save aondio/aad17c6f63f52af5bb214206cd70cd61 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import std; | |
sub vcl_recv { | |
if (!std.healthy(req.backend_hint)) { | |
set req.grace = 4h; | |
} | |
sub vcl_backend_response { | |
# Do not have grace for healthy backends | |
set beresp.grace = 0s; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment