Skip to main content

14.auto scalling

14.auto scalling

......................

............... AUTO SCALING..........

1. CREATING CUSTOM AMI..
....................................


#!/bin/bash
yum update -y
yum install nginx -y
service nginx start
chkconfig nginx on 
...........................

.yum install stress -y   .......stress clinte on amazone linux..
.chkconfig nginx on       ........ for nginx server runs dirctlly my AMI deployed to vm...
-crate image- Created AMI-use This AMI in Auto scaling Confi add..

2.CRATE ELB.........
...................................
........................
.NLB-----Creat Target..(Lisners Automatically added by auto scallin)
.In this Domain add route 53 config..






3. CREATE AUTOSCALING..- .........................
.............................................
.Launch config -Add MY AMI, machine,key, Then ,

.{In Auto scalling group-vpc-add subnets-Advanced -load balacing check tick mark-add ELB..-next config scaling-policey -- 
-Use scalling policies to adjst of this group-- scal b/t 1-3
 increse groupsize-alearm set-CPU Utilization > 50 --add 2-inst
 decreas groupsize-alearm set-CPU Utilization < 45 --rem 2-inst 
 next- key -valu(geting server name) - reviw-creat auto scaling group}


4.Create End user Traficc.. indirtlly using Stress tool  using....
............................................................
.service nginx status
.stress    .....  stress --cpu 8 --io 4 --vm 2 --vm-bytes 128M --timeout 10s
.cntrol+c...
.ps -ef

  .2757  0 19:32 pts/0    00:00:00 stress --cpu 8 --io 4 --vm 2 --vm-bytes 128M --timeout 20m
  .


.kill 2757

end......
.delt- NLB-Auto scalling..servrs terminte.............AMI Remove and Image also de register,,,snap shot also delet.....
...................................................







Comments

Popular posts from this blog

36.Migration & Transfer

36.Migration & Transfer Migration & Transfer:::...... .............................................. 1.Snowball::(data moving only,like box, 10gb connectivety, 80terrabytes supportes one box,encripted for portable purpouse ,aws snow mobi- like truck 40gb connectivety bunch of snow balles in side truck, we use this services for not having enf bandwidth, snowball edge.study dock) 2.Server Migration Service:: ( virtual servers not for physical servers, free tool,  google search aws sms limits, onprimisess to cloude, to over com use 3rd party tools lik platespin migrate aws,cloud endure,zerto aws )  15.54 .. video harshas desktop..(google - aws sms user guide,planning diffuclt but implementation easy,  google - aws 6r , acess key and security key required,replication,finally creating AMI) 3.Database Migration Service(crating one instnce to take replication from on premisiss to stor in aws RDS,or more given directions,trasfer over vpn) 4.AWS Migration...

42-AWS-PROJECT-CERTIFATION

42-AWS-PROJECT-CERTIFATION ... GOOGLE....aws 6r..... 1. 2. 3. 4. 5. 6. PRE SALE -POST SALE::: DPR: Detailed PROJECT REPORT. RFI : REQUSTE FOR INF. RFP : REQUEST FOR PROPEROSAL RFQ : REQ     FOR QOOTE POC: PROOF OF CONCEPT HLD: HIGH LEVEL DEGINE  CEO,LEVEL,  HIG LEVEL DIAGROM LLD: LOW LEVEL DEGINE  .. AWS , VPC, ...... BUILD SHETT: FULL DETIALS OF IP NO.. ALL PIN TO PIN UAT: USER ACCEPTANCEY TEST ORT: OPERATION REDINESS TEST SING OFF : REMAINING AMOUT COLLECT CLOSE ARCHITECTURE: AWS CERTIFICATION: Jayandra Patil AWS .............. AWS sysops bluprint

43-Dev-git cmds

43-Dev-git cmds Harsha Veerapalli... .git clone https://github.com/username/repository  git clone https://github.com/NAVEENMJ/1 git status .git init .git status ... getting red cloure  ( a.txt ) .git add file.txt or  (git add .) .git push .git push -u origin master .................. .git branch ---list of branches .git checkout -b branch ...Creaing branches .git merge branch ... presnt in master then merge.. ................................... .git status .git init .git status ... getting red cloure  ( a.txt ) .git add file.txt .git status .... getting green cloure  ( new file: a.txt) [if multipull files in folder use git add .] .git commit -m "COMMIT-1" .. Hear COMMIT-1 Means giving name in genralli changed  name given .git log ......changes ...times.. modifi that file a.txt...... .git status .git add . .git status .git commit -m "COMMIT-2" .cls .git log ..........i want go before comited version....