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

[Feature Request]: implement function healthcheck #36

Open
1 task done
aronchanisme opened this issue Jul 13, 2023 · 0 comments
Open
1 task done

[Feature Request]: implement function healthcheck #36

aronchanisme opened this issue Jul 13, 2023 · 0 comments
Assignees
Labels
function/healthcheck issues related to function 'healthcheck' priority/p0 priority p0 type/feature propose a new feature request
Milestone

Comments

@aronchanisme
Copy link
Collaborator

aronchanisme commented Jul 13, 2023

Is there an existing issue for the feature request?

  • I have checked the existing issues.

Feature Description

Use mo_ctl healthcheck to perform a health check on current machine where mo-service is running.

Feature Implementation

Some considerations

  1. check if mo-service is running
  2. check if important ports are listening, such as 6001/9876(debug-port)/...
  3. check if mo-watchdog is enabled
  4. check if disk usage where MO_PATH belongs to is healthy
  5. check if mo is functioning, such as sql can be executed works fine as expected
mo_ctl sql "create database if not exists health_check_tmp_db;use health_check_tmp_db; create table health_check_tmp_db.t1(id int); insert into health_check_tmp_db.t1 values(1); select 
* from health_check_tmp_db.t1; drop database if exists health_check_tmp_db;"
  1. ...

Output healthcheck report at last, such as

no        check_item                          result
-----------------------------------------------------------
1        mo-service is running                succeeded
2        mo ports listening                   succeeded
3        mo-watchdog enabled                  succeeded
4        data disk usage is healthy           succeeded
5        mo works fine                        failed

Additional information

none

@aronchanisme aronchanisme added priority/p0 priority p0 type/feature propose a new feature request labels Jul 13, 2023
@aronchanisme aronchanisme added this to the mo_ctl_v1.0 milestone Jul 13, 2023
@aronchanisme aronchanisme self-assigned this Jul 13, 2023
@aronchanisme aronchanisme added the function/healthcheck issues related to function 'healthcheck' label Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
function/healthcheck issues related to function 'healthcheck' priority/p0 priority p0 type/feature propose a new feature request
Projects
None yet
Development

No branches or pull requests

1 participant