Skip to content

Per-component status check CLI for server admins #1634

Open
@achimnol

Description

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

  • backend.ai mgr 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:
image

Tasks

Preview Give feedback
  1. comp:agent size:L type:feature urgency:3
    jopemachine
  2. comp:storage-proxy size:L type:feature urgency:3
    jopemachine
  3. comp:webserver size:L type:feature urgency:3
    jopemachine
  4. area:docs comp:cli comp:common comp:manager size:XL type:feature urgency:3
    jopemachine

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

urgency:3Must be finished within a certain time frame.

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions