Load balancer question
Francis Daly
francis at daoine.org
Wed Nov 12 22:51:14 UTC 2014
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 at daoine.org
More information about the nginx
mailing list