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

add_backend() sometimes requires an additional argument #28

Open
umlaeute opened this issue Oct 28, 2015 · 0 comments
Open

add_backend() sometimes requires an additional argument #28

umlaeute opened this issue Oct 28, 2015 · 0 comments
Labels

Comments

@umlaeute
Copy link

varnish's random() and hash() directors, require an additional argument in the add_backend() function (a weight, how often the added backend will be chosen).

however, the buildout generates something like:

sub vcl_init {
    # configure directors for load balancing
    new balancer_0 = directors.random();
    balancer_0.add_backend(backend_000);
}

which will be invalid if the chosen balancer is hash() or random() (as in the example), in which case we would need:

sub vcl_init {
    # configure directors for load balancing
    new balancer_0 = directors.random();
    balancer_0.add_backend(backend_000, 1.0);
}
@thet thet added the bug label Oct 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants