The next step is to create a health probe for the load balancer. The health probe is used for the load balancer to monitor the status of the VM. The probe will dynamically add or remove VMs from the load balancer rotation, based on the response to the health checks that are performed by the health probe.
To create a health probe, take the following steps:
- Again, open the Load Balancer resource.
- Under Settings, select Health probes, and then select Add:
Creating a new health probe
- Add the following values:
- Name: PacktHealthProbe.
- Protocol: HTTP.
- Port: 80.
- Path: /.
- Interval: 15—this is the number of seconds between probe attempts.
- Unhealthy threshold: 2—this value is the number of consecutive probe failures that occur before a VM is considered unhealthy.
- Click OK:
Health probe settings