Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for removing Scaled in nodes #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Apr 13, 2018

  1. Fix for removing Scaled in nodes

    The scale in event was looking only for node IP address, there is also a line without an IP:
    
    backend serv5 { .host = "10.100.130.68"; .port = "80"; .probe = {.url = "/varnish-probe.php"; .timeout = 1s; .interval = 5s; .window = 5; .threshold = 2; } }
    backend serv4 { .host = "10.100.130.56"; .port = "80"; .probe = {.url = "/varnish-probe.php"; .timeout = 1s; .interval = 5s; .window = 5; .threshold = 2; } }
    backend serv3 { .host = "10.100.130.30"; .port = "80"; .probe = {.url = "/varnish-probe.php"; .timeout = 1s; .interval = 5s; .window = 5; .threshold = 2; } }
    backend serv2 { .host = "10.100.131.103"; .port = "80"; .probe = {.url = "/varnish-probe.php"; .timeout = 1s; .interval = 5s; .window = 5; .threshold = 2; } }
    backend serv1 { .host = "10.100.130.36"; .port = "80"; .probe = {.url = "/varnish-probe.php"; .timeout = 1s; .interval = 5s; .window = 5; .threshold = 2; } }
    
    sub vcl_init {
            new myclust = directors.round_robin();
    
    myclust.add_backend(serv6);
    myclust.add_backend(serv5);
    myclust.add_backend(serv5);
    myclust.add_backend(serv4);
    myclust.add_backend(serv3);
    myclust.add_backend(serv2);
    myclust.add_backend(serv1);
    }
    
    Without removing the other line the varnish would not restart (serv6 is not defiend)
    ilanh authored Apr 13, 2018
    Configuration menu
    Copy the full SHA
    b4276cd View commit details
    Browse the repository at this point in the history