Ask, do not meet the entry into force of solving Ceph v14.2.1 RGW enable compression

After deployment Ceph (14.2.1 or 14.2.2) + rgw cluster according to conventional methods, the command "radosgw-admin zone placement modify --rgw-zone = default --placement-id = default-placement --compression = zlib" enable zlib compression. After rebooting cluster and radosgw process, the test found that the object file is written in the bucket by "radosgw-admin bucket stats --bucket = bucket1", but the data is not compressed. From rgw logs did not look into the compression process.

In this case there are several environments.

Solutions are as follows:

1. export metadata of user1.

     radosgw-admin metadata get user:user1 > user.json

2. Modify the metadata

    vim user.json

    修改"default_storage_class":"STANDARD"

3. Import user.json

    radosgw-admin metadata put user:user1 < user.json

4. Restart radosgw

 

After testing zlib compression effect.

Note 1: Using this method, compressed into effect in the new bucket inside. If the object is put to its original bucket, compression does not take effect. Students can verify.

Guess you like

Origin www.cnblogs.com/hanfengzhe/p/11355141.html