TOSIT-IO / tdp-server

REST API for tdp-lib orchestration
2 stars 2 forks source link

Identify services that are running #116

Open PaulFarault opened 1 year ago

PaulFarault commented 1 year ago

It's important to be able to get services status. At first running / stopped could be enough.

mdrutel commented 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 ?

rpignolet commented 1 year ago

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.