I'm investigating active/passive HAProxy setups and came across the
following from the official HAProxy blog. At http://blog.haproxy
.com/2014/01/17/emulating-activepassing-application-clustering-with-haproxy/

  backend bk_app
   stick-table type ip size 1 nopurge peers LB

The size of 1 seems odd - given that's saying create a stickiness table
with a maximum size of a single entry, according to
https://cbonte.github.io/haproxy-dconv/configuration-1.5.html#stick-table

 <size>     is the maximum number of entries that can fit in the table. This
            value directly impacts memory usage. Count approximately
            50 bytes per entry, plus the size of a string if any. The size
            supports suffixes "k", "m", "g" for 2^10, 2^20 and 2^30 factors.

- Is this a typo, and '1' should be '1k' or '1m' or some other larger number
- Is this intentional, and there is a reason to have a table with only one
entry? If so could you someone please explain why?

Thanks muchly - and thanks for making HAProxy!

Mike

Reply via email to