Browse Source

Run zookeeper datadir on tmpfs during testing

We may be experiencing iops performance issues resulting in unreliable
tests due to broken zookeeper connections. Run zookeeper under tmpfs to
mitigate this problem.

Other alternatives include using a system like eatmydata to make write
return early.

Change-Id: I8fbb3e243ae5974d243036b06c6b481872efffb3
changes/66/612766/1
Clark Boylan 3 years ago
parent
commit
9e2beeef5e
  1. 5
      tools/test-setup.sh

5
tools/test-setup.sh

@ -7,6 +7,11 @@
# This setup needs to be run as a user that can run sudo.
TOOLSDIR=$(dirname $0)
# Config Zookeeper to run on tmpfs
sudo service zookeeper stop
DATADIR=$(sed -n -e 's/^dataDir=//p' /etc/zookeeper/conf/zoo.cfg)
sudo mount -t tmpfs -o nodev,nosuid,size=500M none $DATADIR
# Be sure mysql and zookeeper are started.
sudo service mysql start
sudo service postgresql start

Loading…
Cancel
Save