This is an automated email from the ASF dual-hosted git repository.

mmerli 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 1ba7f72  [Issue 9622] Fix setting Bookie dbStorage_*CacheMaxSizeMb in 
pulsar-test-latest-version docker image (#9623)
1ba7f72 is described below

commit 1ba7f729fe1d1ae2dcd66840d59cc5176fc95c64
Author: Lari Hotari <[email protected]>
AuthorDate: Fri Feb 19 18:45:39 2021 +0200

    [Issue 9622] Fix setting Bookie dbStorage_*CacheMaxSizeMb in 
pulsar-test-latest-version docker image (#9623)
    
    Fixes #9622
---
 tests/docker-images/latest-version-image/conf/bookie.conf      | 2 +-
 tests/docker-images/latest-version-image/scripts/run-bookie.sh | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/tests/docker-images/latest-version-image/conf/bookie.conf 
b/tests/docker-images/latest-version-image/conf/bookie.conf
index f95e231..97d2c72 100644
--- a/tests/docker-images/latest-version-image/conf/bookie.conf
+++ b/tests/docker-images/latest-version-image/conf/bookie.conf
@@ -22,6 +22,6 @@ autostart=false
 redirect_stderr=true
 stdout_logfile=/var/log/pulsar/bookie.log
 directory=/pulsar
-environment=PULSAR_MEM="-Xmx128M 
-XX:MaxDirectMemorySize=512M",PULSAR_GC="-XX:+UseG1GC",dbStorage_writeCacheMaxSizeMb="16",dbStorage_readAheadCacheMaxSizeMb="16"
+environment=PULSAR_MEM="-Xmx128M 
-XX:MaxDirectMemorySize=512M",PULSAR_GC="-XX:+UseG1GC"
 command=/pulsar/bin/pulsar bookie
 user=pulsar
diff --git a/tests/docker-images/latest-version-image/scripts/run-bookie.sh 
b/tests/docker-images/latest-version-image/scripts/run-bookie.sh
index 6e57a12..64466eb 100755
--- a/tests/docker-images/latest-version-image/scripts/run-bookie.sh
+++ b/tests/docker-images/latest-version-image/scripts/run-bookie.sh
@@ -18,6 +18,10 @@
 # under the License.
 #
 
+# sets dbStorage_writeCacheMaxSizeMb and dbStorage_readAheadCacheMaxSizeMb if 
not already defined
+export dbStorage_writeCacheMaxSizeMb="${dbStorage_writeCacheMaxSizeMb:-16}"
+export 
dbStorage_readAheadCacheMaxSizeMb="${dbStorage_readAheadCacheMaxSizeMb:-16}"
+
 bin/apply-config-from-env.py conf/bookkeeper.conf && \
     bin/apply-config-from-env.py conf/pulsar_env.sh
 

Reply via email to