User Tools

Site Tools


ceph:howtos:bucket_compression

[HOWTO] Enable compression

Documentation
Name: [HOWTO] Enable compression
Description: HOWTO Enable compression on ceph
Modification date :17/06/2019
Owner:dodger@ciberterminal.net
Notify changes to:Owner
Tags: ceph, object storage

Information

Compression is not enabled at bucket level!!
Compression is enabled at placement level!!!
Take care!

Pre-Requirements

  • Knowledge of ceph management
  • Understand of rados

Instructions

WIP

ceph@avmlp-osgw-001 ~ $ sudo radosgw-admin zone placement list
[
    {
        "key": "default-placement",
        "val": {
            "index_pool": "default.rgw.buckets.index",
            "storage_classes": {
                "STANDARD": {
                    "data_pool": "default.rgw.buckets.data"
                }
            },
            "data_extra_pool": "default.rgw.buckets.non-ec",
            "index_type": 0
        }
    }
]
ceph@avmlp-osgw-001 ~ $ 
ceph@avmlp-osgw-001 ~ $ 
ceph@avmlp-osgw-001 ~ $ sudo radosgw-admin zone placement modify \
>       --rgw-zone default \
>       --placement-id default-placement \
>       --storage-class STANDARD \
>       --compression zlib
ceph@avmlp-osgw-001 ~ $ sudo radosgw-admin zone list --detail
{
    "default_info": "7f1c991d-daae-4c8d-87a2-56b86c98bf03",
    "zones": [
        "default"
    ]
}
ceph@avmlp-osgw-001 ~ $ sudo radosgw-admin zone placement list
[
    {
        "key": "default-placement",
        "val": {
            "index_pool": "default.rgw.buckets.index",
            "storage_classes": {
                "STANDARD": {
                    "data_pool": "default.rgw.buckets.data",
                    "compression_type": "zlib"
                }
            },
            "data_extra_pool": "default.rgw.buckets.non-ec",
            "index_type": 0
        }
    }
]

External documentation

ceph/howtos/bucket_compression.txt · Last modified: 2019/07/18 09:17 (external edit)