Azure VMSS Concepts
- VMSS Orchestration Modes:
- ScaleSetVMs: VMs can be added based only on the scaleset configuration.
- VM: Virtual Machines outside Scaleset can be explicitly added to the VMSS
- Scaling:
- Scaling VMs can be done by using the metrics collected by Azure Monitor.
- For app servers and web servers we use Percentage CPU
Azure Load Balancer
- Components:
- Frontend IP Configuration: This is ip address of load balancer and this can be public/private (Internet facing/internal) ip address
- Backend pool: This is group of vms in a vmss that can serve your application
- Health Probes: this is a probe (check) to determine the health status of vm in vmss.
- Loadbalancer rules: This is used to define how incoming traffic is distributed to all instances in be pool.
- Inbound NAT Rule: This rule forwards incoming traffic sent to frontend ip address and port combination to specific virtual machine. By default an ssh rule is created to login into vm.
- Load Balancer SKUs:
- Standard Load Balancer:
- Supports upto 1000 instances
- BE Pool: Any virtual machines or vmss in a single virtual network
- Health Probes: TCP, HTTP, HTTPS
- Availability Zones: Supported
- Secure by default: All the inbound flows unless allowed by network security group are closed
- Basic Load Balancer
- supports upto 300 instances
- BE Pool: Virtual machines in single availability set or virtual machine scale set
- Health Probes: TCP, HTTP
- Availability Zones: Not Supported
- Open by default. Network security group is optional
Azure VMSS Steps
- Create a VM Image
- Creating a Azure VMSS with the VM Image created in step 1
- Add the load balancer details
- login into vm instance and execute the following command
stress --cpu 8 --io 4 --vm 2 --vm-bytes 128M --timeout 100m -v
- Watch out for vmss instances for the next 5 minutes
Note:
Like this:
Like Loading...