Welcome! Log In Create A New Profile

Advanced

Load balancer question

November 11, 2014 11:44AM
Hi everyone,
I am starting to work with nginx to use it as a load balancer for a web service. Basically, what I am try to configure is something like:

$ cat nginx.conf

http {

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

server {
listen 81;
server_name;
location / {
proxy_pass http://load_balancer;
}
}
}


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?
Thanks in advance,

Cheers

This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it.
As its integrity cannot be secured on the Internet, the Atos group liability cannot be triggered for the message content. Although the sender endeavors to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.

Este mensaje y los ficheros adjuntos pueden contener información confidencial destinada solamente a la(s) persona(s) mencionadas anteriormente y pueden estar protegidos por secreto profesional.
Si usted recibe este correo electrónico por error, gracias por informar inmediatamente al remitente y destruir el mensaje.
Al no estar asegurada la integridad de este mensaje sobre la red, Atos no se hace responsable por su contenido. Su contenido no constituye ningún compromiso para el grupo Atos, salvo ratificación escrita por ambas partes.
Aunque se esfuerza al máximo por mantener su red libre de virus, el emisor no puede garantizar nada al respecto y no será responsable de cualesquiera daños que puedan resultar de una transmisión de virus.
_______________________________________________
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: 80
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