Hi Istvan,

Upper-level applications may chunk data into smaller objects, typically 4M 
each, e.g. CephFS [1], RBD [2]. However, the max object size enforced by OSD is 
configurable by osd_max_object_size, which defaults to 128M.

So, as of my understanding, your 100MB file will typically be chunked into 
25x4MB objects, then each object will be chunked to 4x1MB + 2x1MB and stored on 
OSDs.

[1]: https://docs.ceph.com/en/latest/cephfs/file-layouts/#layout-fields
[2]: https://docs.ceph.com/en/latest/man/8/rbd/#cmdoption-rbd-object-size

Weiwen Hu

发件人: Szabo, Istvan (Agoda)<mailto:istvan.sz...@agoda.com>
发送时间: 2021年12月4日 5:09
收件人: Ceph Users<mailto:ceph-users@ceph.io>
主题: [ceph-users] How data is stored on EC?

Hi,

Just curious my math is correct or not.

There is 4:2EC
Ssd min alloc size 4kb, due to this the minimum file size that worth to store 
has to
be bigger than 16KB. Correct?

So if it is 10KB object, it will still be stored on 16kb +2 additional 4KB 
chunk so 24KB?

If the file is 100MB, it will be chunked to 4x25MB + 2x25MB and the chunks will 
be stored how? 25MBs or small 4KBs?

Istvan Szabo
Senior Infrastructure Engineer
---------------------------------------------------
Agoda Services Co., Ltd.
e: istvan.sz...@agoda.com<mailto:istvan.sz...@agoda.com>
---------------------------------------------------
_______________________________________________
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io

_______________________________________________
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io

Reply via email to