Welcome! Log In Create A New Profile

Advanced

upstream and hash

March 09, 2017 04:01AM
Доброго дня!
Эксперементирую с опцией hash для секции upstream.
В ней можно указывать переменные и произвольный текст.
С переменными понятно - посчитается хэш от например $host и запрос пойдет к апстриму.
Как в этом случае сработает например такая конструкция:

upstream groups {
hash blablabla consistent;
server test01:80;
server test02:80;
}

Как будут распределяться запросы от пользователей?
Subject Author Posted

upstream and hash

ingtar March 09, 2017 04:01AM

Re: upstream and hash

Roman Arutyunyan March 09, 2017 04:08AM

Re: upstream and hash

ingtar March 09, 2017 04:45AM

Re: upstream and hash

Roman Arutyunyan March 09, 2017 05:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 253
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready