Welcome! Log In Create A New Profile

Advanced

Re: Load balancer question

Francis Daly
November 12, 2014 05:52PM
On Tue, Nov 11, 2014 at 04:42:56PM +0000, Tinte garcia, Miguel Angel wrote:

Hi there,

> http {
>
> upstream load_balancer {
> server localhost:8080/Instance1;
> server localhost:8080/Instance2;
> server localhost:8080/Instance3;
> }

> I would like nginx to manage the requests among the three instances above, depending on the load. Is it correctly defined? How can I test that my request are properly managed by nginx?

# sbin/nginx -t
nginx: [emerg] invalid host in upstream "localhost:8080/Instance1" in /usr/local/nginx/conf/nginx.conf:14
nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed

"upstream" must not include any part of the url.

You will probably better match nginx's idea of load-balancing if you
can use "/Instance" on each of three different host:port combinations.

f
--
Francis Daly francis@daoine.org

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

Load balancer question

matinte November 11, 2014 11:44AM

Re: Load balancer question

mex November 12, 2014 03:00AM

Re: Load balancer question

Francis Daly November 12, 2014 05:52PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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