SlideShare une entreprise Scribd logo
1  sur  52
zekeLabs
Learning made Simpler !
www.zekeLabs.com
Amazon Web Services
L: 03 | EC2 - Elastic Cloud Compute
Visit : www.zekeLabs.com for more details.
EC2 : Elastic Cloud Compute
● Elastic Cloud Compute provides Resizable Compute Capacity in the Cloud.
● Virtual Machine in the Cloud.
Visit : www.zekeLabs.com for more details.
What is Amazon EC2
● Amazon Elastic Compute Cloud (Amazon EC2) provides scalable computing capacity in the Amazon Web
Services (AWS) cloud.
● Using Amazon EC2 eliminates your need to invest in hardware upfront, so you can develop and deploy
applications faster.
● You can use Amazon EC2 to launch as many or as few virtual servers as you need, configure security and
networking, and manage storage.
● Amazon EC2 enables you to scale up or down to handle changes in requirements or spikes in popularity,
reducing your need to forecast traffic.
● Pay only for capacity you actually use
● Choose Linux or windows
● Choose across regions and availability zones for reliability
Visit : www.zekeLabs.com for more details.
Features of Amazon EC2
● Virtual computing environments, known as instances
● Preconfigured templates for your instances, known as Amazon Machine Images (AMIs), that package the
bits you need for your server (including the operating system and additional software)
● Various configurations of CPU, memory, storage, and networking capacity for your instances, known
as instance types
● Secure login information for your instances using key pairs (AWS stores the public key, and you store the
private key in a secure place)
● Storage volumes for temporary data that's deleted when you stop or terminate your instance, known
as instance store volumes
● Persistent storage volumes for your data using Amazon Elastic Block Store (Amazon EBS), known
as Amazon EBS volumes
Visit : www.zekeLabs.com for more details.
Features of Amazon EC2
● Multiple physical locations for your resources, such as instances and Amazon EBS volumes, known
as regions and Availability Zones
● A firewall that enables you to specify the protocols, ports, and source IP ranges that can reach your
instances using security groups
● Static IPv4 addresses for dynamic cloud computing, known as Elastic IP addresses
● Metadata, known as tags, that you can create and assign to your Amazon EC2 resources
● Virtual networks you can create that are logically isolated from the rest of the AWS cloud, and that you can
optionally connect to your own network, known as virtual private clouds(VPCs)
Visit : www.zekeLabs.com for more details.
Overview
● The instance is an Amazon EBS-backed instance (meaning that the root volume is an EBS volume). You
can either specify the Availability Zone in which your instance runs, or let Amazon EC2 select an
Availability Zone for you.
● When you launch your instance, you secure it by specifying a key pair and security group.
● When you connect to your instance, you must specify the private key of the key pair that you specified
when launching your instance.
Visit : www.zekeLabs.com for more details.
Overview
Visit : www.zekeLabs.com for more details.
EC2 Options
● On Demand : Pay a fixed rate by the hour with no commitment.
- For users wishing for low cost and flexibility without any upfront payment or long term commitment.
- Applications with short term, spiky and unpredictable workloads.
- Ideal for Startups
● Reserved: Capacity Reservation based on baselining, and hence significant discount on the hourly charge
for an instance. 1 year or 3 year terms.
- Steady and Predictable usage applications.
- Applications requiring Reserved Capacity.
● Spot : Bid for price one wishes to pay for Instance Capacity, Greater savings for applications having
flexible start and end times.
- Applications with flexible start and end times.
- Very low cost Compute, No cost for the hour in which AWs terminates the instance.
● Dedicated Hosts: Physical EC2 servers dedicated for use. Useful in case of Server bound licenses for
regulatory requirements. On demand pricing and cheap if reserved.
Visit : www.zekeLabs.com for more details.
EC2 : Different EC2 Family Types
●
Visit : www.zekeLabs.com for more details.
● File Storage
○ Elastic File Store (EFS)
● Block Storage
○ Elastic Block Store (EBS)
● Object Storage
○ Simple Storage Service (S3)
○ Glacier
Storage
Visit : www.zekeLabs.com for more details.
● Storage Volumes that can be attached to Amazon EC2 instances.
● File Systems and Databases can be run.
● Automatic Replication within the AZ’s.
● Note : One EBS Volume can not be mounted to multiple EC2 instances, USE EFS in such cases.
ELASTIC BLOCK STORAGE - EBS Volumes
Visit : www.zekeLabs.com for more details.
● Amazon EBS
○ Data stored on Amazon EBS volume can persist independently of the life of the instance
○ Storage is persistent
● Amazon EC2 instance store
○ Data stored on local instance store persists only as long as instance is alive
○ Storage is ephemeral
Elastic Block Store vs EC2 Instance Store
Visit : www.zekeLabs.com for more details.
EBS - Volume Types
● General Purpose SSD (GP2)
- Balance of Price and Performance.
- Ratio of 3 IOPS per GB with up to 10,000 IOPS and the ability to burst up to 3000 IOPS for volumes
under 1 Gib
● Provisioned IOPS SSD (IO1)
- For I/O intensive applications like larger Relational or NoSql Database.
- Used if the requirement is more than 10,000 IOPS & can provision up to 20,000 IOPS per volume.
● Throughput Optimized HDD(ST1): Magnetic Disks : For Sequential Data that is frequently accessed.
- Big Data, Data Warehouses, Log Processing Etc.
- Can not be the BOOT Volume
● Cold HDD(SC1)
- Lowest Cost Storage for infrequently accessed workloads.
- File Server
- Can not be Boot Volume.
● Magnetic (Standard)
- Bootable and used for infrequently accessed data.
Lab on EC2
EC2 - Important Points
● IOPS
● Root Volume is not encrypted by default. 3rd Party tool (Eg. Bitlocker) to encrypt the root volume.
● Additional Volumes can be encrypted by default.
● Security Groups - Virtual Firewalls
● Termination Protection turned off by default.
● On an EBS- backed instance, the default action is for the root EBS volume to be deleted when the
instance is terminated.
Launch an EC2 Instance via Web Console
● Determine the AWS region in which you want to launch the Amazon EC2 Instance.
● Launch an Amazon EC2 instance from a preconfigured Amazon Machine Image (AMI).
● Choose an instance type based on memory, storage, CPU and network requirements
● Configure network, IP address, security groups, tags and key pairs
Security Groups
Visit : www.zekeLabs.com for more details.
EC2 Security Group Basics
● Security Group is like a virtual firewall.
● Ingress(Inbound) and Egress(Outbound)
● Changes in Security Groups configuration acts immediately.
● It is our first line of defence.
Visit : www.zekeLabs.com for more details.
Security Groups
● By default everything on Aws is private. All inbound traffic is blocked by default.
● If we do not allow a particular protocol no one will be able to access our instance
using that protocol
● Any rule edit on security group have immediate effect.
● Inbound rules also apply over outbound automatically (Stateful)
● You can't deny traffic by using rule. By default everything is denied
● You can allow the source to be itself.
● There can be multiple security groups on an ec2 instance
● Can not block an specific ip address using security group but by using a network
access list.
Lab on Security Group
Visit : www.zekeLabs.com for more details.
Security Groups Lab
● Log in to EC2 server.
● Install Apache Server : yum install httpd -y
● Turn On the Server: service httpd status => service httpd start => chkconfig httpd on
● Go to root directory of the web server : cd /var/www/html
● Create a html page using vi or nano index.html
● Try accessing with different variations of security groups.
● All Inbound is denied by default and Outbound is open to world.
● Security groups are STATEFUL.
Visit : www.zekeLabs.com for more details.
Volumes and Snapshots
Visit : www.zekeLabs.com for more details.
Volumes vs Snapshots
● Volume exists on EBS. It’s more or less Virtual Hard Disk.
● Snapshots exists on S3.
● Snapshot of Volume can be taken and stored on S3.
● Snapshots are point in time copies of Volumes.
● Snapshots are incremental backups. Only changed blocks are moved to S3.
● First snapshot takes time.
● Snapshots excludes data held in the cache by applications and the OS.
● You can track the status of your EBS snapshots through CloudWatch Events
Visit : www.zekeLabs.com for more details.
Lab on Snapshots & Volume
Visit : www.zekeLabs.com for more details.
Lab on Snapshots & Volume
● Create a volume and attach it to the EC2 instance.
● lsblk : Check the volumes and the mount points.
● file -s /dev/xvdf
● mkfs -t ext4 /dev/xvdf
● mkdir /fileserver
● mount /dev/xvdf /fileserver
● umount /dev/xvdf
● Detach the Volume.
● Create the snapshot.
● Create a Volume from the snapshot. Mount and Unmount again.
Visit : www.zekeLabs.com for more details.
Volumes and Snapshot Security
● Snapshots of Encrypted Volumes are encrypted automatically.
● Unencrypted Snapshots can be shared with other AWS Accounts or can even be made public.
● To create a snapshot for Amazon EBS Volumes that serve as root devices, instance should be
stopped before taking the snapshot.
● Amazon EBS encryption uses AWS Key Management Service (AWS KMS) master keys when
creating encrypted volumes and any snapshots created from your encrypted volumes.
Visit : www.zekeLabs.com for more details.
Volumes and Snapshot Security
Visit : www.zekeLabs.com for more details.
AMAZON MACHINE IMAGES (AMI)
Visit : www.zekeLabs.com for more details.
Amazon Machine Image
● An Amazon Machine Image (AMI) provides the information required to launch an instance, which is
a virtual server in the cloud.
● An AMI includes the following
○ A template for the root volume for the instance (for example, an operating system, an
application server, and applications)
○ Launch permissions that control which AWS accounts can use the AMI to launch instances
○ A block device mapping that specifies the volumes to attach to the instance when it's launched
● Select the AMI based on the following
○ Region
○ Operating Systems
○ Launch Permissions
○ Architecture (32 bit or 64 bit)
○ Storage for the root bit
Visit : www.zekeLabs.com for more details.
Using an AMI
Visit : www.zekeLabs.com for more details.
EBS Root Volumes & Instance Store Volumes
● Instance Store or Ephemeral Storage : Can’t be stopped, Lesser durability.
● Data loss in case underlying host fails.
● EBS backed Volumes: Can be Stopped, Snapshots & Volumes can be reattached.
● Both of the instance types can be rebooted.
Visit : www.zekeLabs.com for more details.
Elastic Load Balancers (ELB’s)
Visit : www.zekeLabs.com for more details.
Elastic Load Balancers
● Elastic Load Balancing automatically distributes incoming application traffic across multiple targets,
such as Amazon EC2 instances, containers, and IP addresses.
● A load balancer accepts incoming traffic from clients and routes requests to its registered EC2
instances in one or more Availability Zones.
● The load balancer also monitors the health of its registered instances and ensures that it routes
traffic only to healthy instances.
● When the load balancer detects an unhealthy instance, it stops routing traffic to that instance, and
then resumes routing traffic to that instance when it detects that the instance is healthy again.
● You configure your load balancer to accept incoming traffic by specifying one or more listeners. A
listener is a process that checks for connection requests.
● It is configured with a protocol and port number for connections from clients to the load balancer and
a protocol and port number for connections from the load balancer to the instances.
Visit : www.zekeLabs.com for more details.
Elastic Load Balancer
Visit : www.zekeLabs.com for more details.
Elastic Load Balancer Types
● 3 types of load balancers
○ Classic Load Balancers
○ Application Load Balancer
○ Network Load Balancer
Visit : www.zekeLabs.com for more details.
Classic Load Balancer
● The AWS Classic Load Balancer (CLB) operates at Layer 4 (Transport Layer) of the OSI model.
What this means is that the load balancer routes traffic between clients and backend servers based
on IP address and TCP port.
● For example, an ELB at a given IP address receives a request from a client on TCP port 80 (HTTP).
It will then route that request based on the rules previously configured when setting up the load
balancer to a specified port on one of a pool of backend servers. In this example, the port on which
the load balancer routes to the target server will often be port 80 (HTTP) or 443 (HTTPS).
● The backend destination server will then fulfill the client request, and send the requested data back
to the ELB, which will then forward the backend server reply to the client. From the client’s
perspective, this request will appear to have been entirely fulfilled by the ELB. The client will have no
knowledge of the backend server or servers fulfilling client requests.
Visit : www.zekeLabs.com for more details.
Application Load Balancers
● AWS Application Load Balancer (ALB) operates at Layer 7 (Application Layer) of the OSI model. At
Layer 7, the ELB has the ability to inspect application-level content, not just IP and port. This lets it
route based on more complex rules than with the Classic Load Balancer.
● In another example, an ELB at a given IP will receive a request from the client on port 443
(HTTPS). The Application Load Balancer will process the request, not only by receiving port, but
also by looking at the destination URL.
● Multiple services can share a single load balancer using path-based routing. In the example given
here, the client could request any of the following URLs:
○ http://www.example.com/blog
○ http://www.example.com/video
● The Application Load Balancer will be aware of each of these URLs based on patterns set up when
configuring the load balancer, and can route to different clusters of servers depending on application
need.
Visit : www.zekeLabs.com for more details.
Network Load Balancers
● Network Load Balancer has been designed to handle sudden and volatile traffic patterns, making it
ideal for load balancing TCP traffic. It is capable of handling millions of requests per second while
maintaining low latencies and doesn’t have to be “pre-warmed” before traffic arrives.
● Best use cases for Network Load Balancer:
○ When you need to seamlessly support spiky or high-volume inbound TCP requests.
○ When you need to support a static or elastic IP address.
Visit : www.zekeLabs.com for more details.
Load Balancers
Visit : www.zekeLabs.com for more details.
Classic and Application Load Balancers
Visit : www.zekeLabs.com for more details.
Command Line Interface (CLI)
Visit : www.zekeLabs.com for more details.
AWS CLI
● Configure the CLI:
aws configure
● After configuring
aws service help
● Roles : Secure compared to storing the Key and Key ID on the EC2 server.
● Roles permissions can be changed later but they can only be attached to EC2 during the launch.
Visit : www.zekeLabs.com for more details.
EC2 Metadata
Visit : www.zekeLabs.com for more details.
EC2 Metadata
● Instance metadata is data about your instance that you can use to configure or manage the
running instance.
● How to retrieve the data about the data.
curl http://169.254.169.254/latest/meta-data
Visit : www.zekeLabs.com for more details.
Amazon Autoscaling Groups
Visit : www.zekeLabs.com for more details.
Auto Scaling
● Contains a collection of EC2 instances that share similar characteristics and are treated as a
logical grouping for the purposes of instance scaling and management.
● For example, if a single application operates across multiple instances, you might want to increase
the number of instances in that group to improve the performance of the application, or decrease
the number of instances to reduce costs when demand is low.
● Auto Scaling groups are used to scale the number of instances automatically based on criteria
that you specify, or to maintain a fixed number of instances even if an instance becomes
unhealthy.
Visit : www.zekeLabs.com for more details.
Auto Scaling Groups
Visit : www.zekeLabs.com for more details.
Auto Scaling
● Manages Amazon EC2 capacity automatically.
● Maintains the right number of instances for your application.
● Operates a healthy group of instances, and scales it according to your needs.
● Launch Configurations: Reusable configuration or templates of instances for auto scaling.
Custom AMI’s or AMI’s that are created from already running instances can also be used.
● Launch configuration can be changed at any point of time.
● Auto Scaling Group: Specify how many instances you want to run in it.Your group will maintain
this number of instances, and replace any that become unhealthy or impaired.
● You can optionally configure your group to adjust in capacity according to demand, in response to
Amazon CloudWatch metrics.
Visit : www.zekeLabs.com for more details.
EC2 Placement Groups
Visit : www.zekeLabs.com for more details.
Placement Groups
● Logical grouping of instances within a single Availability zone. Multiple AZ’s not possible.
● Applications that need low latency, speeds upto 10Gbps can be achieved.
● Recommended for applications needing Low Network Latency, High Network Throughput or
both.
● Suitable for Hadoop Clustering, Cassandra nodes etc.
● Placement Group name must be unique in the AWS Account.
● Only certain types of instances can be launched in a placement group (Optimized - Mem, GPU,
Storage)
● Homogenous instances recommended and Placements Groups can’t be merged.
● Existing instances can’t be moved into Placement Group. (Possible only through AMI’s)
Visit : www.zekeLabs.com for more details.
Visit : www.zekeLabs.com for more details
THANK YOU
Let us know how can we help your organization to Upskill the
employees to stay updated in the ever-evolving IT Industry.
Get in touch:
www.zekeLabs.com | +91-8095465880 | info@zekeLabs.com

