HA with nginx and cloud environment

Posted by gotts on Stack Overflow See other posts from Stack Overflow or by gotts
Published on 2010-06-09T04:55:56Z Indexed on 2010/06/09 5:02 UTC
Read the original article Hit count: 239

I have a node in cloud environment which is used now as nginx and mongrels behind it.

This is what nginx config looks like:

upstream mongrel {
    server 127.0.0.1:8000;
    server 127.0.0.1:8001;
    server 127.0.0.1:8002;
}

I want to achieve the following:

  1. add another node
  2. nginx has to know about this new node automatically without stopping him, changing config(manually adding new node's mongrels) and starting it again.

How can I make my load balancer(nginx) work in the way so it can be self-aware of nodes in cloud?

© Stack Overflow or respective owner

Related posts about nginx

Related posts about Cloud