Skip to content

Instantly share code, notes, and snippets.

@abola
Last active December 21, 2015 08:41
Show Gist options
  • Save abola/2edb3c3fe3380e6cd819 to your computer and use it in GitHub Desktop.
Save abola/2edb3c3fe3380e6cd819 to your computer and use it in GitHub Desktop.
wget http://apache.stu.edu.tw/zookeeper/zookeeper-3.4.7/zookeeper-3.4.7.tar.gz
tar zxvf zookeeper-3.4.7.tar.gz
cd zookeeper-3.4.7/
cp conf/zoo_sample.cfg conf/zoo.cfg
echo "server.1=10.240.0.2:2888:3888" >> conf/zoo.cfg
echo "server.2=10.240.0.3:2888:3888" >> conf/zoo.cfg
echo "server.3=10.240.0.4:2888:3888" >> conf/zoo.cfg
bin/zkServer.sh start
# 3x Kafka+Zookeeper 2cpu + 7.5G ram @ Google Compute Engine with 1K package size
# 500000 records sent, 43554.006969 records/sec (42.53 MB/sec), 1280.78 ms avg latency, 1830.00 ms max latency, 1389 ms 50th, 1773 ms 95th, 1807 ms 99th, 1827 ms 99.9th.
# 3x Kafka+Zookeeper 2cpu + 7.5G ram @ Google Compute Engine with 1K package size ( --replication-factor 2)
# 500000 records sent, 44686.745911 records/sec (43.64 MB/sec), 1225.48 ms avg latency, 1968.00 ms max latency, 1115 ms 50th, 1775 ms 95th, 1930 ms 99th, 1965 ms 99.9th.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment