summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devstack/plugin.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/devstack/plugin.sh b/devstack/plugin.sh
index b5d15f9..8cacc8f 100644
--- a/devstack/plugin.sh
+++ b/devstack/plugin.sh
@@ -651,6 +651,14 @@ EOF
651 mkdir -p $HOME/.cache/openstack/ 651 mkdir -p $HOME/.cache/openstack/
652} 652}
653 653
654function nodepool_zk_on_tmpfs {
655 local datadir
656 datadir=$(sed -n -e 's/^dataDir=//p' /etc/zookeeper/conf/zoo.cfg)
657 sudo service zookeeper stop
658 sudo mount -t tmpfs -o nodev,nosuid,size=500M none $datadir
659 sudo service zookeeper start
660}
661
654# Create configs 662# Create configs
655# Setup custom flavor 663# Setup custom flavor
656function configure_nodepool { 664function configure_nodepool {
@@ -694,6 +702,9 @@ function start_nodepool {
694 export STATSD_PORT=8125 702 export STATSD_PORT=8125
695 run_process statsd "/usr/bin/socat -u udp-recv:$STATSD_PORT -" 703 run_process statsd "/usr/bin/socat -u udp-recv:$STATSD_PORT -"
696 704
705 # Restart nodepool's zk on a tmpfs
706 nodepool_zk_on_tmpfs
707
697 # Ensure our configuration is valid. 708 # Ensure our configuration is valid.
698 $NODEPOOL_INSTALL/bin/nodepool -c $NODEPOOL_CONFIG config-validate 709 $NODEPOOL_INSTALL/bin/nodepool -c $NODEPOOL_CONFIG config-validate
699 710