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

[curve/toos-v2]: add check-chunkserver #2353

Closed
Cyber-SiKu opened this issue Mar 30, 2023 · 6 comments
Closed

[curve/toos-v2]: add check-chunkserver #2353

Cyber-SiKu opened this issue Mar 30, 2023 · 6 comments

Comments

@Cyber-SiKu
Copy link
Contributor

Is your feature request related to a problem? (你需要的功能是否与某个问题有关?)

we'd like to support bs check chunkserver command in curve tool

  • The implementation of the old tool is here:
    int CopysetCheck::CheckChunkServer() {
    int res = 0;
    if (FLAGS_chunkserverId > 0) {
    res = core_->CheckCopysetsOnChunkServer(FLAGS_chunkserverId);
    } else {
    res = core_->CheckCopysetsOnChunkServer(FLAGS_chunkserverAddr);
    }
    if (res == 0) {
    std::cout << "ChunkServer is healthy!" << std::endl;
    } else {
    std::cout << "ChunkServer is not healthy!" << std::endl;
    }
    PrintStatistic();
    if (FLAGS_detail) {
    PrintDetail();
    }
    return res;
    }
  • The old command input and out put:
curve_ops_tool check chunkserver -chunkserverId=1

-------
output:
ChunkServer is healthy!
total copysets: ***, unhealthy copysets: 0, unhealthy_ratio: 0%

Refer to tool develop guide to get start, and paste the result of the command in pr.

Build compilation environment:https://github.com/opencurve/curve/blob/master/docs/cn/build_and_run.md

Describe the solution you'd like (描述你期望的解决方法)

Add subcommand clinet to curve bs list.

Describe alternatives you've considered (描述你想到的折衷方案)

Additional context/screenshots (更多上下文/截图)

@Cyber-SiKu
Copy link
Contributor Author

Someone has done some work in this pr, you can refer to it.

@zhanghuidinah
Copy link
Member

@lng2020
Copy link
Contributor

lng2020 commented Apr 19, 2023

hi! I would like to work on this issue, please assign it to me. @Cyber-SiKu

@wuhongsong
Copy link
Contributor

@lng2020 keep on?

@lng2020
Copy link
Contributor

lng2020 commented May 22, 2023

@lng2020 keep on?

I have discussed many details with Cyber-SiKu, and I will open a PR immediately.

@caoxianfei1
Copy link
Contributor

@Cyber-SiKu @lng2020

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

No branches or pull requests

6 participants