Day 11 of 100 Days of AWS: Computing Basics part - I

Day 11 of 100 Days of AWS: Computing Basics part - I

·

6 min read

Hi folks! Welcome to Day 11 of 100 Days of AWS🎯, where we will cover the complete AWS cloud from beginner to professional. Today, we will expand our horizons in the AWS cloud by understanding what is Compute, and compute types provided by AWS. EC2, Amazon Machine Image, Instance Type, and EC2 Pricing Model. Let’s get started🚀!

Day 10 Overview;

On Day 10 we discussed about Object Storage in general its Importance and use cases. object storage service provided by AWS. a brief overview of S3 (Simple Storage Service). and what are the factors to consider before choosing s3 storage class. finally, different S3 storage classes offered by AWS. If you want to dive deep into this topic or revise it, please click here.

Compute in General;

The term compute generally refers to the processing power and resources required to execute operations, perform calculations or run applications on a computer system.

It is a fundamental concept in computer science, cloud computing, and IT infrastructure.

Deployment in olden Days;

Application deployment in the olden days involve,

  • purchasing a server.

  • physically rack a server.

  • Install Operating system.

  • Handle hardware failure. and,

  • then deploying the application on it.

Compute Types provided by AWS;

Millions of organizations run diverse workloads using AWS compute services. depending on their business use cases.

Diagram showing AWS compute services

EC2 Overview;

Amazon Elastic Compute Cloud is a web service that provides secure, resizable compute capacity in the cloud. It is designed to make web-scale computing easier for developers.

The simple web interface of Amazon EC2 allows you to obtain and configure capacity with minimal friction.

It provides you with complete control of your computing resources and lets you run on Amazon’s proven computing environment. Amazon EC2 reduces the time required to obtain and boot new server instances (called Amazon EC2 instances) to minutes, allowing you to quickly scale capacity, both up and down, as your computing requirements change. Amazon EC2 changes the economics of computing by allowing you to pay only for capacity that you actually use. Amazon EC2 provides developers and system administrators the tools to build failure-resilient applications and isolate themselves from common failure scenarios.

Multiple EC2 instances can be deployed on a single server using virtual machines.

VPCs are used to logically isolate each customer's infrastructure

AMI Amazon Machine Image;

  • When running a workload in EC2 compute capacity how can you declare or specify an operating system which is used by ec2 instance.

  • AMI is an image that provides the information required to launch an EC2 instance

  • AMI is a blueprint that contains information such as what operating system and what software/packages should be installed on an instance.

  • We can use this blueprint (AMI) to deploy identical EC2 instances.

  • Think of the AMI as an installer disk used for installing a new server

  • AMIs can be fully customized to:

    1. Add application source code.

    2. Add dependencies.

    3. Customize OS firewall.

Instance Types;

EC2 provides a wide selection of instance types optimized to fit different use cases

• Instance types have varying combinations of CPU, memory, storage, and networking capacity • Think of instance types as different types of server models to select from

  • General Purpose;

    Provide a good balance of compute, memory, and networking resources

    Can be used for diverse workloads

    Ideal for applications that use resources in equal proportions

  • Compute Optimized;

    Optimized for compute-heavy applications

    Contain high-performance CPUs

    Ideal for batch processing workloads, media transcoding, machine learning, and gaming servers

  • Memory Optimized;

    Deliver fast performance for memory intensive workloads

    Suited for databases

  • Storage Optimized;

    Optimized for workloads that require high, sequential read & write access to large data sets on local storage

    Can deliver tens of thousands of low latency, random I/O operations per second (IOPS)

  • Accelerated Computing;

    Utilize hardware accelerators to perform expensive calculations

    Great for graphics processing and data pattern matching

EC2 Pricing Model;

  • On-Demand Pricing,

    Pay for compute capacity by the hour.

    Only billed when instance is running.

    even the instance is deleted you will Still charged for storage attached to the instance

    No upfront payment orlong-term commitment

    Great for short-term, irregular, or unpredictable workloads

    Customer EC2 instances run on shared hosts

  • Spot Pricing,

    Amazon offers spare compute capacity at discounted rates

    Spot instances are recommended for

    Applications that have flexible start time and end time

    Applications that need low compute prices

    Not suited for workloads that cannot tolerate interruptions

  • Reserved Pricing,

    1. Reserve instance is a billing discount that allows you to save on your EC2 costs

    2. Offers discounted rates when reserved for a certain period (1-year or 3-year contract)

    3. When purchasing a reserved instance, you are not actually buying an instance. You are merely committing to using an on-demand instance for a long-term period

    4. When you deploy an on-demand instance with matching attributes as the reservation(instance type, region, platform), it will be charged at the reserved price and not the default.

  • Dedicated Hosts,

    1. A physical EC2 server is dedicated for your use

    2. Can help reduce costs by allowing you to use your existing server bound software licenses (Windows server, SQL server, or SUSE Linux Enterprise)

    3. Can be purchased either OnDemand (hourly) or as a reservation

    4. Pay for the host; there is no per instance charge

  • Dedicated Instances,

    1. Only your instances run on a physical server

    2. If an instance is stopped and then started, it could move to a different host

    3. With dedicated Host, you always have the same physical machine

  • Savings Plan,

    Savings Plans provide savings beyond On-Demand rates in exchange for a commitment of using a specified amount of compute power (measured per hour) for a one or three year period.

    • One year: A year is defined as 365 days (31,536,000 seconds).

    • Three years: Three years is defined as 1,095 days (94,608,000 seconds).

Savings Plans offer a flexible pricing model that provides savings on AWS usage. You can save up to 72 percent on your AWS compute workloads.

Day 11 Wrap-up;

In conclusion, Day 11 of the 100 Days of AWS series provided a comprehensive overview of computing basics within the AWS ecosystem. We explored the concept of compute, the types of compute services offered by AWS, and delved into the specifics of Amazon EC2, including its features, instance types, and pricing models. Understanding these elements is crucial for effectively leveraging AWS's cloud computing capabilities to meet diverse business needs. As we continue this journey, we will build on this foundation to further enhance our knowledge and skills in AWS cloud services. Stay tuned for Day 12, where we will continue to expand our AWS expertise.

Summary & Key Points;

  • EC2 allows you to provision a server in AWS within minutes AMIs are templates for deploying EC2 instances.

  • AWS has a variety of instance types to support all your computing needs( Memory, Compute, Storage optimized).

  • AWS supports a wide variety of Operating Systems from RHEL, SUSE, Ubuntu, Amazon Linux and Windows AWS also offers a variety of processors from ARM to AMD to Intel.

  • AWS marketplace has thousands of AMIs that offer a variety of prebuilt services(NGINX, Palo Alto Firewall, MongoDB)

  • OnDemand Pricing - Pay for what you use, only billed when instance is running Spot Pricing – discounted rates when Amazon has space capacity Workloads on Spot Pricing need to tolerate interruptions

  • Reserved Pricing – Discounted rates when reserved for long periods of time(1-3 years) Dedicated Host – Reserves an entire host(physical server) for you.

  • Dedicated instance – Only your instances run on a server, but that server can change if instances are stopped/started

Up next on Day 12;

  • AWS Serverless compute type Lambda.