Как добавить, что постоянное соединение поддерживает к сбалансированному с загрузки веб-сервису HTTP

Это <VirtualHost *:80> должен быть <VirtualHost mysite.example.com:80>

0
задан 26 October 2011 в 06:41
2 ответа

Использование источника баланса в блоке defaults вместе с удалением записей параметра httpclose помогло.

0
ответ дан 23 November 2019 в 11:05

You're looking for HAProxy's cookie directive, which will ensure that clients stick to the same backend.

As far as avoiding overloading a given backend, you'll be completely dependent on the initial load balancing - moving clients to a different server mid-session doesn't fit with session persistence being enforced from the load balancer. If the load issue is a big one, then maybe reconsider having HAProxy do session persistence, keeping a centralized session state among the backends instead?

1
ответ дан 23 November 2019 в 11:05

Теги

Похожие вопросы