» Programmatically add nodes to a load balancer like Haproxy?
Programmatically add nodes to a load balancer like Haproxy?
|February 15, 2012
Posted by forumadmin
I’m very sure this problem has been solved, but I can’t find any information anywhere about it…
How do sysadmins programmatically add a new node to an existing and running load balancer ? Let’s say I have a load balancer running and already balancing say my API server between two EC2 instances, and suddenly there’s a traffic spike and I need a third node in the load balancer but I’m asleep… It would be wonderful if I had something monitoring probably RAM usage and some key performance indicators that tell me when I should have another node, and even better if it could add a new node to the load balancer alone…
I’m confident that this is possible and even trivial to do with node-http-proxy and distribute, but I’d like to know if this is possible to do with HAproxy and/or Nginx… I know Amazon’s elastic load balancing is probably my best bet but I want to do it on my own (I want to spawn instances from rackspace, EC2, Joyent and probably others as it’s convenient).
Once again, spawning a node is easy, I’d like to know how to add it to haproxy.cfg or something similar with Nginx without having to reload the whole proxy, and doing that programatically. Bash scripting is my best bet for this but it still does have to reload the whole proxy which is bad because it loses connections…
More Related Questions
- Load balancing PHP web application with three servers I have 2 web servers and 1 server that is intended to be used as reverse proxy or load balancer. 2 web servers have real/public IPs as well as the load balancer. Load balancer server is […]
- Load balance WebSocket connections to Tornado app using HAProxy? I am working on a Tornado app that uses websocket handlers. I'm running multiple instances of the app using Supervisord, but I have trouble load balancing websocket connections.
I know […]
- nginx 1.2.0 – socket.io – HTTP/1.1 – Proxy websocket connections i would like to replace my node-http-proxy module with nginx proxy_pass module. Is it possible with new released nginx version, as i have read, that it supports HTTP/1.1 out of the box. I […]
- Load balancing requests to a Weblogic 10gR3 RMI server on Amazon EC2 I am participating in the development of a distributed solution, based on RMI, and deployed on multiple Weblogic 10gR3 (10.3.0.0) nodes. One of the nodes hosts a RMI server, and other […]
- Load Balancing in Amazon EC2? We've been fighting with HAProxy for a few days now in Amazon EC2; the experience has so far been great, but we're stuck on squeezing more performance out of the software load balancer. […]
- Whats the best practice for getting EC2 instances to join HAProxy automatically? We're working on scaling out our EC2 architecture to a point where we'd like to manage our own load balancing. We currently have a series of machines configured on HAProxy to do basic load […]
- Load Balancing (HAProxy or other) – Sticky Sessions I'm working on scaling out my app to multiple servers, and one requirement is that a client is always communicating with the same server (too much live data is used to allow bouncing […]
- HAproxy for redis slaves We are using node_redis client to access the redis at present. I need to use HAProxy in front of redis slaves which in my case is 3 nos. I installed the HAProxy and configured it to load […]
- Haproxy ssl configuration – install root and intermediate certificate After to much googling, i finally made my haproxy ssl to works. But now i got problem because root and intermediate certificate is not installed so my ssl don`t have green bar.
- HAProxy + WebSocket Disconnection I am using HAProxy to send requests, on a subdomain, to a node.js app.
I am unable to get WebSockets to work. So far I have only been able to get the client to establish a WebSocket […]