Skip to content

Per-component status check CLI for server admins #1634

Open
@achimnol

Description

@achimnol

Let's add a pretty table-like display for console:

  • backend.ai mgr status* As a part of feat(BA-75): Introduce Raftify and refactor DistributedGlobalTimer with Raft #2105, let's include the raft node status of the current manager node and other manager nodes (e.g., leader/follower, raft term, etc.)

  • Show information like ps -ef by reading the PID file & systemctl status

  • backend.ai ag status* Show information like ps -ef by reading the PID file & systemctl status

  • backend.ai strg status (we need to apply backend.ai-cli to storage-proxy)* Show information like ps -ef by reading the PID file & systemctl status

  • backend.ai web status (we need to apply backend.ai-cli to web)* Show information like ps -ef by reading the PID file & systemctl status

Once done, we could wrap these commands as a shell script like show_status.sh which configures the activation of virtualenvs, etc. and execute the above commands.

Note that systemd configuration is only done in production setups, reading the result of systemctl status should be done as an opt-in feature.If we combine sd_notify to report the server startup/terminating process to systemd, it will be able to provide a little bit richer information.

Example:https://github.com/lablup/backend.ai/assets/555156/d8d51d0f-2316-456b-a7bd-adcad4f8cf8c

### Tasks
- [ ] https://github.com/lablup/backend.ai/pull/2332
- [ ] https://github.com/lablup/backend.ai/pull/2333
- [ ] https://github.com/lablup/backend.ai/pull/2334
- [ ] https://github.com/lablup/backend.ai/pull/2105

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions