"fe_conn gt 20" with stick-table


#1

Wanted to ask if stick-table still applys if a user ends up on a “backup backend” if limited is reached for a acl at a specific time.

Lets say a user gets connected to prod_backup backend because of the acl has reached greater then 20 connections, as you can see there is a stick-table that last 30min, if the users comes back after 15min and the acl is now below 10 connection will the user still be connecting the stick-table server in prod_backup backend that it got connected to before or does the acl not apply anymore even if there is a stick-table on baclup backend.

example of config:

frontend frontend_service 127.0.0.1:80
    balance roundrobin
    acl max_conn_reached fe_conn gt 20
    default_backend pro
    use_backend prod_backup if max_conn_reached

backend prod
    balance roundrobin
    server production01 127.0.0.1:8001 check maxconn 10
    server production02 127.0.0.1:8002 check maxconn 10
    stick-table type ip size 500k expire 30m
    stick on src

backend prod_backup
    balance roundrobin
    server production01 127.0.0.1:8001 check maxconn 10
    server production02 127.0.0.1:8002 check maxconn 10
    stick-table type ip size 500k expire 30m
    stick on src