summaryrefslogtreecommitdiffstats
path: root/sbin/hastd/hast.conf.5
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2011-03-06 23:09:33 +0000
committerpjd <pjd@FreeBSD.org>2011-03-06 23:09:33 +0000
commit337b50efa895f3694fae9eeac35a3abd16181e75 (patch)
tree89777d06274aeb1f7f06b2647305a98d160268c9 /sbin/hastd/hast.conf.5
parent8697092f0ef00a8c8c15e4c26574e6fbfce848a2 (diff)
downloadFreeBSD-src-337b50efa895f3694fae9eeac35a3abd16181e75.zip
FreeBSD-src-337b50efa895f3694fae9eeac35a3abd16181e75.tar.gz
Allow to compress on-the-wire data using two algorithms:
- HOLE - it simply turns all-zero blocks into few bytes header; it is extremely fast, so it is turned on by default; it is mostly intended to speed up initial synchronization where we expect many zeros; - LZF - very fast algorithm by Marc Alexander Lehmann, which shows very decent compression ratio and has BSD license. MFC after: 2 weeks
Diffstat (limited to 'sbin/hastd/hast.conf.5')
-rw-r--r--sbin/hastd/hast.conf.520
1 files changed, 20 insertions, 0 deletions
diff --git a/sbin/hastd/hast.conf.5 b/sbin/hastd/hast.conf.5
index 3fd2fc6..f4d0754 100644
--- a/sbin/hastd/hast.conf.5
+++ b/sbin/hastd/hast.conf.5
@@ -60,6 +60,7 @@ control <addr>
listen <addr>
replication <mode>
checksum <algorithm>
+compression <algorithm>
timeout <seconds>
exec <path>
@@ -79,6 +80,7 @@ resource <name> {
# Resource section
replication <mode>
checksum <algorithm>
+ compression <algorithm>
name <name>
local <path>
timeout <seconds>
@@ -215,6 +217,24 @@ CRC32 checksum will be calculated.
.It Ic sha256
SHA256 checksum will be calculated.
.El
+.It Ic compression Aq algorithm
+.Pp
+Compression algorithm should be one of the following:
+.Bl -tag -width ".Ic none"
+.It Ic none
+Data send over the network will not be compressed.
+.It Ic hole
+Only blocks that contain all zeros will be compressed.
+This is very useful for initial synchronization where potentially many blocks
+are still all zeros.
+There should be no measurable performance overhead when this algorithm is being
+used.
+This is the default setting.
+.It Ic lzf
+The LZF algorithm by Marc Alexander Lehmann will be used to compress the data
+send over the network.
+LZF is very fast, general purpose compression algorithm.
+.El
.It Ic timeout Aq seconds
.Pp
Connection timeout in seconds.
OpenPOWER on IntegriCloud