Created
September 21, 2015 12:38
-
-
Save lkarsten/77137452d176c236cd96 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
vcl 4.0; | |
import std; | |
import directors; | |
backend a1 { .host = "192.0.2.11"; } | |
backend b1 { .host = "192.0.2.11"; } | |
sub vcl_init { | |
new hdir = directors.hash(); | |
hdir.add_backend(a1); hdir.add_backend(a2); | |
hdir.add_backend(a3); hdir.add_backend(a4); | |
} | |
sub vcl_recv { | |
set req.backend_hint = rrA.backend(client.ip); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment