Exam4Training

How can you update the Consul agent without any downtime to include the new health check?

A service supporting a grocery store is using Consul for service discovery. Multiple instances of the inventory service have been registered with a health check to ensure each individual instance is healthy. You’ve decided that you want to add a second health check to the service, so you update the agent configuration file. However, the new health check has not been registered with Consul.

How can you update the Consul agent without any downtime to include the new health check?
A . restart to the Consul service
B. perform a consul reload
C. log into the Consul UI and add the health check manually
D. instruct the Consul servers to update all of the Consul client configurations

Answer: B

Explanation:

You can update service definitions without any downtime by changing the service definition file and sending a SIGHUP to the agent or running consul reload. Alternatively, you can use the HTTP API to add, remove, and modify services dynamically.

https://learn.hashicorp.com/tutorials/consul/get-started-service-discovery#update-services

Exit mobile version