Contenu connexe

Tendances

AWS S3 | Tutorial For Beginners | AWS S3 Bucket Tutorial | AWS Tutorial For B...
AWS S3 | Tutorial For Beginners | AWS S3 Bucket Tutorial | AWS Tutorial For B...AWS S3 | Tutorial For Beginners | AWS S3 Bucket Tutorial | AWS Tutorial For B...
AWS S3 | Tutorial For Beginners | AWS S3 Bucket Tutorial | AWS Tutorial For B...
Simplilearn
 

Tendances (20)

Amazon Virtual Private Cloud (VPC): Networking Fundamentals and Connectivity ...
Amazon Virtual Private Cloud (VPC): Networking Fundamentals and Connectivity ...Amazon Virtual Private Cloud (VPC): Networking Fundamentals and Connectivity ...
Amazon Virtual Private Cloud (VPC): Networking Fundamentals and Connectivity ...
 
AWS Tutorial | AWS Certified Solutions Architect | Amazon AWS | AWS Training ...
AWS Tutorial | AWS Certified Solutions Architect | Amazon AWS | AWS Training ...AWS Tutorial | AWS Certified Solutions Architect | Amazon AWS | AWS Training ...
AWS Tutorial | AWS Certified Solutions Architect | Amazon AWS | AWS Training ...
 
Intro to AWS Lambda
Intro to AWS Lambda Intro to AWS Lambda
Intro to AWS Lambda
 
AWS SQS SNS
AWS SQS SNSAWS SQS SNS
AWS SQS SNS
 
Introduction to Amazon EC2
Introduction to Amazon EC2Introduction to Amazon EC2
Introduction to Amazon EC2
 
Introduction to Amazon Relational Database Service
Introduction to Amazon Relational Database ServiceIntroduction to Amazon Relational Database Service
Introduction to Amazon Relational Database Service
 
Introduction to Amazon Web Services (AWS)
Introduction to Amazon Web Services (AWS)Introduction to Amazon Web Services (AWS)
Introduction to Amazon Web Services (AWS)
 
Introduction to AWS Cloud Computing
Introduction to AWS Cloud ComputingIntroduction to AWS Cloud Computing
Introduction to AWS Cloud Computing
 
AWS Connectivity, VPC Design and Security Pro Tips
AWS Connectivity, VPC Design and Security Pro TipsAWS Connectivity, VPC Design and Security Pro Tips
AWS Connectivity, VPC Design and Security Pro Tips
 
Intro to AWS: Amazon EC2 and Compute Services
Intro to AWS: Amazon EC2 and Compute ServicesIntro to AWS: Amazon EC2 and Compute Services
Intro to AWS: Amazon EC2 and Compute Services
 
