Virtual Machine Scale Set (VMSS)
- Azure VMSS Refer Here
- Create a vmss quick start Refer Here
- Now change the size to 3
- Manually changing the numbers is not a good option in many cases, so lets make it scale according to some rules.
- When cpu average > 80 increase 1 vm
- When cpu average < 50 decrease 1 vm
- Minimum number of instances = 1
- Maximum number of instance = 5
- To test scaling we have installed a tool called as stress
- Exercise: Try autoscaling based on above rules and verify scale out and scale in