Fortinet How to Configure
How to configure FortiADC HTTPS application health checks
Configure FortiADC to send GET /healthz to two HTTPS backends and require both HTTP 200 and the qcs-ready response. Then verify that an unready member leaves new-session rotation and becomes eligible again after recovery.
QuantumCrafters Studio · Guide 5 of 12
Traffic follows readiness
- HTTPS readiness probe
- New application connection
-
Clientapp.example.test
-
FortiADCVIP 10.42.10.50:443
-
Server A10.42.20.11:443 Eligible
-
Server B10.42.20.12:443 Eligible
GET /healthz → 200 + qcs-ready
How application readiness controls server selection
A TCP check can establish that the listener accepts a connection. An HTTPS readiness check also tests whether the application returns the expected HTTP result over TLS. FortiADC polls each real server and uses health to determine which members can receive new connections. The load-balancing algorithm selects among eligible members. Fortinet application health checks · Fortinet backend server selection
This guide follows FortiADC 8.0.2 and reuses the isolated, re-encrypted Layer 7 deployment from guide 2. The diagram illustrates expected behavior. Appliance validation is pending.
Prepare the pilot
| Item | Isolated lab setup |
|---|---|
| Application name and virtual server | app.example.test at 10.42.10.50:443 |
| HTTPS real server pool | pool-app-https |
| Member A | 10.42.20.11:443 |
| Member B | 10.42.20.12:443 |
| Readiness path | GET /healthz on each member |
| Healthy response | HTTP 200 with the body qcs-ready |
| Unready response | HTTP 503 with a body such as qcs-unavailable |
| Application control | An approved normal HTTPS request, such as GET /, with a known successful result and a corresponding backend log entry |
Use an existing test VIP, a static pool, and two independently controllable application instances. Confirm each member can still serve TLS on port 443 during the planned readiness test. Agree how the application owner will make only member A's readiness handler return 503 and restore it, keeping B healthy. Limit the pilot to approved test traffic and confirm B can serve it alone. A small readiness response keeps the check quick. Avoid placing secrets or dependency details in that response.
Confirm FortiADC can reach each member on TCP 443 and record the replies, the VIP-to-pool mapping, member overrides, Action On Health Check Down, and the active TLS profiles. Save the current configuration via System → Settings → Backup & Restore in the approved restricted location. Fortinet configuration backup · Fortinet real server pool settings
1. Create the HTTPS readiness check
Go to Shared Resources → Health Check → Create New, then add a dedicated check for the application.
| FortiADC setting | Lab value |
|---|---|
| Name | hc-app-https |
| Type | HTTPS |
| Destination Address | Leave the override unset to use the real server address for each member. |
| Port | 443 |
| Method Type | HTTP GET |
| Send String | /healthz |
| Receive String | qcs-ready |
| Status Code | 200 |
| Match Type | Match All |
| HTTP CONNECT | No CONNECT for this direct-to-member setup. |
| Interval | 10 seconds |
| Timeout | 3 seconds |
| Down Retry | 2 |
| Up Retry | 2 |
Save the object. For Match All, the status and expected string must both match. HTTP GET retrieves the response body, which lets FortiADC evaluate the qcs-ready marker. Set Interval above Timeout and use measured response times and recovery goals to tune the settings before production. Measure detection and recovery in the actual build by observing successive monitor results and the member state. Elapsed time depends on when the failure begins and how the probes complete. FortiADC 8.0.2 health check settings
For name-based hosting, check the HTTPS monitor's Hostname field if the application selects a virtual host by name. Confirm the ADC-sourced request reaches the intended backend address and /healthz handler, using application or TLS logs or an approved scoped capture. Record the HTTP Host and TLS SNI separately when the backend requires them. If the health check cannot select the intended host, work with the application owner on an approved readiness listener and validate the probe again. Keep the existing backend data-path TLS policy in place. Fortinet Hostname example · Fortinet real server SSL profiles
2. Apply the monitor to the real server pool
- Go to Server Load Balance → Real Server Pool → Real Server Pool and edit the pilot pool,
pool-app-https. Enable Health Check and selecthc-app-httpsunder Health Check List. If the pool has other required checks, retain them and review Health Check Relationship. Use AND when each selected check is required for readiness. With OR, another passing check can keep a member eligible even if/healthzfails. - Open each member's settings. Confirm Port is
443and enable Health Check Inherit to use the pool monitor. If approved member overrides are required, confirm the effective health check on each member explicitly. - Save the members and pool. Confirm the Layer 7 HTTPS VIP still references
pool-app-httpswith the expected real server SSL profile. Record the configured Action On Health Check Down, which governs what happens to active connections when the member fails. This test measures new-session selection.
Fortinet documents separate options to leave existing connections until timeout, reject them, or silently drop them. Validate the behavior required by your application in a separate controlled test before changing that setting. Fortinet pool health check and member inheritance options
3. Establish a healthy baseline
In Shared Resources → Health Check → Health Check Monitor, select hc-app-https, enter member A's address and run the monitor. Repeat with member B. Confirm both produce the expected result and that the pool shows each member available. You can check a member's health record in FortiView → Server Load Balance → Virtual Server by opening its pool and then the member's Health tab. Fortinet Health Check Monitor · Fortinet member health view
From the authorized lab client, run a normal application request against the VIP. This example uses the approved lab CA and pins the hostname to the test VIP while preserving hostname and certificate checks. Use a new client process and no saved session cookie for each sample, and record any applicable persistence settings. Correlate the selected member using ADC and application logs. Confirm the application request arrives on the expected backend HTTPS connection. Fortinet backend connection and persistence behavior
curl --resolve app.example.test:443:10.42.10.50 \
--cacert ./front-lab-ca.pem --fail --silent --show-error \
https://app.example.test/
The monitor result establishes application readiness for member selection. Keep the guide 2 backend certificate and trust verification as a separate acceptance gate, using the actual ADC-to-server TLS profile and fresh backend handshakes where needed.
4. Prove member withdrawal and recovery
| Test | Expected evidence |
|---|---|
| Make only A unready | A's TLS listener remains available while /healthz returns 503. The monitor fails the status and readiness marker check. |
| Observe the down transition | After the effective Down Retry criterion is met, A becomes unavailable for new sessions. B remains healthy. Record the state and time in FortiView and confirm the failed readiness responses in A's logs. |
| Send a fresh application request through the VIP | The approved transaction succeeds and reaches B. Correlate it with the selected member in the logs. A still receives monitor probes during the test. |
| Restore A | A again returns 200 with qcs-ready. After the Up Retry criterion is met, A becomes eligible again. Verify that new sessions can reach A under the configured algorithm and persistence settings. |
If you also want to prove the string check, repeat the isolated A test after restoring both members, using HTTP 200 with the body qcs-unavailable. Match All should still fail. Restore the healthy response and verify pool health at the end. Fortinet HTTP status and response matching · Fortinet pool handling after failed retries
Troubleshoot the first failing step
| Observation | What to verify |
|---|---|
| Both members fail the probe | Start with the ADC source, member address and route, return path, TCP 443, and backend TLS handshake. Confirm the monitor targets each member address and review any destination override. |
| The request reaches the wrong virtual host or returns a redirect | Check the path, HTTP Host, TLS SNI when required, and the selected virtual host. Confirm the backend serves /healthz directly to the probe. |
The probe returns 200 and the member is down |
Examine the response body and expected marker, Match Type, other required checks, and member overrides. |
A returns 503 and still receives new sessions |
Verify the effective monitor and pool reference, the Down Retry result, and any OR policy. Use logs to distinguish probes, new sessions and existing connections. |
| Pool health is green but the application fails through the VIP | Check the separately configured VIP route, backend TLS profile, application access and ordinary transaction. Validate those paths using the client and backend evidence. |
Roll back and save evidence
Restore the original readiness behavior on both members and verify their state. If the new policy introduced a problem, restore the previous approved pool monitor and member overrides. Recheck the prior VIP mapping, both members, and a normal application request through the VIP. Retain the settings, timestamped probe results, member state changes and application log correlation with sensitive details redacted.
