opencurve / curve

Curve is a sandbox project hosted by the CNCF Foundation. It's cloud-native, high-performance, and easy to operate. Curve is an open-source distributed storage system for block and shared file storage.
https://opencurve.io
Apache License 2.0
2.32k stars 521 forks source link

[curvefs]tools-v2: Add the command of statistical cluster size information #2532

Open Cyber-SiKu opened 1 year ago

Cyber-SiKu commented 1 year ago

Registration procedure

Step 1. Add a comment when you sign up.The purpose of comments is for us to understand you and determine whether you have the basic ability to complete this issue.

Step 2. Use WeChat to add the Curve community assistant "Curve" as a WeChat friend, tell your GitHub ID, and send the Issue link of your choice. The assistant will invite you to communicate with the mentor by WeChat.

Step 3. In order to better complete each development task, the mentor will select the developer who best matches the issue based on everyone's comment on GitHub and communication status by WeChat. If you are not selected, please select another issue.

Tips

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

It is necessary to query more accurate cluster scale information, such as total capacity, used capacity, number of files, number of inodes, metadata information., and cluster running time. You can not complete these problems in one pr, but do a function separately and submit them in stages.

The capacity of the s3 file system can be represented by the quota of the bucket, if not represented as unlimited.

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

The following is for reference only

$ curve fs list space
total used free fileNum inodeNum
1.0G 1.0G 0.0G 1000 1000
$ curve fs status cluster

......

create time run time
2021-01-01 00:00:00 1y2m3d4h5m6s

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

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

WWWindrunner commented 1 year ago

Hi, can I try this issue?

Cyber-SiKu commented 1 year ago

Hi, can I try this issue?

welcome!

WWWindrunner commented 1 year ago

Thank you for your reply!By the way, I am new to Curve, and I would like to ask if this function has been implemented in tool-v1 ? For example,

image
Cyber-SiKu commented 11 months ago

@WWWindrunner No, this function is brand new, mainly to obtain some fs (data metadata, etc.) usage and other related information.

Cyber-SiKu commented 11 months ago

image You can add our assistant via WeChat

lim-yoona commented 10 months ago

Hello, I am a graduate student in the University of the Chinese Academy of Sciences. My major is cyberspace security. I am familiar with programming languages such as Golang, Java and C++. I am interested in technology fields such as distributed systems, cloud native and storage systems. I am good at technology stacks such as Golang server development, storage system principles, etc. I have read tools-v2/docs/zh/develop.md and docs/cn/curve工具.md, understanding the structure and development method of the curve tool. I think I can complete this issue.