Welcome! Log In Create A New Profile

Advanced

Re: load balancer the best way to solve

Rick Gutierrez
January 17, 2023 07:50PM
El vie, 13 ene 2023 a las 17:51, Maxim Dounin (<mdounin@mdounin.ru>) escribió:
>
>
>
> Certainly nginx can do that. By default, all user requests are
> used by nginx to detect any upstream server failures, and re-route
> requests to other available servers.
>
> Active health checks, which are indeed only available in the
> commercial version, are only different that they also use requests
> generated periodically by nginx-plus itself. This might improve
> service to some real clients in some specific cases, but not
> generally required.

ok

>
> > logs:
> >
> > 2023/01/12 18:07:38 [error] 26895#26895: *834 no live upstreams while
> > connecting to upstream, client: 44.210.106.130, server: demo.app.com,
> > request: "GET /aaaaaaaaaaaaaaaaaaaaaaaaaqr HTTP/1.1", upstream:
> > "http://paginaweb/aaaaaaaaaaaaaaaaaaaaaaaaaqr", host: "demo.app.com",
> > referrer: "http://173.255.X.X:80/aaaaaaaaaaaaaaaaaaaaaaaaaqr"
> > 2023/01/12 18:07:38 [error] 26895#26895: *832 no live upstreams while
> > connecting to upstream, client: 44.210.106.130, server: demo.app.com,
> > request: "GET /99vt HTTP/1.1", upstream: "http://paginaweb/99vt",
> > host: "demo.app.com", referrer: "http://173.255.X.X:80/99vt"
>
> The errors indicate that all your upstream servers were not
> responding properly, and were either all tried for the particular
> request, or were disabled based on "fail_timeout=30s max_fails=3"
> in your configuration.
>
> Usually looking into other errors in the logs makes it immediately
> obvious what actually happened. Alternatively, you may want to
> further dig into what happened with the requests by logging the
> $upstream_addr and $upstream_status variables (see
> https://nginx.org/r/$upstream_addr and
> https://nginx.org/r/$upstream_status for details).
>
Thanks. The problem here is that crowdsec was blocking my connection.
I also found an interesting module that does almost the same thing as
the commercial version.

https://github.com/yaoweibin/nginx_upstream_check_module , I'm already
evaluating it

--
rickygm

http://gnuforever.homelinux.com
_______________________________________________
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

load balancer the best way to solve

Rick Gutierrez January 12, 2023 10:32PM

Re: load balancer the best way to solve

Maxim Dounin January 13, 2023 06:52PM

Re: load balancer the best way to solve

Rick Gutierrez January 17, 2023 07:50PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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