Hi folks,

I've been trying to add support for the [Brightbox load balancer
API][1] to libcloud, and there's a bit of a mismatch between the two
models.

  [1]: https://api.gb1.brightbox.com/1.0/#load_balancer

>From what I can tell from reading through the code, the libcloud model
is that a load balancer has a public IP, a single port number, and it
balances traffic between multiple "members" (i.e. servers), each of
which has a public IP and a single port number. Is that correct?

There are several key differences between this and the Brightbox
model: a Brightbox load balancer can have multiple ports open;
Brightbox servers don't necessarily have a public IP (they can be
attached to a load balancer without one); and the ports for Brightbox
servers behind a load balancer have to be the same (the port mapping
is specified on the load balancer).

I'm unsure how to tackle this. Is it possible to generalise the
libcloud load balancer abstraction to support the Brightbox API
somehow?

Cheers,
Tim

Reply via email to