Welcome! Log In Create A New Profile

Advanced

nginx: [emerg] host not found in upstream

Praveen Kumar K S
December 14, 2020 02:16AM
Hello,

I'm facing issue where if one of the upstream servers is down, nginx going
to emerg mode with the subjected error.
My requirement is, nginx should go down when all of the upstream servers
are down.
But when even one of the upstream servers is up, nginx should still serve
the requests by proxying requests to that one live upstream server. Any
help would be appreciated.

Below is my conf































*events { worker_connections 4096;}http { error_log
/etc/nginx/error_log.log warn; client_max_body_size 20m; log_format
upstreamlog '$server_name to: $upstream_addr {$request} '
'upstream_response_time $upstream_response_time' ' request_time
$request_time'; proxy_cache_path /etc/nginx/cache keys_zone=one:500m
max_size=1000m; access_log /var/log/nginx/nginx-access.log
upstreamlog;upstream app.localhost { # simple round-robin
server app-1:9763 fail_timeout=60s; server app-2:9763
fail_timeout=60s; server app-3:9763 fail_timeout=60s; }server
{ listen 80; server_name app.localhost; location / {
proxy_pass xxxx }}}*

--


*Regards,*


*K S Praveen Kumar*
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx: [emerg] host not found in upstream

Praveen Kumar K S December 14, 2020 02:16AM

Re: nginx: [emerg] host not found in upstream

Francis Daly December 14, 2020 05:54AM

Re: nginx: [emerg] host not found in upstream

Praveen Kumar K S December 14, 2020 08:30AM

Re: nginx: [emerg] host not found in upstream

Francis Daly December 14, 2020 04:58PM

Re: nginx: [emerg] host not found in upstream

Praveen Kumar K S December 16, 2020 08:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 52
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready