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

Azure Devops tutorial

 Azure Devops tutorial: web sit-  Projects - Home (azure.com) AZURE DEVOPS - Organization - Projects Under project- --------- Under Pipelines ---> Pipelines( CI ) -  Under Pipelines --->Releases( CD ) -  ------------------------------------------------------------------------------------------------------------------------- Azure Pipelines:--- Pipeline structure:- A pipeline is one or more stages that describe a CI/CD process. Stages are the major divisions in a pipeline. The stages "Build this app," "Run these tests," and "Deploy to preproduction" are good examples. A stage is one or more jobs, which are units of work assignable to the same machine. You can arrange both stages and jobs into dependency graphs. Examples include "Run this stage before that one" and "This job depends on the output of that job." A job is a linear series of steps. Steps can be tasks, scripts, or references to external templates. This hierarchy is refle...

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....

22.AWS-DynamoDB-APIGateway-Lambda

22.AWS-DynamoDB-APIGateway-Lambda ::: ,,..........22.AWS-DynamoDB-APIGateway-Lambda............... .Database: RDS DynamoDB ElastiCache Neptune Amazon Redshift ..................................................... DynamoDB::--- ........ RDS- strctured Database DynamoDB -Non-Structed - NoSl(Mango,Cassandra) for ex- bigboss naminee.. .SelectDynamoDB- createtable-table name(BookStore),number(bookid),-createe .EC2-Lambda-CreateFunction-Author from Scratch-Name,node.js8.10,role,-creatr function, -writecode(18.10)-save-Test-( Event name,create )- Test .i want this lambda and Dynamo DB link... .in Lambda-Functions- BluePrints- Search Mobile-select Mobile back end-Basci information( Name,Role,ExistinRole-give this role Dynamo DB acess-)  -createFunction- test- configre test event( event name-test )- writ whic data we want to dynamo db..in json(27.34)  -create- test- ---now this scripts run and data can write on DynamoDB By using ROle permisions wer r given, ...