curve icon indicating copy to clipboard operation
curve copied to clipboard

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

Open xu-chaojie opened this issue 2 years ago • 4 comments
trafficstars

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.

xu-chaojie avatar Jun 26 '23 08:06 xu-chaojie

请问有更详细的说明嘛? 我现在注意到 https://github.com/opencurve/curve/blob/9d48ce967a613478b0603357a80c812dc55a7d38/src/mds/topology/topology.cpp#L553-L554 以及 https://github.com/opencurve/curve/blob/9d48ce967a613478b0603357a80c812dc55a7d38/src/mds/topology/topology_stat.cpp#L39-L40 里面都有记录 chunkserver 级别的信息,在收到心跳消息的时候会进行更新

luooofan avatar Aug 05 '23 12:08 luooofan

@xu-chaojie

wuhongsong avatar Aug 07 '23 02:08 wuhongsong

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

xu-chaojie avatar Aug 07 '23 02:08 xu-chaojie

/assign

mikechengwei avatar Aug 15 '23 02:08 mikechengwei