Welcome! Log In Create A New Profile

Advanced

proxy_pass to variable and upstream server temporarily disabled variable

May 24, 2019 09:19AM
Доброго дня!

nginx: 1.15.8

Конфигурация простая (конечно она сильно шире, но в качестве бэкенда сейчас действительно один сервер задается через переменную):

split_clients "${remote_addr}${cookie_uid}" $backend {
* "backend1.eu-central-1.elb.amazonaws.com";
}


server {
listen 80;

location / {
proxy_pass http://$backend;
}
}

Столкнулся с интересной проблемой. В один момент у меня перестали идти запросы на бэкенд, но быстро запросы восстановились. Поискал в логах, в итоге нашел такие ошибки:

2019/05/24 08:40:26 [warn] 308#308: *1978088914 upstream server temporarily disabled while reading response header from upstream, client: x.x.x.x, server: xxxx, request: "GET / HTTP/1.1", upstream: "http://x.x.x.x:80/", host: "xxxx"

Честно говоря я предполагал такое поведение при исользовании группы серверов, но тут такого нет, а апстрим все-равно был забанен из-за ошибок.
В документации ничего интересного на эту тему не нашел.

Есть какая то неявная логика в такой обработке?

Благодарю!
Subject Author Posted

proxy_pass to variable and upstream server temporarily disabled variable

kron May 24, 2019 09:19AM

Re: proxy_pass to variable and upstream server temporarily disabled variable

Sergey Kandaurov May 24, 2019 11:28AM

Re: proxy_pass to variable and upstream server temporarily disabled variable

kron June 04, 2019 10:40AM

Re: proxy_pass to variable and upstream server temporarily disabled variable

Maxim Dounin June 04, 2019 11:36AM

Re: proxy_pass to variable and upstream server temporarily disabled variable

kron June 04, 2019 12:11PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 261
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