SlideShare a Scribd company logo
Tune Health-check Parameter to
Reduce App Down Time
Mr.Supachai Jaturaprom (Tum)
Pre-sales Engineer
CCIE#65006 (EI, DC written)
Email: supachai@vstecs.co.th
VSTECS (Thailand) Co.,Ltd.
1
NGINX Community Thailand.
Agenda:
2
• Application Health Checks Overview.
• Health Checks of NGINX.
• Tuning parameters of NGINX.
• Demo Live.
• Summary & Q&A.
[NGINX Webinar Forum] Tune health check parameter to reduce app down time slide
[NGINX Webinar Forum] Tune health check parameter to reduce app down time slide
What is Application Services.
5
Application Service Architectures Model of Code to Customer.
Health Check Importance?
https://pixabay.com
6
NGINX Load balancer work ?
7
https://www.nginx.com/blog/cloud-architectures/
Health Check in NGINX
8
• Passive Health-check
• Active Health-check
• Disable Health-check
Passive Health Checks.
9
Clients /
Web Browser
Internet
/ WAN
Reverse Proxy,
Load Balancer
& Web Server
Healthy
Healthy
Unhealthy
- Error 5xx.
- Error Connection refused.
- Timeout
Active Health Checks.
10
Clients /
Web Browser
Internet
/ WAN
Reverse Proxy,
Load Balancer
& Web Server
Healthy
Healthy
Unhealthy
Health check
Health check
Health check
Disable Health Checks.
11
Clients /
Web Browser
Internet
/ WAN
Reverse Proxy,
Load Balancer
& Web Server
Healthy always
Healthy always
Healthy always
https://docs.nginx.com/nginx/admin-guide/load-balancer/http-health-check/#passive-health-checks
12
Passive Health Checks – Tuning
• fail_timeout – Sets the time during which a number of failed attempts must happen for the server to
be marked unavailable, and also the time for which the server is marked unavailable (default is 10
seconds).
• max_fails – Sets the number of failed attempts that must occur during the fail_timeout period for
the server to be marked unavailable (default is 1 attempt).
https://docs.nginx.com/nginx/admin-guide/load-balancer/http-health-check/#passive-health-checks
13
Passive Health Checks – Tuning
Server Slow Start - Slow start allows an upstream server to gradually recover its weight
from zero to its nominal value after it has been recovered or became available
backup - marks the server as a backup server. It will be passed
requests when the primary servers are unavailable.
https://docs.nginx.com/nginx/admin-guide/load-balancer/http-health-check/#active-health-checks
14
Active Health Checks – Tuning
1. Adding health_check directive in the location.
Optionally you can specify another port for health checks.
https://docs.nginx.com/nginx/admin-guide/load-balancer/http-health-check/#active-health-checks
15
Active Health Checks – Tuning
2. In the upstream server group, define a shared memory zone.
Default for active health check parameter:
- Interval = 5 seconds
- Fails = 1
- Passes = 1
You can be overridden with parameters
Specifying the Requested URI
https://docs.nginx.com/nginx/admin-guide/load-balancer/http-health-check/#defining-custom-conditions
16
Active Health Checks – Tuning
Defining Custom Conditions
Example for Custom Conditions :
- Status code
- Header
- Body
https://docs.nginx.com/nginx/admin-guide/load-balancer/http-health-check/#defining-custom-conditions
17
Active Health Checks – Tuning
Defining Mandatory Health Checks
mandatory parameter requires every
newly added server to pass all configured
health checks before NGINX sends traffic
to it.
persistent parameter for health checks
can be marked as persistent, so that the
previous state is remembered when
reloading configuration.
18
Tuning for reduce users experiences.
- Maintenance Web Page.
server {
listen 8099;
…..
location / {
return 200 “Temporary Maintenance, Please try this page again.
}
…..
https://www.digitalocean.com/community/tutorials/how-to-configure-nginx-to-use-custom-error-pages-on-ubuntu-14-04
19
Tuning for reduce users experiences.
- NGINX Custom Error Pages.
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
. . .
error_page 404 /custom_404.html;
location = /custom_404.html {
root /usr/share/nginx/html;
internal;
}
error_page 500 502 503 504 /custom_50x.html;
location = /custom_50x.html {
root /usr/share/nginx/html;
internal;
}
Live Demo.
20
21
Summary NGINX Application Health Checks
• Passive Health Checks.
- NGINX OSS and NGINX Plus Support
• Active Health Checks.
- NGINX OSS add 3party module and NGINX Plus Support
• Addon reduce apps method
- NGINX health checks.
- Backup parameter.
- Customize error pages.
- Dynamic reload configuration via API.
Resources
Getting Started with NGINX Health Checks
• http://nginx.org/en/docs/
• https://docs.nginx.com/nginx/admin-guide/load-balancer
22
NGINX Community Thailand.
NGINX Plus Trial License
• https://www.nginx.com/free-trial-request

More Related Content

PDF
Automate NGINX with DevOps Tools
PDF
Development of a Cisco ACI device package for NGINX as a Load-Balancer
PPTX
Big ip f5 ltm load balancing methods
PDF
Cisco DevNet CREATE 2019 - NetBeez Network Performance API
PPTX
LTM essentials
PPTX
EMEA Airheads- ClearPass extensions and how they can help
PPTX
F5 Meetup presentation automation 2017
PPT
F5 link controller
Automate NGINX with DevOps Tools
Development of a Cisco ACI device package for NGINX as a Load-Balancer
Big ip f5 ltm load balancing methods
Cisco DevNet CREATE 2019 - NetBeez Network Performance API
LTM essentials
EMEA Airheads- ClearPass extensions and how they can help
F5 Meetup presentation automation 2017
F5 link controller

What's hot (20)

PPTX
NGINX Plus R20 Webinar EMEA
PPTX
[old] Network Performance Monitoring for DevOps and IT
PPTX
EMEA Airheads- ArubaOS - High availability with AP Fast Failover
PPTX
How to Adopt Infrastructure as Code
PPTX
EMEA Airheads - AP Discovery Logic and AP Deployment
PPTX
SOAP Monitoring
PPTX
Application Performance Monitoring (APM)
PDF
F5 BigIP LTM Initial, Build, Install and Licensing.
PPTX
Migrating from BIG-IP Deployment to NGINX ADC
PPTX
Site24x7 Plugins - Monitor your entire server stack
PPTX
Site24x7 Cloud Monitoring
PDF
How to Get Started With NGINX
PDF
Kubernetes Networking
PPTX
Site24x7 PHP Monitoring for DevOps
PDF
Virtual Flink Forward 2020: Testing production streaming applications - Gyul...
PPTX
Accélérez vos déploiements applicatifs avec NGINX Controller
PPTX
3 Ways to Automate App Deployments with NGINX
PPTX
Presentation of Performance Vision Version 3.3
PPTX
NGINX Controller: Configuration, Management, and Troubleshooting at Scale
PPTX
NGINX Plus R20 Webinar EMEA
[old] Network Performance Monitoring for DevOps and IT
EMEA Airheads- ArubaOS - High availability with AP Fast Failover
How to Adopt Infrastructure as Code
EMEA Airheads - AP Discovery Logic and AP Deployment
SOAP Monitoring
Application Performance Monitoring (APM)
F5 BigIP LTM Initial, Build, Install and Licensing.
Migrating from BIG-IP Deployment to NGINX ADC
Site24x7 Plugins - Monitor your entire server stack
Site24x7 Cloud Monitoring
How to Get Started With NGINX
Kubernetes Networking
Site24x7 PHP Monitoring for DevOps
Virtual Flink Forward 2020: Testing production streaming applications - Gyul...
Accélérez vos déploiements applicatifs avec NGINX Controller
3 Ways to Automate App Deployments with NGINX
Presentation of Performance Vision Version 3.3
NGINX Controller: Configuration, Management, and Troubleshooting at Scale
Ad

Similar to [NGINX Webinar Forum] Tune health check parameter to reduce app down time slide (20)

PPTX
NGINX: High Performance Load Balancing
PDF
tuning-nginx-for-high-performance-nick-shadrin.pdf
PPTX
Accelerating Your Web Application with NGINX
PDF
NGINX.conf 2016 - Fail in order to succeed ! Designing Microservices for fail...
PDF
ITB2019 NGINX Overview and Technical Aspects - Kevin Jones
PPTX
NGINX: High Performance Load Balancing
PPTX
NGINX Installation and Tuning
PPTX
What's New in NGINX Plus R7?
PPTX
Load Balancing and Scaling with NGINX
KEY
Nginx - Tips and Tricks.
PDF
NGINX Can Do That? Test Drive Your Config File!
PPTX
NGINX Basics and Best Practices Workshop
PPTX
Load Balancing Container with Nginx
PDF
NGINX: The Past, Present and Future of the Modern Web
PDF
ITB2017 - Nginx ppf intothebox_2017
PPTX
Analyzing NGINX Logs with Datadog
PDF
NGINX: Basics and Best Practices EMEA
PPTX
NGINX: Basics and Best Practices
PDF
Best Practices for Getting Started with NGINX Open Source
PPTX
Flawless Application Delivery with NGINX Plus
NGINX: High Performance Load Balancing
tuning-nginx-for-high-performance-nick-shadrin.pdf
Accelerating Your Web Application with NGINX
NGINX.conf 2016 - Fail in order to succeed ! Designing Microservices for fail...
ITB2019 NGINX Overview and Technical Aspects - Kevin Jones
NGINX: High Performance Load Balancing
NGINX Installation and Tuning
What's New in NGINX Plus R7?
Load Balancing and Scaling with NGINX
Nginx - Tips and Tricks.
NGINX Can Do That? Test Drive Your Config File!
NGINX Basics and Best Practices Workshop
Load Balancing Container with Nginx
NGINX: The Past, Present and Future of the Modern Web
ITB2017 - Nginx ppf intothebox_2017
Analyzing NGINX Logs with Datadog
NGINX: Basics and Best Practices EMEA
NGINX: Basics and Best Practices
Best Practices for Getting Started with NGINX Open Source
Flawless Application Delivery with NGINX Plus
Ad

Recently uploaded (20)

PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
sap open course for s4hana steps from ECC to s4
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Machine learning based COVID-19 study performance prediction
PDF
KodekX | Application Modernization Development
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Electronic commerce courselecture one. Pdf
PDF
Approach and Philosophy of On baking technology
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
Cloud computing and distributed systems.
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
Programs and apps: productivity, graphics, security and other tools
Network Security Unit 5.pdf for BCA BBA.
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Mobile App Security Testing_ A Comprehensive Guide.pdf
MYSQL Presentation for SQL database connectivity
Reach Out and Touch Someone: Haptics and Empathic Computing
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
sap open course for s4hana steps from ECC to s4
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
The AUB Centre for AI in Media Proposal.docx
Spectral efficient network and resource selection model in 5G networks
Machine learning based COVID-19 study performance prediction
KodekX | Application Modernization Development
Understanding_Digital_Forensics_Presentation.pptx
Electronic commerce courselecture one. Pdf
Approach and Philosophy of On baking technology
Building Integrated photovoltaic BIPV_UPV.pdf
Cloud computing and distributed systems.
Digital-Transformation-Roadmap-for-Companies.pptx
Programs and apps: productivity, graphics, security and other tools

[NGINX Webinar Forum] Tune health check parameter to reduce app down time slide