Backends: Well done, with a side of load balancing (part 2)

This blog post is part two of a two-part series. (Find part one here.)

Hello there! Welcome to the second part of this article in which we'll discuss a bit about directors and how to use them as well as an introduction to load balancing. The first part was about backends and probes, so if you don't know about them already, it's probably a good start to read it first. Go ahead, I'll wait.

Ready? Good!

Let's look back at our VCL from the previous post:

backend alpha { .host = ""; }
backend bravo { .host = ""; }

sub vcl_recv {
    if ( == "") {
        set req.backend_hint = alpha;
    } else if ( == "") {
        set req.backend_hint = bravo;
    } else {
        return (synth(404, "Host not found"));
Read More

8/1/16 2:30 PM
by Guillaume Quintard

Varnish Software Blog

The Varnish blog is where our team writes about all things related to Varnish Cache and Varnish Software...or simply vents.



Posts by Topic

see all