Open PaulFarault opened 1 year ago
It will be a little bit complicated to use a playbook to get service status : its execution is asynchronous. Then, the playbook list is in the tdp component.
We could use a playbook, but the task would be in 2 steps :
Another question : when would we request the status ?
What is the problem, for the tdp-server
API, to wait the asynchronous call ? A client call the /status
endpoint, the server launch ansible status playbook, wait result, then return the response to the client. This is the purpose of the await
keyword in asynchronous world.
If we store the status in the database, we will create a monitoring system inside tdp-server
. tdp-server
goal is to manage tdp_vars
modification and cluster restart, it is not design to monitor service status. We need to talk about it before we go any further.
It's important to be able to get services status. At first running / stopped could be enough.