Hybrid Cloud for Dummies: Free eBook!!

Hybrid Cloud for Dummies - FREE EBOOK

IT organizations need the right tools and technologies to make hybrid cloud strategies a flexible and efficient reality for their organizations.

Learn how to address inhibitors to cloud adoption, recognize data challenges in the cloud and seamlessly move data in the cloud with this FREE EBOOK!!.


Sunday, 25 August 2013

Eucalyptus 3.3 Tutorials- Creating Alarms

Eucalyptus 3.3 Tutorials
Creating Alarms

In this set of tutorials, we are going have a look at the steps required to configure Autoscaling Alarms also known as CloudWatch Alarms

CloudWatch alarms allow users to effectively monitor the health of running Eucalyptus Instances, Eucalyptus Load Balancers, EBS volumes as well as applications that are hosted on the Cloud. It also allows users to configure Alarms that can be used to trigger an Autoscaling Policy.

In this tutorial, we are going to create two alarms for few Autoscaling Policies. One alarm will trigger off a policy that will add an instance to the Autoscaling Group if a certain CPU threshold value is crossed for a specific period of time, whilst the other will remove an instance should the CPU threshold fall back below a set point.

You can create multiple such Alarms that can be used to trigger different scale in and out Policies. This is the flexibility that Eucalyptus provides in is Autoscaling feature.

euwatch-put-metric-alarm <ALARM_NAME>
             --metric-name {*METRIC_VALUE}

             --namespace {**NAMESPACE_VALUE}
             --statistic {***STATISTIC_VALUE}
             --period <VALUE>
             --threshold <VALUE>
             --comparison-operator {****COMP_OPERATOR}    

             --dimensions {*****DIMENSIONS_VALUE}     
             --evaluation-periods <VALUE>
             --alarm-actions <POLICY_ARN>

*METRIC_VALUE: CPUUtilization, DiskReadOps, DiskWriteOps, DiskReadBytes, DiskWriteBytes, NetworkIn, NetworkOut

: AWS/EBS, AWS/EC2, AWS/Autoscaling, AWS/ELB

***STATISTIC_VALUE:  Average, Maximum, Minimum, SampleCount, Sum

****COMP_OPERATOR: GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanThreshold, LessThanOrEqualToThreshold

*****DIMENSION_VALUES: AutoScalingGroupName, ImageId, InstanceId, InstanceType

For a complete list of Metrics and Dimension values for EBS and ELB visit the Eucalyptus 3.3 User Guide

The following code will create a CloudWatch Alarm that will enable the "Scale Out Policy" if the "Average" "CPU Utilization" metric of the Autoscaling Group "MyAutoScalingGroup" crosses a threshold value of "80" for a period of "120" seconds.


euwatch-put-metric-alarm AddCapacity \
         --metric-name CPUUtilization \
         --namespace "AWS/EC2" \
         --statistic Average \
         --period 120 \
         --threshold 80 \
         --comparison-operator GreaterThanOrEqualToThreshold \
         --dimensions "AutoScalingGroupName=MyAutoScalingGroup" \
         --evaluation-periods 2 \
         --alarm-actions [arn:aws:autoscaling: . . . .MyScaleOutPolicy ]

The following code will create a CloudWatch Alarm that will enable the "Scale In Policy" if the "Average" "CPU Utilization" metric of the Autoscaling Group "MyAutoScalingGroup" drops below the threshold value of "30" for a period of "120" seconds.


euwatch-put-metric-alarm RemoveCapacity \         
           --metric-name CPUUtilization \ 
         --namespace "AWS/EC2" \           
           --statistic Average \        
         --period 120 \         
         --threshold 30 \        
         --comparison-operator LessThanOrEqualToThreshold \       
         --dimensions "AutoScalingGroupName=MyAutoScalingGroup" \     
         --evaluation-periods 2 \         
[arn:aws:autoscaling: . . . .MyScaleInPolicy ]

Few additional commands related to CloudWatch Alarms:

For describing CloudWatch Alarms

For listing all available Metrics
For deleting CloudWatch Alarms 
euwatch-delete-alarms <ALARM_NAME>


Anita Romanenko said...

Simple but very accurate info… Thanks for sharing this one. A must read article! essay writers

Eileen Burton said...

The app essentially uses the Alarm system service provided by Android to set alarms and Notification system service for notifications. get your assignment done by us

Games A10 said...

You’ve written nice post, I am gonna bookmark this page, thanks for info. I actually appreciate your own position and I will be sure to come back here.
mortal kombat x, a10, roblox, color switch

slitheriocontrols said...

Very good. you are the winner. Do not forget update new information regularly. thank !
- slither.io
- wings.io
- vanar.io
- Emoji Facebook
- diep.io

Apple Green said...

Online gaming is a hobby of many people. Game Run Unblockedversions as Run 3 Unblocked or Run 4 Unblocked is a very interesting game to control the bear run or jump to the safe landing area falls. risks with such racing game Car Racing Games or interesting as the game Donkey Kong Unblocked or Car Racing Games wrap pulled a lot of players. Good luck!

Post a Comment