Professional Documents
Culture Documents
lab:
1. create a AMI
create a EC2 instance
name ----------> my-ec2-1
os---------------> windows
AMI------------> windows server 2012 R2 Base
Instance type -> t2.micro
key pair
allow HTTP & HTTPS
connect -----> RDP client ----> get passwd----> decrypt
Select a server ----> action ----> images & template ----> create image
Image name ---> my-ec2-1-ami
Image description ----> autoscalling purpose
Go to AMI & check
3. Go to Autoscalling Group
name -----> my-asg
Launch config ---> select above my-launch-config
*vpc -----> default
Avaibilty zone ----> select All (To achieve the high avaibility)
no load balancer
Health check
healt check grace period --->60 sec (check every 60 sec whether serve
is ok or not)
Configure group size
desired capacity ------>2
minimum capacity -->1
maximum capacity --> 4
Scalling Policy
name --> my-scalling-policy
metric type
Averager Cpu utillization (Generally used)
target value ---> 50 (%)
instance need (warm)---> 60 (machine create zalywr wait krnar mg navin
create krnr)
Add notification
send notification ---> AWS Autoscalling messafe
with this receipt ---> mail id
event types ---> launch & terminate
Add tag
key ---> name
Value-optional ----> techical-guftgu
----------------------------------------------------------------------------
Elastic Load Balancer : (Region based)
1. App LB --------> HTTP/HTTPs
2. Netwk LB -----> database server (high bandwidth data)
3. Classic LB -----> combination of APP & Netwk LB
4. Gatway LB ---- > Security Releated
OSI model :
Application -----> gmail,fb
Presentation ----> extension
Session ----------> end to end
Transport --------> Ports
Network ---------> Router
Data Link --------> Switches
Physical ----------> Cables
ELB Listener:
1. to check
4. Go to target Group
target group name ---> alb-tg
Protocol ---> http
Health check ---> /
advanced Health checkup
Healthy threshold ----> 5
Unhealthy threshold---> 2
Timeout --------------> 10 sec
interval -------------> 30 sec
sucess code ---> 200
5. Go to Load Balancer
Select Application LB
name ---> myalb-mumbai
scheme --> internt facing
Mapping--> select a, b,c
Security group--> default
Listeners ----> http & alb-tg
8. Go to launch config
create a launch config
name -----> my-launch-config
AMI ------> myec2-1-ami
Instance type ---> t2.micro
Security Group---> select existing
9. Go to Autoscalling Group
name -----> my-asg
Launch config ---> select above my-launch-config
vpc -----> default
Avaibilty zone ----> select All (To achieve the high avaibility)
attach to existing load balancer----> select existing load balancer target
group
Health check
healt check grace period --->60 sec (check every 60 sec whether serve
is ok or not)
Configure group size
desired capacity ------>2
minimum capacity -->2
maximum capacity --> 4
Scalling Policy
name --> my-scalling-policy
metric type
Averager Cpu utillization (Generally used)
target value ---> 50 (%)
instance need (warm)---> 60 (machine create zalywr wait krnar mg navin
create krnr)
11. New server 1 & 2 created from ami & autoscalling desired capacity
-----------------------------------------------------------------------------------
-------------------------
Delete
1. Autoscalling group
2. launch config
3. Load balancer
4. target group
-----------------------------------------------------------------------------------
--------------------------
-----------------------------------------------------------------------------------
--------------------------
$iuweSLDiq9