Chapter 6. Back-end compression


Compress an edge cluster of a smaller capacity with the compression options.

BlueStore allows two types of compression:

  • BlueStore level of compression for general workload.
  • Ceph Object Gateway level of compression for S3 workload.

For more information on compression algorithms, see Pool values.

You need to enable compression and ensure that no crashes occur on the cluster upon enabling compression on pools.

You can enable compression on the pools of the edge cluster in the following ways:

  • Enable supported compression algorithms such as snappy, zlib, and zstd and enable supported compression modes such as None, passive, aggressive, and force with the following commands:

    Syntax

    ceph osd pool set POOL_NAME compression_algorithm ALGORITHM
    ceph osd pool set POOL_NAME compression_mode MODE

  • Enable various compression ratios with the following commands:

    Syntax

    ceph osd pool set POOL_NAME compression_required_ratio RATIO
    ceph osd pool set POOL_NAME compression_min_blob_size SIZE
    ceph osd pool set POOL_NAME compression_max_blob_size SIZE

  • Create three pools and enable different compressions on those pools to ensure that no IO stoppage occurs on the pools.
  • Create a fourth pool without any compression created on the pools. Write the same amount of data as pools with compression. The pool with compression uses less RAW space that the pool without compression.

To verify these algorithms are set, use ceph osd pool get POOL_NAME OPTION_NAME command.

To unset these algorithms, use ceph osd pool unset POOL_NAME OPTION_NAME command with the appropriate options.

Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.