Hey Matt,
Follow ups below.....
On Oct 8, 3:25 pm, Matt <
mloh...@gmail.com> wrote:
> A question also with maestro:
> - does it support the ability to scale the infrastructure when suppose
> you want to add an extra node to a working and operating
> configuration?
> What maestro steps would you take to activate that node and get elb to
> start handling traffic to that node?
I just took a quick peek at the code, and it doesn't look like it
currently supports adding a new node to a running ELB. It definitely
should. If you could file an Issue on the GitHub page I'll get that
supported. (Or, if you would like to do this yourself, pull requests
are always welcome!). Also note that along the same vein, Maestro
currently doesn't support auto-scaling. There's an existing Issue on
GitHub about this, I just haven't gotten around to it yet.
> I've got a suggestion for ELB (Load Balancer).
> As well as (or instead of?) specifying the nodes names manually that
> the ELB fronts, it would great if maestro could take a role (or role
> list) so it could gather the nodes automatically from their role (from
> the one defined in the ec2_node part).
> This screencast by Adam Jacob (opscode) [
http://blip.tv/file/2689674]
> demonstrates the idea.
> This way it facilitates maintenance of ec2_nodes, and help when
> scaling up/down the number of nodes.
>
> E.g.
> elb_node "lb-1" do
> availability_zones ["us-east-1b"]
> listeners [{:load_balancer_port => 80, :instance_port =>
> 80, :protocol => "http"}]
> ec2_roles ["web"]
> health_check(:target => "TCP:80", :timeout => 15, :interval =>
> 60, :unhealthy_threshold => 5, :healthy_threshold => 3)
> end
>
> What do you think?
I think that's fine. The reason I started with specifying node names
instead of roles is that it's more fine grained control over the nodes
you want fronted by the load balancer. For example, you may have a
generic "web" role that configures your standard web stack, but you
might have different application types using that role (i.e. an
internal admin app on one node, and the public facing app on N other
nodes), and you wouldn't want all of these fronted by the load
balancer. Having said that, supporting role names as well is certainly
more flexible, it just puts the onus on you to "do the right thing".
If you can file an Issue on the GitHub page for this feature request,
I'll add it. Shouldn't be a big deal.
Thanks.
BP