Skip to content

Commit

Permalink
Merge pull request #1694 from Shopify/heap-opts-for-build
Browse files Browse the repository at this point in the history
testfix: set KAFKA_HEAP_OPTS for zk and kafka
  • Loading branch information
dnwe committed May 7, 2020
2 parents be80e8f + a9ef2f7 commit 8b91b87
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vagrant/boot_cluster.sh
Expand Up @@ -8,13 +8,17 @@ while ! nc -q 1 localhost 2185 </dev/null; do echo "Waiting"; sleep 1; done
while ! nc -q 1 localhost 9095 </dev/null; do echo "Waiting"; sleep 1; done

# Launch and wait for Zookeeper
KAFKA_HEAP_OPTS="-Xmx192m -Dzookeeper.admin.enableServer=false"
export KAFKA_HEAP_OPTS
for i in 1 2 3 4 5; do
KAFKA_PORT=`expr $i + 9090`
cd ${KAFKA_INSTALL_ROOT}/kafka-${KAFKA_PORT} && bin/zookeeper-server-start.sh -daemon config/zookeeper.properties
done
while ! nc -q 1 localhost 21805 </dev/null; do echo "Waiting"; sleep 1; done

# Launch and wait for Kafka
KAFKA_HEAP_OPTS="-Xmx320m"
export KAFKA_HEAP_OPTS
for i in 1 2 3 4 5; do
KAFKA_PORT=`expr $i + 9090`
cd ${KAFKA_INSTALL_ROOT}/kafka-${KAFKA_PORT} && bash bin/kafka-server-start.sh -daemon config/server.properties
Expand Down

0 comments on commit 8b91b87

Please sign in to comment.