forked from hpcugent/vsc-zk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
47 lines (34 loc) · 1.28 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
vsc-zkrsync uses zookeeper to distribute rsync across multiple nodes
when rsync ing (large) (shared) filesystem.
Large fraction of rsync calls is spend in agthering the required metadata,
and then performing the actual data synchronisation. Especially when dealing
with "incremental" rsync. Spreading the load over multiple processes can mean
a significant speed increase; although other bottlenecks, eg access to the
metadata, might show up.
The implementation uses zookeeper to coordinate the distribution of collecting
and sync the data across many processes and/or nodes.
= Zookeeper =
== Install zookeeper-server ==
A zookeeper server with proper ACLs to a base znode is required.
If none is available, installation can be performed as follows:
zkversion=3.4.5
basepath=/tmp/$USER # is not permanent
chmod 700 $basepath
mkdir -p $basepath/zk/server/data
cd $basepath/zk/server
# use another mirror if needed
wget http://apache.belnet.be/zookeeper/zookeeper-$zkversion/zookeeper-$zkversion.tar.gz
tar xzf zookeeper-$zkversion.tar.gz
rm -f zkServer.sh
cat > zkServer.sh <<EOF
#!/bin/bash
./zookeeper-$zkversion/bin/zkServer.sh \$@
EOF
chmod +x zkServer.sh
cat > zk.conf <<EOF
tickTime=2000
dataDir=$PWD/data
clientPort=2181
EOF
== start zookeeper-server ==
./zkServer.sh start $PWD/zk.conf