To keep a status of all the public-facing endpoints/Services in Oracle Cloud Infrastructure (OCI) there are Monitoring Services provided by Oracle like Service Metrics, Metrics Explorer and more. One of them is Health Checks.
In this post, I am going to cover:
- Overview of Health Check Service
- Components of Health Check Services.
- Steps to configure Health Check
Overview Of Health Check Service
To keep the status of availability and performance of the public-facing services Oracle provides a service called Health Check. The OCI Health Checks service provides users with external monitoring over services like hosted websites, API endpoints, or externally facing load balancers. By using Health Checks, users are notified immediately for issues that may be faced by the customers like the unavailability of Services, Huge Load on a web server, etc.
General Use Cases of Health Checks in OCI environment are in Traffic Management services and Configuring Load Balancers on Web Servers.
Note: To know more about Traffic Management in OCI click here & to know more about SSL on Load Blanacer click here.
Components Of Health Check Services
1) Monitors: Monitors help you to monitor the health(availability & performance) of the public-facing end-points.
2) Vantage Points: These are the geographical locations from where the monitoring of services can be done (we specify Vantage Point while configuring Health Checks)
3) Protocols: The Health Checks service allows you to configure both HTTP and ping type monitors.
Steps To Configure Health Checks
Note: We need to create two instances inside a VCN (VM_instance_1 & VM_instance_2) and install apache server on the instances.
To know how to install apache server on instances click here.
1) Create a Load Balancer and add these Instances in Backend Sets.
2) Open the navigation menu. Under Solutions and Platform, go to Monitoring and click Health Checks.
3) Click Create Health Check and add the details:
- Health Check Name: Demo_Health_Check
- Compartment: K21cloudpoc
- Targets: VM_instance_1 & VM_instance_2
- Vantage Points: Google East US
- Request Type: Ping
- Protocol TCP
- Port: 80
- Timeout: 30 sec
- Interval: 60 sec
Note: We can add multiple targets to be monitored at a specific interval.
4) The health check is created with name (Demo_Health_Check)
5) Log-in to one of the Compute Instance, via its Public IP & Install Stress-ng
sudo yum install stress-ng
stress-ng –-all 2 –-timeout 5m
6) In the Health Check History we will see that the VM_instance_1 will become Unavailable.
Note: The Oracle OCI Health Checks service is limited to 1000 endpoint tests per account.
Conclusion
It is necessary to deliver a quality product and to monitor the services after handing it over to the end-users. In order to do so, Oracle provided a service called Health Checks for monitoring of public-facing services in the oracle environment. In this post, I have covered the Overview of Health Checks in OCI and the steps to configure health checks.
I hope it will help you understand the whole concept.
Health Check in OCI is also covered in our OCI Architect Professional [1z0-997] Certification training. To know more about this training click here.
Related/Further Readings
- Oracle Cloud Infrastructure 2019 Architect Professional | 1Z0-997
- [1Z0-997]Oracle Cloud Infrastructure (OCI) Architect Professional Certification: Step by Step Hands-On Lab
- Traffic Management in OCI
- Web Application Firewall in OCI
- KMS in OCI
Next Task For You
In our OCI Architect Professional [1Z0-997] Certification training, we cover Health Check in Design for Hybrid Cloud Architecture module. In this module, we also cover Virtual Cloud Network, Load Balancer, Fast Connect, VPN Connect, DNS Traffic Management Steering Policies, DNS Zone Management.
For the list of Hands-On guide click here.
The post Health Checks In Oracle Cloud (OCI) appeared first on Oracle Trainings.