Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4720

A source IP is balanced to a specific backend server

$
0
0

Hi, I want to make that a specific IP is not randomly balanced among my group of backend servers, but by a specific one, for example s-px1. How can I achieve this in my configuration?

### VIP de keepalived donde se reciben las conexiones de los clientes
frontend squid_in
    bind 10.10.8.92:3128
    default_backend squid_pool
    maxconn 4000    

### pool de servidores SQUID
backend squid_pool
    balance source
    mode tcp
    option tcp-check
    tcp-check connect port 3128
    server s-px1 10.10.8.84:3128 check inter 2000 rise 2 fall 3 send-proxy
    server s-px2 10.10.8.85:3128 check inter 2000 rise 2 fall 3 send-proxy
    server s-px3 10.10.8.93:3128 check inter 2000 rise 2 fall 3 send-proxy
    server s-px4 10.10.8.94:3128 check inter 2000 rise 2 fall 3 send-proxy
    server s-px5 10.10.8.51:3128 check inter 2000 rise 2 fall 3 send-proxy

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4720

Trending Articles