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

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