Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Per-component status check CLI for server admins #1634

Open
4 tasks
achimnol opened this issue Oct 19, 2023 · 1 comment · May be fixed by #2105, #2332, #2333 or #2334
Open
4 tasks

Per-component status check CLI for server admins #1634

achimnol opened this issue Oct 19, 2023 · 1 comment · May be fixed by #2105, #2332, #2333 or #2334
Assignees
Labels
type:feature Add new features urgency:3 Must be finished within a certain time frame.
Milestone

Comments

@achimnol
Copy link
Member

achimnol commented Oct 19, 2023

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

  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
@achimnol achimnol added type:feature Add new features urgency:3 Must be finished within a certain time frame. labels Oct 19, 2023
@achimnol achimnol added this to the 24.03 milestone Oct 19, 2023
@jopemachine
Copy link
Member

jopemachine commented Jan 30, 2024

I think ./backend.ai mgr status should be implemented in #2105.
And maybe other commands should be implemented in other PRs.

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