Dynamic configuration in a virtualised cloud environment

From: Peter Miller <Peter.Miller#condenast.co.uk>
Date: Wed, 10 Jun 2009 12:12:50 +0100

Hi all,

I've recently set-up an environment on Amazon EC2 with an HAProxy box pointing at multiple web servers (Windows/IIS).

EC2 is great because it means I can have a web-server image, and start as many as I want based on the current load. But it means as I start / stop each server I have to find the server's internal IP and edit HAProxy's config to add/remove its entry in the multiple backends.

Does anyone have any experience with a dynamic configuration for HAProxy? I want the servers to be able to register/deregister themselves as they are added to the pool, and add themselves to various backends (multiple backends per server). I can use Windows' normal scripting languages/PowerShell, and I have a SQL db in the environment too.

The HAProxy is running on Fedora at the moment, but I am also considering Ubuntu.

Is this something that's commonly done? I know RightScale offer similar scripts when you are a paying customer.



The information contained in this e-mail is of a confidential nature and is intended only for the addressee. If you are not the intended addressee, any disclosure, copying or distribution by you is prohibited and may be unlawful. Disclosure to any party other than the addressee, whether inadvertent or otherwise, is not intended to waive privilege or confidentiality. Internet communications are not secure and therefore Conde Nast does not accept legal responsibility for the contents of this message. Any views or opinions expressed are those of the author.

Company Registration details:
The Conde Nast Publications Ltd
Vogue House
Hanover Square
London W1S 1JU

Registered in London No. 226900 Received on 2009/06/10 13:12

This archive was generated by hypermail 2.2.0 : 2009/06/10 13:15 CEST