Compression modes of messenger v2 protocol
The messenger v2 protocol supports the compression feature. Compression is not enabled by default.
Compressing and encrypting the same message is not recommended as the level of security of
messages between peers is reduced. If encryption is enabled, a request to enable compression is
ignored until the configuration option ms_osd_compress_mode is set to
true.
It supports two compression modes:
-
force-
In multi-availability zones deployment, compresses replication messages between OSDs saves latency.
-
In the public cloud, minimizes message size, thereby reducing network costs to cloud provider.
-
Instances on public clouds with NVMe provides low network bandwidth relative to the device bandwidth. Does not provide protection against a malicious man-in-the-middle attack.
-
-
none-
The messages are transmitted without compression.
-
To ensure that compression of the message is enabled, run the debug_ms command
and check some debug entries for connections. Also, you can run the ceph config get
command to get details about the different configuration options for the network messages.