pulsar-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peng...@apache.org
Subject [pulsar] branch master updated: [Issue 4422] Support pulsar scripts to work with bookkeeper (#4555)
Date Wed, 19 Jun 2019 03:11:33 GMT
This is an automated email from the ASF dual-hosted git repository.

penghui pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 34f1a58  [Issue 4422] Support pulsar scripts to work with bookkeeper (#4555)
34f1a58 is described below

commit 34f1a58b3b9f4c60d837701cecb2fac67a04a634
Author: Fangbin Sun <sunfangbin@gmail.com>
AuthorDate: Wed Jun 19 11:11:28 2019 +0800

    [Issue 4422] Support pulsar scripts to work with bookkeeper (#4555)
    
    Support pulsar scripts to work with bookkeeper
---
 bin/pulsar         | 2 ++
 conf/pulsar_env.sh | 5 +++++
 2 files changed, 7 insertions(+)

diff --git a/bin/pulsar b/bin/pulsar
index 9cd8911..ad7736a 100755
--- a/bin/pulsar
+++ b/bin/pulsar
@@ -293,6 +293,8 @@ if [ $COMMAND == "broker" ]; then
     exec $JAVA $OPTS $ASPECTJ_AGENT -Dpulsar.log.file=$PULSAR_LOG_FILE org.apache.pulsar.PulsarBrokerStarter
--broker-conf $PULSAR_BROKER_CONF $@
 elif [ $COMMAND == "bookie" ]; then
     PULSAR_LOG_FILE=${PULSAR_LOG_FILE:-"bookkeeper.log"}
+    # Pass BOOKIE_EXTRA_OPTS option defined in pulsar_env.sh
+    OPTS="$OPTS $BOOKIE_EXTRA_OPTS"
     exec $JAVA $OPTS -Dpulsar.log.file=$PULSAR_LOG_FILE org.apache.bookkeeper.proto.BookieServer
--conf $PULSAR_BOOKKEEPER_CONF $@
 elif [ $COMMAND == "zookeeper" ]; then
     PULSAR_LOG_FILE=${PULSAR_LOG_FILE:-"zookeeper.log"}
diff --git a/conf/pulsar_env.sh b/conf/pulsar_env.sh
index 36034b5..7428d1d 100755
--- a/conf/pulsar_env.sh
+++ b/conf/pulsar_env.sh
@@ -58,3 +58,8 @@ PULSAR_EXTRA_OPTS=${PULSAR_EXTRA_OPTS:-" -Dpulsar.allocator.exit_on_oom=true
-Di
 
 #Wait time before forcefully kill the pulser server instance, if the stop is not successful
 #PULSAR_STOP_TIMEOUT=
+
+# Set BOOKIE_EXTRA_OPTS option here to ensure that all pulsar scripts can work seamless with
bookkeeper
+
+# Extra options to be passed to the jvm
+BOOKIE_EXTRA_OPTS="${BOOKIE_EXTRA_OPTS} -Dio.netty.leakDetectionLevel=disabled -Dio.netty.recycler.maxCapacity.default=1000
-Dio.netty.recycler.linkCapacity=1024"
\ No newline at end of file


Mime
View raw message