Intro to Amazon S3
Intro to Amazon S3Intro to Amazon S3
Intro to Amazon S3
 
Aws IAM
Aws IAMAws IAM
Aws IAM
 
AWS IAM and security
AWS IAM and securityAWS IAM and security
AWS IAM and security
 
Amazon services ec2
Amazon services ec2Amazon services ec2
Amazon services ec2
 
Amazon SQS overview
Amazon SQS overviewAmazon SQS overview
Amazon SQS overview
 
Introduction to the Microsoft Azure Cloud.pptx
Introduction to the Microsoft Azure Cloud.pptxIntroduction to the Microsoft Azure Cloud.pptx
Introduction to the Microsoft Azure Cloud.pptx
 
Introduction to AWS Security
Introduction to AWS SecurityIntroduction to AWS Security
Introduction to AWS Security
 
Basics AWS Presentation
Basics AWS PresentationBasics AWS Presentation
Basics AWS Presentation
 
Introduction to AWS Lambda and Serverless Applications
Introduction to AWS Lambda and Serverless ApplicationsIntroduction to AWS Lambda and Serverless Applications
Introduction to AWS Lambda and Serverless Applications
 
AWS S3 | Tutorial For Beginners | AWS S3 Bucket Tutorial | AWS Tutorial For B...
AWS S3 | Tutorial For Beginners | AWS S3 Bucket Tutorial | AWS Tutorial For B...AWS S3 | Tutorial For Beginners | AWS S3 Bucket Tutorial | AWS Tutorial For B...
AWS S3 | Tutorial For Beginners | AWS S3 Bucket Tutorial | AWS Tutorial For B...
 

Similaire à AWS Elastic Compute Cloud (EC2)

Introduction to amazon web services for developers
Introduction to amazon web services for developersIntroduction to amazon web services for developers
Introduction to amazon web services for developers
Ciklum Ukraine
 

Similaire à AWS Elastic Compute Cloud (EC2) (20)

AWS Certified Solutions Architect Associate Notes.pdf
AWS Certified Solutions Architect Associate Notes.pdfAWS Certified Solutions Architect Associate Notes.pdf
AWS Certified Solutions Architect Associate Notes.pdf
 
Amazon Web Services lection 2
Amazon Web Services lection 2Amazon Web Services lection 2
Amazon Web Services lection 2
 
Amazon cloud intance launch3
Amazon cloud intance launch3Amazon cloud intance launch3
Amazon cloud intance launch3
 
Amazon cloud intance launch3
Amazon cloud intance launch3Amazon cloud intance launch3
Amazon cloud intance launch3
 
Amazon cloud intance launch
Amazon cloud intance launchAmazon cloud intance launch
Amazon cloud intance launch
 
AWS Webcast - Achieving consistent high performance with Postgres on Amazon W...
AWS Webcast - Achieving consistent high performance with Postgres on Amazon W...AWS Webcast - Achieving consistent high performance with Postgres on Amazon W...
AWS Webcast - Achieving consistent high performance with Postgres on Amazon W...
 
EC2 and S3 Level 100
EC2 and S3 Level 100EC2 and S3 Level 100
EC2 and S3 Level 100
 
AWS compute Services
AWS compute ServicesAWS compute Services
AWS compute Services
 
Introduction to amazon web services for developers
Introduction to amazon web services for developersIntroduction to amazon web services for developers
Introduction to amazon web services for developers
 
