Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Casey Bodley <cbodley@redhat.com>
- Loading branch information
Showing
3 changed files
with
60 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
=========== | ||
Compression | ||
=========== | ||
|
||
.. versionadded:: Kraken | ||
|
||
The Ceph Object Gateway supports server-side compression of uploaded objects, | ||
using any of Ceph's existing compression plugins. | ||
|
||
|
||
Configuration | ||
============= | ||
|
||
Compression can be enabled on a Zone as part of `Multisite Configuration`_:: | ||
|
||
$ radosgw-admin zone modify --rgw-zone=default --rgw-zonegroup=default --compression=<type> | ||
|
||
The compression ``type`` refers to the name of the compression plugin to use | ||
when writing new object data. Each compressed object remembers which plugin | ||
was used, so changing this setting does not hinder the ability to decompress | ||
existing objects, not does it force existing objects to be recompressed. | ||
|
||
This compression setting applies globally to all new objects uploaded, | ||
regardless of their bucket or user. Compression can be disabled by setting | ||
the ``type`` to an empty string or ``none``. | ||
|
||
.. note:: A ``default`` zone and zonegroup are created for you if you have | ||
not done any previous Multisite Configuration. | ||
|
||
|
||
Statistics | ||
========== | ||
|
||
While all existing commands and APIs continue to report object and bucket | ||
sizes based their uncompressed data, compression statistics for a given bucket | ||
are included in its `bucket stats`:: | ||
|
||
$ radosgw-admin bucket stats --bucket=<name> | ||
{ | ||
... | ||
"usage": { | ||
"rgw.main": { | ||
"size": 1075028, | ||
"size_actual": 1331200, | ||
"size_utilized": 592035, | ||
"size_kb": 1050, | ||
"size_kb_actual": 1300, | ||
"size_kb_utilized": 579, | ||
"num_objects": 104 | ||
} | ||
}, | ||
... | ||
} | ||
|
||
The ``size_utilized`` and ``size_kb_utilized`` fields represent the total | ||
size of compressed data, in bytes and kilobytes respectively. | ||
|
||
|
||
.. _`Multisite Configuration`: ../../multisite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters