- 论坛徽章:
- 0
|
文档上有写haproxy具有会话保持功能,怎么保证的呢?
有人做过相关的测试吗?
source The source IP address is hashed and divided by the total
weight of the running servers to designate which server will
receive the request. This ensures that the same client IP
address will always reach the same server as long as no
server goes down or up. If the hash result changes due to the
number of running servers changing, many clients will be
directed to a different server. This algorithm is generally
used in TCP mode where no cookie may be inserted. It may also
be used on the Internet to provide a best-effort stickyness
to clients which refuse session cookies. This algorithm is
static, which means that changing a server's weight on the
fly will have no effect.
看文档应该就是这个负载均衡算法选项可以完成session保持吧 |
|