Running Oracle EBS in the cloud (OAUG Collaborate 18 edition)
Running Oracle EBS in the cloud (OAUG Collaborate 18 edition)Running Oracle EBS in the cloud (OAUG Collaborate 18 edition)
Running Oracle EBS in the cloud (OAUG Collaborate 18 edition)
 
Getting Started with EC2, S3 and EMR
Getting Started with EC2, S3 and EMRGetting Started with EC2, S3 and EMR
Getting Started with EC2, S3 and EMR
 
AWS Webcast - Explore the AWS Cloud
AWS Webcast - Explore the AWS CloudAWS Webcast - Explore the AWS Cloud
AWS Webcast - Explore the AWS Cloud
 
002 AWSSlides.pdf
002 AWSSlides.pdf002 AWSSlides.pdf
002 AWSSlides.pdf
 
AWSome Day Online 2020_โมดูล 2: เริ่มต้นใช้งานบน AWS Cloud
AWSome Day Online 2020_โมดูล 2: เริ่มต้นใช้งานบน AWS CloudAWSome Day Online 2020_โมดูล 2: เริ่มต้นใช้งานบน AWS Cloud
AWSome Day Online 2020_โมดูล 2: เริ่มต้นใช้งานบน AWS Cloud
 
AWS Webcast - AWS Webinar Series for Education #2 - Getting Started with AWS
AWS Webcast - AWS Webinar Series for Education #2 - Getting Started with AWSAWS Webcast - AWS Webinar Series for Education #2 - Getting Started with AWS
AWS Webcast - AWS Webinar Series for Education #2 - Getting Started with AWS
 
AWS tutorial-Part27:AWS EC2
AWS tutorial-Part27:AWS EC2AWS tutorial-Part27:AWS EC2
AWS tutorial-Part27:AWS EC2
 
DCEU 18: Use Cases and Practical Solutions for Docker Container Storage on Sw...
DCEU 18: Use Cases and Practical Solutions for Docker Container Storage on Sw...DCEU 18: Use Cases and Practical Solutions for Docker Container Storage on Sw...
DCEU 18: Use Cases and Practical Solutions for Docker Container Storage on Sw...
 
EC2 BY RASHMI GR.pptx
EC2  BY RASHMI GR.pptxEC2  BY RASHMI GR.pptx
EC2 BY RASHMI GR.pptx
 
AWS Webcast - Webinar Series for State and Local Government #2: Discover the ...
AWS Webcast - Webinar Series for State and Local Government #2: Discover the ...AWS Webcast - Webinar Series for State and Local Government #2: Discover the ...
AWS Webcast - Webinar Series for State and Local Government #2: Discover the ...
 
Best Practices running SQL Server on AWS
Best Practices running SQL Server on AWSBest Practices running SQL Server on AWS
Best Practices running SQL Server on AWS
 

Plus de zekeLabs Technologies

Plus de zekeLabs Technologies (20)

Webinar - Build Cloud-native platform using Docker, Kubernetes, Prometheus, I...
Webinar - Build Cloud-native platform using Docker, Kubernetes, Prometheus, I...Webinar - Build Cloud-native platform using Docker, Kubernetes, Prometheus, I...
Webinar - Build Cloud-native platform using Docker, Kubernetes, Prometheus, I...
 
Design Patterns for Pods and Containers in Kubernetes - Webinar by zekeLabs
Design Patterns for Pods and Containers in Kubernetes - Webinar by zekeLabsDesign Patterns for Pods and Containers in Kubernetes - Webinar by zekeLabs
Design Patterns for Pods and Containers in Kubernetes - Webinar by zekeLabs
 
[Webinar] Following the Agile Footprint - zekeLabs
[Webinar] Following the Agile Footprint - zekeLabs[Webinar] Following the Agile Footprint - zekeLabs
[Webinar] Following the Agile Footprint - zekeLabs
 
Machine learning at scale - Webinar By zekeLabs
Machine learning at scale - Webinar By zekeLabsMachine learning at scale - Webinar By zekeLabs
Machine learning at scale - Webinar By zekeLabs
 
A curtain-raiser to the container world Docker & Kubernetes
A curtain-raiser to the container world Docker & KubernetesA curtain-raiser to the container world Docker & Kubernetes
A curtain-raiser to the container world Docker & Kubernetes
 
Docker - A curtain raiser to the Container world
Docker - A curtain raiser to the Container worldDocker - A curtain raiser to the Container world
Docker - A curtain raiser to the Container world
 
Serverless and cloud computing
Serverless and cloud computingServerless and cloud computing
Serverless and cloud computing
 
SQL
SQLSQL
SQL
 
02 terraform core concepts
02 terraform core concepts02 terraform core concepts
02 terraform core concepts
 
08 Terraform: Provisioners
08 Terraform: Provisioners08 Terraform: Provisioners
08 Terraform: Provisioners
 
Outlier detection handling
Outlier detection handlingOutlier detection handling
Outlier detection handling
 
Nearest neighbors
Nearest neighborsNearest neighbors
Nearest neighbors
 
Naive bayes
Naive bayesNaive bayes
Naive bayes
 
Master guide to become a data scientist
Master guide to become a data scientist Master guide to become a data scientist
Master guide to become a data scientist
 
Linear regression
Linear regressionLinear regression
Linear regression
 
Linear models of classification
Linear models of classificationLinear models of classification
Linear models of classification
 
Grid search, pipeline, featureunion
Grid search, pipeline, featureunionGrid search, pipeline, featureunion
Grid search, pipeline, featureunion
 
Feature selection
Feature selectionFeature selection
Feature selection
 
Essential NumPy
Essential NumPyEssential NumPy
Essential NumPy
 
Ensemble methods
Ensemble methods Ensemble methods
Ensemble methods
 

Dernier

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Dernier (20)

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 

