Skip to content

Commit

Permalink
add changes 🌎
Browse files Browse the repository at this point in the history
  • Loading branch information
azat-co committed Jun 8, 2017
1 parent c2c6acb commit ee26fc8
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions labs/3-form-the-cloud.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ Create a CF (CloudFormation) blueprint with autoscaling group or modify the blue

The provided `NodeAutoScalingMultiAZWithNotifications.json` blueprint creates the following resources:

* NotificationTopic: Email notifications to OperatorEMail
* WebServerGroup: Define autoscaling group
* LaunchConfig: Define launch configuration including User Data to install and start the app
* WebServerScaleUpPolicy: Define how to scale up, e.g., cooldown period and number of instances to increase
* WebServerScaleDownPolicy:: Define how to scale down, e.g., cooldown period and number of instances to decrease
* CPUAlarmLow: Define a CPU alarm as more than 50% within 1 minute
* CPUAlarmHigh: Define a CPU alarm as less than 25% within 1 minute
* ElasticLoadBalancer: Define ELB with listener HTTP:80, cross zone and health check params
* InstanceSecurityGroup: Define security group with SSH:22 and HTTP:80 open
* NotificationTopic: Emails notifications to OperatorEMail
* WebServerGroup: Defines autoscaling group
* LaunchConfig: Defines launch configuration including User Data to install and start the app
* WebServerScaleUpPolicy: Defines how to scale up, e.g., cooldown period and number of instances to increase
* WebServerScaleDownPolicy:: Defines how to scale down, e.g., cooldown period and number of instances to decrease
* CPUAlarmLow: Defines a CPU alarm as more than 50% within 1 minute
* CPUAlarmHigh: Defines a CPU alarm as less than 25% within 1 minute
* ElasticLoadBalancer: Defines ELB with listener HTTP:80, cross zone and health check params
* InstanceSecurityGroup: Defines security group with SSH:22 and HTTP:80 open


```js
Expand Down Expand Up @@ -550,14 +550,14 @@ Copy the public URL from the Outputs. For example:
"OutputValue": "http://autoscale-ElasticL-1PFNQT6IWP4VM-1387151330.us-west-1.elb.amazonaws.com"
}
],
...
...
```

Note: If you need to delete stack, run:

```
aws cloudformation delete-stack --stack-name autoscale-stack
```
```

It's nice to be able to see the create stack in the web console as well. You can find the view shown below by going to Home | CloudFormation and selecting your stack and then the Resources tab at the bottom pane. It will show resources and their statuses:

Expand Down Expand Up @@ -624,7 +624,7 @@ Moreover, the ELB will show the new instance as well in the Instances tab. Notic

![](../images/lab3-alarm-elb.png)

Finally, go ahead and check our email. Once you confirmed the subscription to the notification topic, you will be receiving alarms emails.
Next, go ahead and check our email. Once you confirmed the subscription to the notification topic, you will be receiving alarms emails.

Finally, once you stop the load test feel free to wait for the low CPU alarm to kick in and remove the second EC2 instance so scaling group has just once as it did initially. This way, high will be back to OK and low will be in ALARM:

Expand Down

0 comments on commit ee26fc8

Please sign in to comment.