Hi all. My name is Kazuhiro.
Here's what I think about balance=static: * The reason why a client communicates with the same server is because the value calculated from the client IP and the number of running servers is the same. * When HAProxy detectes the one of the servers stalled by health check, it changes the number of healthy servers. So mappings of clients and servers also change. * If there are two servers, the clients that were communicating with the failed server will communicate with the helthy server. Now consider what happens when HAProxy detected the recoverly of failure server. * if hash-type=map-based, the mappings of clients and servers will be restored to the state before the server failure. Is my thinking correct? Sincerely. -- Takenaka Kazuhiro [email protected]