AWS Elastic Compute Cloud (EC2)

  • 1. zekeLabs Learning made Simpler ! www.zekeLabs.com
  • 2. Amazon Web Services L: 03 | EC2 - Elastic Cloud Compute Visit : www.zekeLabs.com for more details.
  • 3. EC2 : Elastic Cloud Compute ● Elastic Cloud Compute provides Resizable Compute Capacity in the Cloud. ● Virtual Machine in the Cloud. Visit : www.zekeLabs.com for more details.
  • 4. What is Amazon EC2 ● Amazon Elastic Compute Cloud (Amazon EC2) provides scalable computing capacity in the Amazon Web Services (AWS) cloud. ● Using Amazon EC2 eliminates your need to invest in hardware upfront, so you can develop and deploy applications faster. ● You can use Amazon EC2 to launch as many or as few virtual servers as you need, configure security and networking, and manage storage. ● Amazon EC2 enables you to scale up or down to handle changes in requirements or spikes in popularity, reducing your need to forecast traffic. ● Pay only for capacity you actually use ● Choose Linux or windows ● Choose across regions and availability zones for reliability Visit : www.zekeLabs.com for more details.
  • 5. Features of Amazon EC2 ● Virtual computing environments, known as instances ● Preconfigured templates for your instances, known as Amazon Machine Images (AMIs), that package the bits you need for your server (including the operating system and additional software) ● Various configurations of CPU, memory, storage, and networking capacity for your instances, known as instance types ● Secure login information for your instances using key pairs (AWS stores the public key, and you store the private key in a secure place) ● Storage volumes for temporary data that's deleted when you stop or terminate your instance, known as instance store volumes ● Persistent storage volumes for your data using Amazon Elastic Block Store (Amazon EBS), known as Amazon EBS volumes Visit : www.zekeLabs.com for more details.
  • 6. Features of Amazon EC2 ● Multiple physical locations for your resources, such as instances and Amazon EBS volumes, known as regions and Availability Zones ● A firewall that enables you to specify the protocols, ports, and source IP ranges that can reach your instances using security groups ● Static IPv4 addresses for dynamic cloud computing, known as Elastic IP addresses ● Metadata, known as tags, that you can create and assign to your Amazon EC2 resources ● Virtual networks you can create that are logically isolated from the rest of the AWS cloud, and that you can optionally connect to your own network, known as virtual private clouds(VPCs) Visit : www.zekeLabs.com for more details.
  • 7. Overview ● The instance is an Amazon EBS-backed instance (meaning that the root volume is an EBS volume). You can either specify the Availability Zone in which your instance runs, or let Amazon EC2 select an Availability Zone for you. ● When you launch your instance, you secure it by specifying a key pair and security group. ● When you connect to your instance, you must specify the private key of the key pair that you specified when launching your instance. Visit : www.zekeLabs.com for more details.
  • 9. EC2 Options ● On Demand : Pay a fixed rate by the hour with no commitment. - For users wishing for low cost and flexibility without any upfront payment or long term commitment. - Applications with short term, spiky and unpredictable workloads. - Ideal for Startups ● Reserved: Capacity Reservation based on baselining, and hence significant discount on the hourly charge for an instance. 1 year or 3 year terms. - Steady and Predictable usage applications. - Applications requiring Reserved Capacity. ● Spot : Bid for price one wishes to pay for Instance Capacity, Greater savings for applications having flexible start and end times. - Applications with flexible start and end times. - Very low cost Compute, No cost for the hour in which AWs terminates the instance. ● Dedicated Hosts: Physical EC2 servers dedicated for use. Useful in case of Server bound licenses for regulatory requirements. On demand pricing and cheap if reserved. Visit : www.zekeLabs.com for more details.
  • 10. EC2 : Different EC2 Family Types ● Visit : www.zekeLabs.com for more details.
  • 11. ● File Storage ○ Elastic File Store (EFS) ● Block Storage ○ Elastic Block Store (EBS) ● Object Storage ○ Simple Storage Service (S3) ○ Glacier Storage Visit : www.zekeLabs.com for more details.
  • 12. ● Storage Volumes that can be attached to Amazon EC2 instances. ● File Systems and Databases can be run. ● Automatic Replication within the AZ’s. ● Note : One EBS Volume can not be mounted to multiple EC2 instances, USE EFS in such cases. ELASTIC BLOCK STORAGE - EBS Volumes Visit : www.zekeLabs.com for more details.
  • 13. ● Amazon EBS ○ Data stored on Amazon EBS volume can persist independently of the life of the instance ○ Storage is persistent ● Amazon EC2 instance store ○ Data stored on local instance store persists only as long as instance is alive ○ Storage is ephemeral Elastic Block Store vs EC2 Instance Store Visit : www.zekeLabs.com for more details.
  • 14. EBS - Volume Types ● General Purpose SSD (GP2) - Balance of Price and Performance. - Ratio of 3 IOPS per GB with up to 10,000 IOPS and the ability to burst up to 3000 IOPS for volumes under 1 Gib ● Provisioned IOPS SSD (IO1) - For I/O intensive applications like larger Relational or NoSql Database. - Used if the requirement is more than 10,000 IOPS & can provision up to 20,000 IOPS per volume. ● Throughput Optimized HDD(ST1): Magnetic Disks : For Sequential Data that is frequently accessed. - Big Data, Data Warehouses, Log Processing Etc. - Can not be the BOOT Volume ● Cold HDD(SC1) - Lowest Cost Storage for infrequently accessed workloads. - File Server - Can not be Boot Volume. ● Magnetic (Standard) - Bootable and used for infrequently accessed data.
  • 16. EC2 - Important Points ● IOPS ● Root Volume is not encrypted by default. 3rd Party tool (Eg. Bitlocker) to encrypt the root volume. ● Additional Volumes can be encrypted by default. ● Security Groups - Virtual Firewalls ● Termination Protection turned off by default. ● On an EBS- backed instance, the default action is for the root EBS volume to be deleted when the instance is terminated.
  • 17. Launch an EC2 Instance via Web Console ● Determine the AWS region in which you want to launch the Amazon EC2 Instance. ● Launch an Amazon EC2 instance from a preconfigured Amazon Machine Image (AMI). ● Choose an instance type based on memory, storage, CPU and network requirements ● Configure network, IP address, security groups, tags and key pairs
  • 18. Security Groups Visit : www.zekeLabs.com for more details.
  • 19. EC2 Security Group Basics ● Security Group is like a virtual firewall. ● Ingress(Inbound) and Egress(Outbound) ● Changes in Security Groups configuration acts immediately. ● It is our first line of defence. Visit : www.zekeLabs.com for more details.
  • 20. Security Groups ● By default everything on Aws is private. All inbound traffic is blocked by default. ● If we do not allow a particular protocol no one will be able to access our instance using that protocol ● Any rule edit on security group have immediate effect. ● Inbound rules also apply over outbound automatically (Stateful) ● You can't deny traffic by using rule. By default everything is denied ● You can allow the source to be itself. ● There can be multiple security groups on an ec2 instance ● Can not block an specific ip address using security group but by using a network access list.
  • 21. Lab on Security Group Visit : www.zekeLabs.com for more details.
  • 22. Security Groups Lab ● Log in to EC2 server. ● Install Apache Server : yum install httpd -y ● Turn On the Server: service httpd status => service httpd start => chkconfig httpd on ● Go to root directory of the web server : cd /var/www/html ● Create a html page using vi or nano index.html ● Try accessing with different variations of security groups. ● All Inbound is denied by default and Outbound is open to world. ● Security groups are STATEFUL. Visit : www.zekeLabs.com for more details.
  • 23. Volumes and Snapshots Visit : www.zekeLabs.com for more details.
  • 24. Volumes vs Snapshots ● Volume exists on EBS. It’s more or less Virtual Hard Disk. ● Snapshots exists on S3. ● Snapshot of Volume can be taken and stored on S3. ● Snapshots are point in time copies of Volumes. ● Snapshots are incremental backups. Only changed blocks are moved to S3. ● First snapshot takes time. ● Snapshots excludes data held in the cache by applications and the OS. ● You can track the status of your EBS snapshots through CloudWatch Events Visit : www.zekeLabs.com for more details.
  • 25. Lab on Snapshots & Volume Visit : www.zekeLabs.com for more details.
  • 26. Lab on Snapshots & Volume ● Create a volume and attach it to the EC2 instance. ● lsblk : Check the volumes and the mount points. ● file -s /dev/xvdf ● mkfs -t ext4 /dev/xvdf ● mkdir /fileserver ● mount /dev/xvdf /fileserver ● umount /dev/xvdf ● Detach the Volume. ● Create the snapshot. ● Create a Volume from the snapshot. Mount and Unmount again. Visit : www.zekeLabs.com for more details.
  • 27. Volumes and Snapshot Security ● Snapshots of Encrypted Volumes are encrypted automatically. ● Unencrypted Snapshots can be shared with other AWS Accounts or can even be made public. ● To create a snapshot for Amazon EBS Volumes that serve as root devices, instance should be stopped before taking the snapshot. ● Amazon EBS encryption uses AWS Key Management Service (AWS KMS) master keys when creating encrypted volumes and any snapshots created from your encrypted volumes. Visit : www.zekeLabs.com for more details.
  • 28. Volumes and Snapshot Security Visit : www.zekeLabs.com for more details.
  • 29. AMAZON MACHINE IMAGES (AMI) Visit : www.zekeLabs.com for more details.
  • 30. Amazon Machine Image ● An Amazon Machine Image (AMI) provides the information required to launch an instance, which is a virtual server in the cloud. ● An AMI includes the following ○ A template for the root volume for the instance (for example, an operating system, an application server, and applications) ○ Launch permissions that control which AWS accounts can use the AMI to launch instances ○ A block device mapping that specifies the volumes to attach to the instance when it's launched ● Select the AMI based on the following ○ Region ○ Operating Systems ○ Launch Permissions ○ Architecture (32 bit or 64 bit) ○ Storage for the root bit Visit : www.zekeLabs.com for more details.
  • 31. Using an AMI Visit : www.zekeLabs.com for more details.
  • 32. EBS Root Volumes & Instance Store Volumes ● Instance Store or Ephemeral Storage : Can’t be stopped, Lesser durability. ● Data loss in case underlying host fails. ● EBS backed Volumes: Can be Stopped, Snapshots & Volumes can be reattached. ● Both of the instance types can be rebooted. Visit : www.zekeLabs.com for more details.
  • 33. Elastic Load Balancers (ELB’s) Visit : www.zekeLabs.com for more details.
  • 34. Elastic Load Balancers ● Elastic Load Balancing automatically distributes incoming application traffic across multiple targets, such as Amazon EC2 instances, containers, and IP addresses. ● A load balancer accepts incoming traffic from clients and routes requests to its registered EC2 instances in one or more Availability Zones. ● The load balancer also monitors the health of its registered instances and ensures that it routes traffic only to healthy instances. ● When the load balancer detects an unhealthy instance, it stops routing traffic to that instance, and then resumes routing traffic to that instance when it detects that the instance is healthy again. ● You configure your load balancer to accept incoming traffic by specifying one or more listeners. A listener is a process that checks for connection requests. ● It is configured with a protocol and port number for connections from clients to the load balancer and a protocol and port number for connections from the load balancer to the instances. Visit : www.zekeLabs.com for more details.
  • 35. Elastic Load Balancer Visit : www.zekeLabs.com for more details.
  • 36. Elastic Load Balancer Types ● 3 types of load balancers ○ Classic Load Balancers ○ Application Load Balancer ○ Network Load Balancer Visit : www.zekeLabs.com for more details.
  • 37. Classic Load Balancer ● The AWS Classic Load Balancer (CLB) operates at Layer 4 (Transport Layer) of the OSI model. What this means is that the load balancer routes traffic between clients and backend servers based on IP address and TCP port. ● For example, an ELB at a given IP address receives a request from a client on TCP port 80 (HTTP). It will then route that request based on the rules previously configured when setting up the load balancer to a specified port on one of a pool of backend servers. In this example, the port on which the load balancer routes to the target server will often be port 80 (HTTP) or 443 (HTTPS). ● The backend destination server will then fulfill the client request, and send the requested data back to the ELB, which will then forward the backend server reply to the client. From the client’s perspective, this request will appear to have been entirely fulfilled by the ELB. The client will have no knowledge of the backend server or servers fulfilling client requests. Visit : www.zekeLabs.com for more details.
  • 38. Application Load Balancers ● AWS Application Load Balancer (ALB) operates at Layer 7 (Application Layer) of the OSI model. At Layer 7, the ELB has the ability to inspect application-level content, not just IP and port. This lets it route based on more complex rules than with the Classic Load Balancer. ● In another example, an ELB at a given IP will receive a request from the client on port 443 (HTTPS). The Application Load Balancer will process the request, not only by receiving port, but also by looking at the destination URL. ● Multiple services can share a single load balancer using path-based routing. In the example given here, the client could request any of the following URLs: ○ http://www.example.com/blog ○ http://www.example.com/video ● The Application Load Balancer will be aware of each of these URLs based on patterns set up when configuring the load balancer, and can route to different clusters of servers depending on application need. Visit : www.zekeLabs.com for more details.
  • 39. Network Load Balancers ● Network Load Balancer has been designed to handle sudden and volatile traffic patterns, making it ideal for load balancing TCP traffic. It is capable of handling millions of requests per second while maintaining low latencies and doesn’t have to be “pre-warmed” before traffic arrives. ● Best use cases for Network Load Balancer: ○ When you need to seamlessly support spiky or high-volume inbound TCP requests. ○ When you need to support a static or elastic IP address. Visit : www.zekeLabs.com for more details.
  • 40. Load Balancers Visit : www.zekeLabs.com for more details.
  • 41. Classic and Application Load Balancers Visit : www.zekeLabs.com for more details.
  • 42. Command Line Interface (CLI) Visit : www.zekeLabs.com for more details.
  • 43. AWS CLI ● Configure the CLI: aws configure ● After configuring aws service help ● Roles : Secure compared to storing the Key and Key ID on the EC2 server. ● Roles permissions can be changed later but they can only be attached to EC2 during the launch. Visit : www.zekeLabs.com for more details.
  • 44. EC2 Metadata Visit : www.zekeLabs.com for more details.
  • 45. EC2 Metadata ● Instance metadata is data about your instance that you can use to configure or manage the running instance. ● How to retrieve the data about the data. curl http://169.254.169.254/latest/meta-data Visit : www.zekeLabs.com for more details.
  • 46. Amazon Autoscaling Groups Visit : www.zekeLabs.com for more details.
  • 47. Auto Scaling ● Contains a collection of EC2 instances that share similar characteristics and are treated as a logical grouping for the purposes of instance scaling and management. ● For example, if a single application operates across multiple instances, you might want to increase the number of instances in that group to improve the performance of the application, or decrease the number of instances to reduce costs when demand is low. ● Auto Scaling groups are used to scale the number of instances automatically based on criteria that you specify, or to maintain a fixed number of instances even if an instance becomes unhealthy. Visit : www.zekeLabs.com for more details.
  • 48. Auto Scaling Groups Visit : www.zekeLabs.com for more details.
  • 49. Auto Scaling ● Manages Amazon EC2 capacity automatically. ● Maintains the right number of instances for your application. ● Operates a healthy group of instances, and scales it according to your needs. ● Launch Configurations: Reusable configuration or templates of instances for auto scaling. Custom AMI’s or AMI’s that are created from already running instances can also be used. ● Launch configuration can be changed at any point of time. ● Auto Scaling Group: Specify how many instances you want to run in it.Your group will maintain this number of instances, and replace any that become unhealthy or impaired. ● You can optionally configure your group to adjust in capacity according to demand, in response to Amazon CloudWatch metrics. Visit : www.zekeLabs.com for more details.
  • 50. EC2 Placement Groups Visit : www.zekeLabs.com for more details.
  • 51. Placement Groups ● Logical grouping of instances within a single Availability zone. Multiple AZ’s not possible. ● Applications that need low latency, speeds upto 10Gbps can be achieved. ● Recommended for applications needing Low Network Latency, High Network Throughput or both. ● Suitable for Hadoop Clustering, Cassandra nodes etc. ● Placement Group name must be unique in the AWS Account. ● Only certain types of instances can be launched in a placement group (Optimized - Mem, GPU, Storage) ● Homogenous instances recommended and Placements Groups can’t be merged. ● Existing instances can’t be moved into Placement Group. (Possible only through AMI’s) Visit : www.zekeLabs.com for more details.
  • 52. Visit : www.zekeLabs.com for more details THANK YOU Let us know how can we help your organization to Upskill the employees to stay updated in the ever-evolving IT Industry. Get in touch: www.zekeLabs.com | +91-8095465880 | info@zekeLabs.com

Notes de l'éditeur

  1. Advance settingd #!/bin/bash Yum update -y For mac users: Apps > Utilities > Terminal | ssh ec2-user@public ip -i keypair.pem
  2. Credentials are stored in home/aws cd ~/.aws ls -a