Category

Automation, Scalability and Elasticity

How to Configure the Auto Scaling EC2 Cloud Instance Termination Policy

AutoscalingAWS Auto Scaling adds or removes the EC2 instances automatically based on a pre-configured condition. When a new EC2 instance is launched automatically it will be added to the Auto Scaling group. Auto Scaling allows the user to add a policy to decide on the termination of an instance. Before Auto Scaling terminates the EC2 instance, it first checks the availability zones. It will find the availability zone with the highest number of instances and delete the instance from there. If all the availability zones have the same number of instances, Auto Scaling selects any random zone. Once the availability zone is defined, Auto Scaling uses the termination policy to identify the instance to be deleted.

By default, Auto Scaling will delete the oldest instance from the selected availability zone. If more than one instance was launched simultaneously based on the scaling policy, Auto Scaling will take the instance that is closest to next instance hour. The above mentioned policy can result in cost savings. If more than one instance has the same time, Auto Scaling selects any random instance.

The present guide demonstrates how to configure and test the above mentioned termination policy for Auto Scaling. Since AWS does not provide the management console for Auto Scaling, all the tasks would be performed by CLI.

Leveraging AWS for the Lean Development Cycle

aws_for_lean_developmentFor start-ups, a lean development cycle is crucial. In this presentation, Amazon AWS technical evangelist Ryan Shuttleworth explains how start-ups can use Amazon Web Services Cloud to power a lean lifecycle when running, scaling, and iterating. In his presentation you will find how you can leverage AWS advanced features such as AWS Beanstalk and Amazon SQS

  1. You’ve got a great idea and need to validate it with some marketing
  2. You go some interest, defined your MVP and built it
  3. People are using your product, lots of them, from all over the world
  4. 3am - things go wrong
  5. Automate - No one wants to get up at 3am ever again
  6. Operations are efficient so you have time to iterate and innovate

Check out the full presentation to see how AWS can support your start-up’s development!

Presentation: Architecting for High Availability in Amazon AWS Cloud

AWS_AZsAvailability in the cloud refers to the time an application operates during its work cycle. A loss of availability is known as an outage, or downtime. Ideally, your cloud will always be available and never have downtime (i.e. high availability).

How to Configure ELB Health Checks for AWS Cloud Auto Scaling

Amazon ELB iconAWS Auto Scaling allows the user to scale the Amazon EC2 computer resources up or down automatically as per the defined conditions. Auto Scaling ensures that all the running instances are healthy by performing periodic health checks. Auto Scaling is resilient as it will automatically terminate the unhealthy instance and launch a new healthy instance, thereby maintaining the number of running instances as per the configuration and condition.

The present guide demonstrates how to configure a health check for ELB and mark an instance as unhealthy. Since AWS does not provide the management console for Auto Scaling, all the tasks would be performed by CLI.

Do You Auto-Scale Your AWS Cloud?

AutoscalingDo you Auto-Scale your Cloud? Do you automatically shut down, resize or schedule your cloud compute resources?

Auto-scaling is one of the most important features for cloud computing. In order to really benefit from the cloud and ensure your capacity meets demand, you need to be able to scale your cloud’s allocated capacity automatically (up or down)  at any given time.

In comparison to the limited capacity of the traditional data center, the cloud has (at least in principle) infinite resources; auto-scaling being the basic feature of this perception. Auto-scaling configuration should react to a variety of monitored thresholds such as CPU load or even RPS (requests per second).

How to Collect AWS Cloud Auto Scaling Group Metrics

AutoscalingAWS Auto Scaling provides horizontal scaling by automatically adding or removing the computer resources for the application hosted on AWS. Auto Scaling is ideally suited for applications where there is a requirement for scalability. Amazon CloudWatch is used for the basic monitoring of several AWS products including Auto Scaling. In basic monitoring, Amazon CloudWatch collects the data points sent by Auto Scaling every five minutes. AWS CloudWatch offers detailed monitoring for Amazon EC2 and Auto Scaling. In detailed monitoring, an AWS service sends the data points to Amazon CloudWatch every minute.

Instance metrics are the metrics that an individual Amazon EC2 instance sends to Amazon CloudWatch. They are the same for any Amazon EC2 instance, whether the instance is a part of an Auto Scaling group or not.

The present guide demonstrates how to enable detailed monitoring for Auto Scaling and collect the Auto Scaling group metrics. Since AWS does not provide the management console for Auto Scaling, all the tasks would be performed by CLI.

How to Auto Scale (Based on Alerts) Behind an AWS ELB

AutoscalingAWS Auto Scaling allows the user to scale the Amazon EC2 computer resources up or down automatically as per the defined conditions. The user can configure auto scaling as per the requirement. The Amazon Web Services also provides Elastic Load Balancing (ELB) to manage the traffic on a fleet of Amazon Elastic Compute Cloud instances.

When the AWS EC2 resources are managed by ELB, adding new resources to ELB will ensure that the additional traffic is well distributed to the new resources and the application performance is maintained.

The present guide demonstrates how to configure Auto Scaling with Cloudwatch and ELB. Since AWS does not provide the management console for Auto Scaling, all the tasks would be performed by CLI.

Webinar Recording: Managing Cloud Workloads

Cloud Workloads - webinar recording feature imageThe benefits of migrating workloads between different cloud providers or between private and public clouds can only truly be redeemed with an understanding of the cloud business model and cloud workload management. To discuss these benefits, we brought together Joe Weinman, author of Cloudonomics, and Patrick Pushor, founder of CloudChronicle.com.

In a conversation that was aired live on May 16, 2022, Joe and Patrick discussed the basics of managing workloads across the cloud, the benefits of migrating cloud workloads between private, public, and hybrid clouds, and the business value of cloud computing.

Check out their conversation here!

Practical Review: Disaster Recovery (DR) in the AWS Cloud (Part 1)

DR feature image _0“Everything fails, all the time” Werner Vogels, CTO at Amazon.

The Cloud Will Fail

Hurricanes, BIOS updates, earthquakes, DNS failures, SSL certificates, storms … these were responsible for the last years cloud outage in cloud services and traditional data center infrastructure. What do they have in common?

Bad luck? Bad practice? Consequences? Maybe, what they teach us is that we need a “Plan B”.  If the core of our business is on the Internet, we need a disaster-proof infrastructure that enables us to stay on track (or recover) within a feasible time defined in our Business Continuity Plan. In this post I will focus on disaster recovery and its various facets. Before getting into the technical side, let me review some basics.

How to Configure Email Alerts for AWS Auto Scaling Using SNS

AutoscalingAWS Auto Scaling allows the user flexibility to achieve horizontal scalability by automatically adding or removing the Amazon EC2 compute resources. AWS does not charge separately; it charges for all the additional EC2 compute resources. It is important for the user to know when Auto Scaling has added new resources and when resources have been removed. Auto Scaling can be configured with Simple Notification Services (AWS SNS) to get the notification when a new EC2 instance is launched or terminated.

The present guide demonstrates how to configure Auto Scaling to send an email notification when Auto Scaling adds or removes the EC2 computer resources. Since AWS does not provide the management console for Auto Scaling, all the tasks would be performed by Auto Scaling  CLI.

Hitchhiker's Guide to The Cloud

Newvem's eBook for Cloud Operations