You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, HAProxy as a dedicated balancer (the balancer node does not has any other roles except the balancer) has the following bindings for frontends:
Current configuration does not cover any possible cases. For instance, the balancer may have more than one physical network interface and additional interface should not be listened by HAproxy.
The text was updated successfully, but these errors were encountered:
I think we are just lacking feature which would allow us to flexibly specify which interfaces haproxy should bind.
It is assumed that haproxy should listen to at least assigned vrrp ips, but in practice it listens all interfaces on dedicated lb.
I suggest that we do not break backward compatibility. If we want to make binding more flexible, we could introduce additional optional parameters, like:
# For each vrrp_ips
bindLoadBalancer: true # Default: true. If true, vrrp_ip belonging to LB node will be added to bindings. Maintenance mode is controlled additionally.
# For load balancer
bindAll: true # Default: true for dedicated LB, false in other case. If true - bind to all interfaces, except maintenance mode.
bindCustom: # Default: nil. Additional user-defined IPs to bind to.
- node: lb-1
bindings:
- ip: 1.1.1.1
- ip: 2.2.2.2
- node: lb-2
bindings:
- ip: 3.3.3.3
- ip: 4.4.4.4
So basically algorithm is following, for each LB node:
If bindAll==true - just bind 0.0.0.0, except maintenance mode
If bindAll==false
For assigned vrrp ips check bindLoadBalancer param. Add to bindings if true (considering maintenance mode params).
If bindCustom!=nil - add custom to bindings.
If bindings are empty - fail. Otherwise use bindings.
Currently, HAProxy as a dedicated balancer (the balancer node does not has any other roles except the
balancer
) has the following bindings for frontends:Current configuration does not cover any possible cases. For instance, the balancer may have more than one physical network interface and additional interface should not be listened by HAproxy.
The text was updated successfully, but these errors were encountered: