Welcome! Log In Create A New Profile

Advanced

Re: Upstream performances: what if one node only ?

Maxim Dounin
June 27, 2014 12:36PM
Hello!

On Fri, Jun 27, 2014 at 03:53:24PM +0200, Nicolas Flinois wrote:

> Hi all,
>
> I am wondering about the possible extra-cost of using a single-node
> upstream into proxy_pass compared with 'proxy_pass host' directly.
> I need to automate application servers move, and find convenient to update
> upstream definitions only (defined into dedicated files).
>
> Solution1:
>
> upstream upOne {
> server somehost;
> }
> [..]
> proxy_pass upOne;
>
>
> Solution2:
>
> proxy_pass somehost;
>
> Is solution1 more time-consuming than solution2 at run-time ?

There is no difference. Internally, proxy_pass with a hostname
creates an implicit upstream{} with a single server, and uses it.

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Upstream performances: what if one node only ?

Nicolas Flinois June 27, 2014 09:54AM

Re: Upstream performances: what if one node only ?

Maxim Dounin June 27, 2014 12:36PM

Re: Upstream performances: what if one node only ?

Nicolas Flinois June 27, 2014 12:40PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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