Azure Virtual Machine Scale Sets (VMSS) with a Managed Image or Shared Image Gallery version.
-
Integrate with Azure Load Balancer or Application Gateway and health probes.
-
Configure autoscale rules (CPU, memory via guest metrics, custom metrics) & upgrade policy (rolling/automatic).
Types of VMSS
- Uniform Orchestration Mode
* All instances are identical.
* Managed as a single unit (great for stateless web apps).
* managed scale set && metrix
* disered state
* image upgrde
* group of instance
* front-end appications
- Flexible Orchestration Mode
* Can mix VM sizes and configurations.
* Ideal for microservices or stateful apps.
* different sizes
* backend services like databases
* autopatch os
VMSS
-
image or custumize image
-
loadblancer
* network loadblancer
* application gateway loadblancer
-
vmss
-
DNS
Task:
-
create vm and install apache2
-
create image with name apache-web-server & stress
Tomcat appache installation guide:
- create vmss
test VMSS by execute below cmds
#!/bin/bash
sudo apt update && sudo apt install stress -y
while true; do
stress --cpu 8 --io 4 --vm 2 --vm-bytes 128M --timeout 60s -v
sleep 30s
done
