]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: document bluestore compression settings 16747/head
authorKefu Chai <kchai@redhat.com>
Wed, 2 Aug 2017 07:35:29 +0000 (15:35 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 2 Aug 2017 08:42:08 +0000 (16:42 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
doc/rados/configuration/bluestore-config-ref.rst [new file with mode: 0644]
doc/rados/configuration/index.rst
doc/rados/operations/crush-map.rst
doc/rados/operations/health-checks.rst
doc/rados/operations/pools.rst
doc/release-notes.rst

diff --git a/doc/rados/configuration/bluestore-config-ref.rst b/doc/rados/configuration/bluestore-config-ref.rst
new file mode 100644 (file)
index 0000000..254f99a
--- /dev/null
@@ -0,0 +1,93 @@
+==========================
+BlueStore Config Reference
+==========================
+
+Inline Compression
+==================
+
+BlueStore supports inline compression using snappy, zlib, or LZ4. Please note,
+the lz4 compression plugin is not distributed in the official release.
+
+``bluestore compression algorithm``
+
+:Description: The default compressor to use (if any) if the per-pool property
+              ``compression_algorithm`` is not set. Note that zstd is *not*
+              recommended for bluestore due to high CPU overhead when
+              compressing small amounts of data.
+:Type: String
+:Required: No
+:Valid Settings: ``lz4``, ``snappy``, ``zlib``, ``zstd``
+:Default: ``snappy``
+
+``bluestore compression mode``
+
+:Description: The default policy for using compression if the per-pool property
+              ``compression_mode`` is not set. ``none`` means never use
+              compression.  ``passive`` means use compression when
+              `clients hint`_ that data is compressible.  ``aggressive`` means
+              use compression unless clients hint that data is not compressible.
+              ``force`` means use compression under all circumstances even if
+              the clients hint that the data is not compressible.
+:Type: String
+:Required: No
+:Valid Settings: ``none``, ``passive``, ``aggressive``, ``force``
+:Default: ``none``
+
+``bluestore compression min blob size``
+
+:Description: Chunks smaller than this are never compressed.
+              The per-pool property ``compression_min_blob_size`` overrides
+              this setting.
+
+:Type: Unsigned Integer
+:Required: No
+:Default: 0
+
+``bluestore compression min blob size hdd``
+
+:Description: Default value of ``bluestore compression min blob size``
+              for rotational media.
+
+:Type: Unsigned Integer
+:Required: No
+:Default: 128K
+
+``bluestore compression min blob size ssd``
+
+:Description: Default value of ``bluestore compression min blob size``
+              for non-rotational (solid state) media.
+
+:Type: Unsigned Integer
+:Required: No
+:Default: 8K
+
+``bluestore compression max blob size``
+
+:Description: Chunks larger than this are broken into smaller blobs sizing
+              ``bluestore compression max blob size`` before being compressed.
+              The per-pool property ``compression_max_blob_size`` overrides
+              this setting.
+
+:Type: Unsigned Integer
+:Required: No
+:Default: 0
+
+``bluestore compression max blob size hdd``
+
+:Description: Default value of ``bluestore compression max blob size``
+              for rotational media.
+
+:Type: Unsigned Integer
+:Required: No
+:Default: 512K
+
+``bluestore compression max blob size ssd``
+
+:Description: Default value of ``bluestore compression max blob size``
+              for non-rotational (solid state) media.
+
+:Type: Unsigned Integer
+:Required: No
+:Default: 64K
+
+.. _clients hint: ../../api/librados/#rados_set_alloc_hint
index b609b155e4b8d7751595a2cbfb490135b0e7f54a..264141c1047cca0605086b3aa36015090a1f15a6 100644 (file)
@@ -51,7 +51,8 @@ To optimize the performance of your cluster, refer to the following:
    mon-lookup-dns
    Heartbeat Settings <mon-osd-interaction>
    OSD Settings <osd-config-ref>
-   Filestore Settings <filestore-config-ref>
+   BlueStore Settings <bluestore-config-ref>
+   FileStore Settings <filestore-config-ref>
    Journal Settings <journal-ref>
    Pool, PG & CRUSH Settings <pool-pg-config-ref.rst>
    Messaging Settings <ms-ref>
index 8d748a0d107a6be1e970551aae4310474cdd1faa..05fa4ff691aef6a21590b1e796f3c7286224c31b 100644 (file)
@@ -236,7 +236,7 @@ A pool can then be changed to use the new rule with::
 
 Device classes are implemented by creating a "shadow" CRUSH hierarchy
 for each device class in use that contains only devices of that class.
-Rules can then distributed data over the shadow hierarchy.  One nice
+Rules can then distribute data over the shadow hierarchy.  One nice
 thing about this approach is that it is fully backward compatible with
 old Ceph clients.  You can view the CRUSH hierarchy with shadow items
 with::
index 68106352e1749e522c6e7f9e67ccf57c2e6a34e1..467227c1294dcf6e7b2d9baefcb30dffce5cb4a0 100644 (file)
@@ -220,7 +220,7 @@ or delete some existing data to reduce utilization.
 
 
 Data health (pools & placement groups)
-------------------------------
+--------------------------------------
 
 PG_AVAILABILITY
 _______________
index ce0ae9095240240d121473de1b31a393450cb39b..70155937cad0d81ded21f7e88137b69440a9df10 100644 (file)
@@ -275,6 +275,37 @@ To set a value to a pool, execute the following::
        
 You may set values for the following keys: 
 
+.. _compression_algorithm:
+
+``compression_algorithm``
+:Description: Sets inline compression algorithm to use for underlying BlueStore.
+              This setting overrides the `global setting <rados/configuration/bluestore-config-ref/#inline-compression>`_ of ``bluestore compression algorithm``.
+
+:Type: String
+:Valid Settings: ``lz4``, ``snappy``, ``zlib``, ``zstd``
+
+``compression_mode``
+
+:Description: Sets the policy for the inline compression algorithm for underlying BlueStore.
+              This setting overrides the `global setting <rados/configuration/bluestore-config-ref/#inline-compression>`_ of ``bluestore compression mode``.
+
+:Type: String
+:Valid Settings: ``none``, ``passive``, ``aggressive``, ``force``
+
+``compression_min_blob_size``
+
+:Description: Chunks smaller than this are never compressed.
+              This setting overrides the `global setting <rados/configuration/bluestore-config-ref/#inline-compression>`_ of ``bluestore compression min blob *``.
+
+:Type: Unsigned Integer
+
+``compression_max_blob_size``
+
+:Description: Chunks larger than this are broken into smaller blobs sizing
+              ``compression_max_blob_size`` before being compressed.
+
+:Type: Unsigned Integer
+
 .. _size:
 
 ``size``
index 99513bc8394f71c3423723cd5d41f0fe948b893e..c81a55864a0499bb4e30f4b1c784f6f26a504954 100644 (file)
@@ -30,8 +30,9 @@ Major Changes from Kraken
     and features. FIXME DOCS
   * BlueStore supports *full data and metadata checksums* of all
     data stored by Ceph.
-  * BlueStore supports inline compression using zlib, snappy, or LZ4.  (Ceph also supports zstd for `RGW compression <../man/8/radosgw-admin/#options>`_
-    but zstd is not recommended for BlueStore for performance reasons.)  FIXME DOCS
+  * BlueStore supports `inline compression <../rados/configuration/bluestore-config-ref/#inline-compression>`_
+    using zlib, snappy, or LZ4.  (Ceph also supports zstd for `RGW compression <../man/8/radosgw-admin/#options>`_
+    but zstd is not recommended for BlueStore for performance reasons.)
   * *Erasure coded* pools now have `full support for overwrites <../rados/operations/erasure-code/#erasure-coding-with-overwrites>`_,
     allowing them to be used with RBD and CephFS.
   * There is a new daemon, *ceph-mgr*, which is a required part of any