Enabling Object Storage
This section describes how to use the compression algorithm in object storage scenarios.
Adding a compression algorithm placement policy
1 | radosgw-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 |
Changing 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 required, retain the default settings. If the high-compression mode is required, change the value to 1 as follows.
- Open the ceph.conf file.
1vi /etc/ceph/ceph.conf - Press i to enter the insert mode and change the value of compressor_glz_level.
1compressor_glz_level = 1

- Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
- Restart the OSD for the modification to take effect.
1systemctl restart ceph-osd.target
Parent topic: Enabling the Compression Algorithm