[openstack-dev] [Heat] Autoscale and load balancers

Thomas Hervé therve at gmail.com
Wed Oct 2 15:06:48 UTC 2013


Hi all,

There is a small but important part of the autoscale design described in
https://wiki.openstack.org/wiki/Heat/AutoScaling that we'd like to discuss
to make sure everybody is on the same page. Namely, the relationship
between an autoscaling group and a load balancer.

In the current system, a group has references to load balancers, and
signals them when the group changes, sending it the list of servers in the
group. This creates an implicit interface between groups and load balancers
that we didn't model well, and is awkward for third-party load balancers.

In the new design, the suggestion is to have an intermediate resource which
models the relationship between the load balancer and its members. This
resource would be instantiated every time an instance is added (or removed)
and would notify the load balancer. There are some more details here:
https://wiki.openstack.org/wiki/Heat/AutoScaling#Load_Balancers.

Pros:
 * Remove load balancer specific code from the autoscale implementation.
 * Map nicely to the neutron lbaas code, which has a 'add-member' API.
 * Provide a more generic model for notifying systems of servers allocation.

Cons:
 * Make the template a bit more verbose.

We have some ideas on how to alleviate the verbosity concern, for example
by creating a LoadBalancerServer resource which would embed a Server and a
LoadBalancerMember resource. But the template being Heat's main UI, it's
important to get a good story here.

Thoughts?

-- 
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20131002/31cd950a/attachment.html>


More information about the OpenStack-dev mailing list