Load Balancing (HAProxy or other) - Sticky Sessions

后端 未结 2 524
鱼传尺愫
鱼传尺愫 2020-12-05 05:43

I\'m working on scaling out my app to multiple servers, and one requirement is that a client is always communicating with the same server (too much live data is used to allo

2条回答
  •  执笔经年
    2020-12-05 06:02

    You can adjust the balancing algorithm in HA-Proxy there are some available though. Like e.g. roundrobin or leastconn.

    But you need to adjust in general your balancing according to the domain of users for whom content is served. Most of the times you need to do empirical tests and reiterate your decision according to your findings.

提交回复
热议问题