Top News

Compute Services in AWS .

 What is AWS Compute?

> AWS compute is an on-demand computing service for running cloud-based applications.

> A cloud-based application means an application that can be deployed on a remote server and accessed over the internet.

> AWS provides computing resources like instances (Virtual Machines) and containers.

> AWS also provides serverless computing to run applications where you do not require infrastructure setup or configuration.

> AWS Compute resources are available on-demand and can be created with just a few clicks of a mouse.

> You will only pay for the resources you use and only for as long as you're using them.

  

What is a Virtual Machine?

> A virtual machine is a virtual environment that works like a computer within a computer.

> The virtual machine is commonly known as VM.

> It has a CPU, memory, disks to store your files and a network to connect to the internet.


Virtual Machine Benefits :

1) Cost savings

2) Agility and speed

3) Lowered downtime

4) Scalability


 EC2 (Elastic compute cloud) :

> EC2 stands for Elastic Compute Cloud

> Amazon elastic compute cloud(Amazon EC2) provides scalable computing capacity in the Amazon Web Services (AWS) Cloud.

> You can completely avoid setting up the hardware to run your application and can develop and deploy applications faster.

> It is designed to make web-scale cloud computing easier for developers.

> You can use Amazon EC2 to launch as many or as few virtual machines as you need.

> Amazon EC2 enables you to scale up or down the virtual machines to handle unexpected loads.

> It provides you with complete control of your computing resources and lets you run on Amazon's proven computing environment.

> Elastic Compute Cloud supports macOS.


Component of amazon EC2


Instance :

> Amazon EC2 is a virtual machine in AWS.

> Instance is an EC2 Virtual Machine.


AMI :

> AMI stands for Amazon Machine Image.

> An Amazon Machine Image (AMI) template contains an operating system and additional software needed to launch AWS EC2 instances.


Key Pair :

> A key pair consists of a public key and a private key.It is a set of security credentials that you use to prove your identity when connecting to an Amazon EC2 instance.

 

Security Group :

> Security Group lets you control who can access your EC2 instances.

> A security group acts as a virtual firewall for your EC2 instances to control inbound and outbound traffic.

> Inbound means you can configure who can connect to your EC2 instance from outside, and Outbound means what your EC2 instance can connect with.


EC2 Tags :

> A tag is a label of your AWS resource.

> Each tag consists of a key and a value.

> You can use tags to organize the resources in your account.

> It could be environment, cost, center, owners, or application name.

> Each tag key must be unique for each resource, and each tag key can have only one value.


EC2 Instance Naming Convention : 


Example : M6g.2xLarge

where   M = Instance family

6 = Instant Generation

g = Additional Capability

.2xLarge = Instant Size

 

EC2 Instance Type : 

What is an EC2 instance type ?

> It is a combination of CPU, memory, storage, and networking capacity.

> Different combinations help while choosing the appropriate mix for your applications.


What best fit for your application means?

Amazon EC2 instance types are grouped into families to meet different use cases.

> General-purpose Instance

> Compute-optimized Instance

> Memory-optimized Instance

> Storage-optimized Instance


General-purpose Instance :

> It provides a balance of compute, memory, and networking resources.

> It is best suitable for web servers, caching fleets, and distributed data store 

applications.

> It is also suitable for development, test, and demo environment applications.


Compute-optimized Instance : 

> It is ideal for compute-bound applications that benefit from high-performance processors.

> This is best for the applications that need higher compute power.

> It is well suited for batch processing, media transcoding, high-performance web servers, high-performance computing (HPC), scientific modeling, dedicated gaming servers, ad server engines, machine learning inference, and other compute-intensive applications


Memory-optimized Instance : 

> Memory-optimized Instances are designed to deliver fast performance for workloads that require huge memory to process large data sets.

> Memory-optimized Instances are used in applications such as open-source databases, in-memory caches, and real-time big data analytics.


Storage-optimized Instance : 

> Storage-optimized instances are designed for workloads that require high, sequential read and write access to massive data sets on local storage.

> It is optimized to deliver tens of thousands of low-latency, random input-output (I/O) operations per second (IOPS) to applications.

> The application has medium-size data sets that need high compute performance and 

high networking throughput.

> These include relational databases including MySQL, Maria DB, and PostgreSQL, and NoSQL databases including Key DB, Scylla DB, and Cassandra.


Conclusion :

always ask to the computer 

1) Whether your application does memory-heavy work?

2) Is it compute heavy work?

3) Does it need high I/O work?

4) Is it just the generic work that it will do?

> As a thumb rule, always choose a smaller instance size, which saves money.


Post a Comment

Previous Post Next Post