Perlbal on EC2

David Snopek dsnopek at
Tue Aug 7 15:05:13 UTC 2007

EC2 *does* provide access to IP addresses.  Here's how I do it:

 (1) On startup, the machine figures out its IP by grabbing the document at:

 (2) Then it calls a service on the proxy host, passing the IP address
found in the step above, and it appends it to the nodefile used by

If you don't want to do this from the machine itself (although I
highly suggest it because then you can make sure that your webserver
is up and running before it makes the call to add itself to the pool)
then just resolve the hostname via DNS.

On 8/7/07, David Cancel <dcancel at> wrote:
> I'm trying to use Perlbal to load balance a cluster of web servers hosted on
> Amazon's EC2. EC2 does not provide access to IP Addreses, only hostnames.
> Is there a way to pool servers using hostnames instead of IP addresses?
> e.g.
> This:
> POOL my_web ADD
> vs:
>  POOL my_web ADD
> Thanks,
> David

More information about the perlbal mailing list