<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 12/11/2013 11:43 PM, Jay Lau wrote:<br>
</div>
<blockquote
cite="mid:CAFyztAEFe1ONfZBxLUK9a5fe5YA+7aoHssvM3Jg4e9sQhbPUww@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>Greetings,<br>
<br>
</div>
Here come a question related to heat auto scale down.<br>
<br>
</div>
The scenario is as following:<br>
</div>
I was trying to deploy hadoop cluster with heat Auto Scaling
template. <br>
<br>
When scale up a slave node, I can use user-data to do some
post work for configuration file on hadoop master node base
on the information of slave node (The mainly configuration
file is conf/slaves as I need to put slave node to this
file);<br>
<br>
But when scale down, seems I have no chance to do some
configuration for the master node (Remove the scale down
node from conf/slaves) as master node do not know which
slave node was scale down.<br>
<br>
</div>
</div>
</div>
</blockquote>
Yes. There isn't a way to add a hook to do any sort of "post work"
after an instance is brought down. That is why AutoScalingGroup and
LoadBalancer resource usually come in pair, even though
LoadBalancerNames isn't a mandatory property. Internally
AutoScalingGroup triggers a load balancer reload each time it's
resized, but that doesn't happen to any other resources (like a
customized instance in your case). This might be something we can
improve in the future.
<blockquote
cite="mid:CAFyztAEFe1ONfZBxLUK9a5fe5YA+7aoHssvM3Jg4e9sQhbPUww@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>Does anyone has some experience on this?<br>
</div>
<div><br>
</div>
Thanks,<br>
<br>
</div>
Jay<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
OpenStack-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>