Commit 5bb95572 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Disable compression for all intra-cluster imports/exports



Tests have shown that usually we're CPU-bound for intra-cluster
imports/exports. Disabling compression will help with this.

Some versions of OpenSSL, depending on the build options, also
compress transparently. This will need further work in Ganeti.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
parent 5d831182
......@@ -996,11 +996,8 @@ def TransferInstanceData(lu, feedback_fn, src_node, dest_node, dest_ip,
each transfer
"""
# Compress only if transfer is to another node
if src_node == dest_node:
compress = constants.IEC_NONE
else:
compress = constants.IEC_GZIP
# Disable compression for all moves as these are all within the same cluster
compress = constants.IEC_NONE
logging.debug("Source node %s, destination node %s, compression '%s'",
src_node, dest_node, compress)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment