apache / apache/cloudstack

more realistic disk size for Ceph primary storage

オープン
#13,289 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
component:ceph type:improvement
主要言語
Java
スター
3.1k
フォーク
1.4k
平均マージ
6日 19時間
マージ済み PR(30日)
32

説明

### The required feature described as a wish

On Cloudstack 4.22.1.0 I created a RBD primary storage on a RADOS pool named "cloudstack-ssd".
Ceph reports that the pool used percentage is 5.17 and the maximum available capacity is 2.6 TiB.
```
# ceph df
--- RAW STORAGE ---
CLASS SIZE AVAIL USED RAW USED %RAW USED
hdd 33 TiB 31 TiB 1.3 TiB 1.3 TiB 3.89
ssd 8.7 TiB 8.3 TiB 447 GiB 447 GiB 5.00
TOTAL 41 TiB 40 TiB 1.7 TiB 1.7 TiB 4.12

--- POOLS ---
POOL ID PGS STORED OBJECTS USED %USED MAX AVAIL
cloudstack-ssd 4 32 169 GiB 48.15k 438 GiB 5.17 2.6 TiB
cloudstack-hdd 5 32 427 GiB 111.94k 1.2 TiB 3.96 9.7 TiB
```

But Cloudstack reports that "cloudstack-ssd" primary storage size is 42476.68 GB (about 41 TiB), which is Ceph total raw capacity.
Image

I think that the value reported by Cloudstack is misleading.
It's not possible to compute the exact pool size because the raw space is contended between different pools.
But a better option could be that for a RBD storage Cloudstack displays the pool maximum available size and the used percentage (2.6 TiB and 5.17% in my configuration) instead of the total raw Ceph size (41 TiB in my configuration).

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、CloudStack の RBD プライマリストレージにおける容量レポートの箇所と、Ceph プールの値をどのように取得しているかを確認してください。現在の合計 raw 容量を、ここで説明されているプールの MAX AVAIL および USED の値と比較します。プライマリストレージの表示がプール固有の容量と使用量を反映し、共有 raw 容量を誤って表現しないようになれば作業完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
cloud, distributed-systems, infrastructure
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
48/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。