Problem:
How to configure a health check for the Spotfire Server when using a load balancer.
Solution:
When using a load balancer in front of a cluster of Spotfire Servers, a health check URL can be set up to show the status of the servers.
Procedure:
Results
- If the health check URL hasn't been enabled, the HTTP code 404 is returned.
- If the server is up and running, the HTTP code 200 is returned along with the text RUNNING.
- If the server is currently starting or stopping, the HTTP code 503 is returned along with the text STARTING or STOPPING.
- If the server is currently in the draining phase of a graceful shutdown, the HTTP code 200 is returned along with the text DRAINING. When the draining phase completes, the server stops.
Note: You can configure this HTTP code 200 by setting
status-controller.status-on-draining
.
Comments
0 comments
Article is closed for comments.