Open nascentcore-eng opened 1 year ago
I want to add some comments:
... get all agent runtime information (like deployed modules, and agent version)
For deployed modules, this should be available from the API Server's SQLite DB, by combo module
table's module ID & node_agent
table's node_name, and agent_id records. By combo, I mean to get all combinations of records in 2 sets. For example:
module table
id:1 ...
id:2 ...
node_agent table, this is used to combine module ID and node_agents
node_name:ec2-1 agent_pod_id:pod_1234, agent_id:xxxx, state:online
node_name:ec2-2 ... state: terminated
By combining module ID and node agents, this produces a list of module instances that should be checked in module_instance table
id:1 node_name:ec2-1 agent_id:...,
By querying module_instance table, we can get their state
For agent version, I don't know what is this. Could you elaborate?
deployed log and status (every agent) need to be displayed in the output
Is this the actions performed on API Server and agents?
Is your feature request related to a problem? Please describe. There are a lot of limitations of using starship CLI
Describe the solution you'd like Starship CLI just query API Server and API Server delegate the query to postgres
Describe alternatives you've considered Starship CLI directly query exposed postgres server.
Additional context None