<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,102,0)"><div class="gmail_default">Very kind of you to have provided such detailed explanation, JD. </div><div class="gmail_default"><br></div><div class="gmail_default">We are trying this out and needed some recommendation on the best way forward for the below requirement:</div><div class="gmail_default"><br></div><div class="gmail_default">In terms of the architecture for OpenStack setup, if we have a controller node, Compute Node A and Compute Node B. </div><div class="gmail_default">In the same availability zone. </div><div class="gmail_default"><br></div><div class="gmail_default">I do understand that this <span class="">autoscaling</span> is more for the instances. But how can we load balance or start spawning our instances on Compute Node B, if the Compute Node A's utilisation has reached a threshold....</div><div class="gmail_default"><br></div><div class="gmail_default">Thank you. </div><div class="gmail_extra" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13.3333339691162px"><br></div><div class="gmail_extra" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13.3333339691162px"><span style="color:rgb(0,102,0)"><br><font face="arial, helvetica, sans-serif">Best regards,<br></font></span><div><span style="color:rgb(0,102,0)"><font face="arial, helvetica, sans-serif">Venu</font></span></div><div><span style="color:rgb(0,102,0)"><font face="arial, helvetica, sans-serif"><br></font></span></div></div></div><div class="gmail_extra"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,102,0)"><b>Thought</b>Works</div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 4, 2014 at 2:02 AM, Joe D'Andrea <span dir="ltr"><<a href="mailto:jdandrea@research.att.com" target="_blank">jdandrea@research.att.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Mridhul. Welcome to Heat! :)<br>
<span class=""><br>
On Nov 3, 2014, at 2:17 AM, Mridhul Pax <<a href="mailto:mridhul@live.com">mridhul@live.com</a>> wrote:<br>
<br>
> I'm trying to run the autoscaling heat template under :<a href="https://github.com/openstack/heat-templates/blob/master/hot/autoscaling.yaml" target="_blank">https://github.com/openstack/heat-templates/blob/master/hot/autoscaling.yaml</a><br>
><br>
> Can someone quickly help me how to run this and what all the parameters to pass ? Im a newbie and getting confused with the parameters to be passed.<br>
<br>
</span>Sure. First, those parameters. I can understand the confusion. It's not always apparent (especially if you're new) what those really are, even with the descriptions.<br>
<br>
You'll want to have your environment set up so that you can run OpenStack clients without authenticating each time. (Exercise for the reader!)<br>
<br>
Here are the parameters you'll need to fill-in-the-blanks for:<br>
<br>
image: The 'glance' image that will be used to create the servers. Run 'glance image-list' to see which images you have. Normally you'd just make note of the image "Name" you want to use, but you need to be careful here. This template uses yum for installations (see line 46), so you'll need to pick an image that has yum on it. (RHEL, Fedora, and CentOS, or any RPM-based Linux distribution are likely candidates.)<br>
<br>
key: The name of the ssh key you wish to use (presuming you've already got one). Run 'nova keypair-list' to see what you've got. If the list is empty, you'll need to use 'nova keypair-add' to make one first (and grab the private key that it generates).<br>
<br>
flavor: This refers to the WordPress server size, more or less. 'nova flavor-list' shows these. Pick a flavor. Any flavor. :)<br>
<br>
database_flavor: Same as flavor, but for the MySQL (MariaDB) server.<br>
<br>
subnet_id: Use 'neutron subnet-list' to see what you have available. For this template, you'll want to use the ID (UUID) of the subnet. If there aren't any, you'll need to create one.<br>
<br>
external_network_id: Use 'neutron net-external-list' to see and pick a UUID representing one of these. (Yes, you will need to create one if nothing's listed.)<br>
<br>
Once you have all that, you can issue a heat command like so:<br>
<br>
$ heat stack-create wp_autoscale -f autoscaling.yaml -p "image=IMAGE_NAME;key=KEY_NAME;..."<br>
<br>
Where:<br>
<br>
wp_autoscale is the name of your stack. (You could even call it Mridhul.)<br>
<br>
-f specifies the YAML (HOT) file.<br>
<br>
-p specifies all of those parameter names/values.<br>
<br>
In summary, there's some extra legwork needed to gather all of the parameter input, and that isn't always apparent to newcomers. I hope this helps! If you have more specific questions, please ask.<br>
<br>
jd<br>
_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
</blockquote></div><br></div></div>