Skip to content

Conversation

ilanh
Copy link

@ilanh ilanh commented Apr 13, 2018

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)

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)
sych74 added a commit that referenced this pull request May 15, 2019
CORS instruction updated
sych74 added a commit that referenced this pull request Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant