Enabling Object Storage
This section describes how to use the compression algorithm in object storage scenarios.
- Adding a placement policy for the compression algorithm:
1radosgw-admin zone placement add --rgw-zone=default --placement-id=compress-placement --index_pool=default.rgw.buckets.index-compress --data_pool=default.rgw.buckets.data-compress --data_extra_pool=default.rgw.buckets.non-ec-compress --compression=glz
- Modifying the compression algorithm level:
The compression algorithm supports two levels: 0 and 1. Level 0 indicates the high-performance mode, whereas level 1 indicates the high-compression mode. By default, compressor_glz_level is set to 0 on Ceph. If the high-performance mode is used, retain the default settings. If the high-compression mode is used, change the value to 1 as follows:
- Edit the ceph.conf file.
1vi /etc/ceph/ceph.conf - Change the value of compressor_glz_level.
1compressor_glz_level = 1

- Restart the OSD node for the modification to take effect.
1systemctl restart ceph-osd.target
- Edit the ceph.conf file.
Parent topic: Enabling the Compression Algorithm