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

[CurveBS] Add chunkserver-level statistics and allocation limits for the curvebs capacity statistics and allocation module #2559

Open
xu-chaojie opened this issue Jun 26, 2023 · 4 comments
Assignees
Labels
enhancement improve feature

Comments

@xu-chaojie
Copy link
Member

xu-chaojie commented Jun 26, 2023

The current curvebs capacity statistics only consider the overall capacity of the cluster. When the capacity of a single chunkserver is insufficient, the cluster may still be unavailable. Therefore, it is necessary to add the management of the capacity of a single chunkserver and limit the space allocation when the capacity of a single chunkserver is insufficient.

@luooofan
Copy link

luooofan commented Aug 5, 2023

请问有更详细的说明嘛?
我现在注意到

int TopologyImpl::UpdateChunkServerDiskStatus(const ChunkServerState &state,
ChunkServerIdType id) {

以及
void TopologyStatImpl::UpdateChunkServerStat(ChunkServerIdType csId,
const ChunkServerStat &stat) {

里面都有记录 chunkserver 级别的信息,在收到心跳消息的时候会进行更新

@wuhongsong
Copy link
Contributor

@xu-chaojie

@xu-chaojie
Copy link
Member Author

需要修改的是空间分配模块,空间分配需要考虑单个chunkserver的空间是否足够

@xu-chaojie xu-chaojie assigned luooofan and unassigned luooofan Aug 9, 2023
@mikechengwei
Copy link

/assign

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

No branches or pull requests

4 participants