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

Haproxy settings priority

$
0
0

@AleksASB wrote:

Hello!

I have such backend section in my config:

backend app-servers
        mode tcp
        balance roundrobin
        stick-table type ip size 900k expire 30m
        stick on src
        option tcp-check
        maxconn 1300
        server app-01 172.1.2.3:443 check port 443
        server app-02 172.1.2.4:443 check port 443
        server app-03 172.1.2.5:443 check port 443
        server app-04 172.1.2.6:443 check port 443

Please help me understand such “what if” scenario:
Client’s IP address is in stick table and he wants to establish another session from the same IP address but his “working” server (e.g. app-01) is full (number of connections = 1300) - this session will:

  1. Drop
  2. Hang
  3. Haproxy put it to another server (e.g. app-02 or app-03) which number of current connections is lower?

And the second question:

is this config:

backend app-servers
            mode tcp
            balance roundrobin
            stick-table type ip size 900k expire 30m
            stick on src
            option tcp-check
            maxconn 1300
            server app-01 172.1.2.3:443 check port 443
            server app-02 172.1.2.4:443 check port 443
            server app-03 172.1.2.5:443 check port 443
            server app-04 172.1.2.6:443 check port 443

equal to this?:

backend app-servers
            mode tcp
            balance roundrobin
            stick-table type ip size 900k expire 30m
            stick on src
            option tcp-check
            server app-01 172.1.2.3:443 check port 443 maxconn 1300
            server app-02 172.1.2.4:443 check port 443 maxconn 1300
            server app-03 172.1.2.5:443 check port 443 maxconn 1300
            server app-04 172.1.2.6:443 check port 443 maxconn 1300

Haproxy version is 1.5.18

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4730

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>