Remove PULSAR_PREFIX for k8s yaml and helm values file (#6671)
*Motivation* In versions older than 2.5.0, PULSAR_PREFIX is used for appending settings that don't exist in existing configuration files. *Modifications* Remove `PULSAR_PREFIX` for backward compatibility
This commit is contained in:
parent
6a2d9a1091
commit
cbc1c68e91
@ -17,7 +17,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
{{- $ensembleSize := .Values.broker.configData.PULSAR_PREFIX_managedLedgerDefaultEnsembleSize }}
|
{{- $ensembleSize := .Values.broker.configData.managedLedgerDefaultEnsembleSize }}
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@ -183,11 +183,11 @@ bookkeeper:
|
|||||||
configData:
|
configData:
|
||||||
BOOKIE_MEM: "\"-Xms128m -Xmx256m -XX:MaxDirectMemorySize=128m -Dio.netty.leakDetectionLevel=disabled -Dio.netty.recycler.linkCapacity=1024 -XX:+ParallelRefProcEnabled -XX:+UnlockExperimentalVMOptions -XX:+AggressiveOpts -XX:+DoEscapeAnalysis -XX:ParallelGCThreads=32 -XX:ConcGCThreads=32 -XX:G1NewSizePercent=50 -XX:+DisableExplicitGC -XX:-ResizePLAB -XX:+ExitOnOutOfMemoryError -XX:+PerfDisableSharedMem\""
|
BOOKIE_MEM: "\"-Xms128m -Xmx256m -XX:MaxDirectMemorySize=128m -Dio.netty.leakDetectionLevel=disabled -Dio.netty.recycler.linkCapacity=1024 -XX:+ParallelRefProcEnabled -XX:+UnlockExperimentalVMOptions -XX:+AggressiveOpts -XX:+DoEscapeAnalysis -XX:ParallelGCThreads=32 -XX:ConcGCThreads=32 -XX:G1NewSizePercent=50 -XX:+DisableExplicitGC -XX:-ResizePLAB -XX:+ExitOnOutOfMemoryError -XX:+PerfDisableSharedMem\""
|
||||||
BOOKIE_GC: "\"-XX:+UseG1GC -XX:MaxGCPauseMillis=10\""
|
BOOKIE_GC: "\"-XX:+UseG1GC -XX:MaxGCPauseMillis=10\""
|
||||||
PULSAR_PREFIX_dbStorage_writeCacheMaxSizeMb: "32"
|
dbStorage_writeCacheMaxSizeMb: "32"
|
||||||
PULSAR_PREFIX_dbStorage_readAheadCacheMaxSizeMb: "32"
|
dbStorage_readAheadCacheMaxSizeMb: "32"
|
||||||
PULSAR_PREFIX_journalMaxSizeMB: "2048"
|
journalMaxSizeMB: "2048"
|
||||||
PULSAR_PREFIX_statsProviderClass: org.apache.bookkeeper.stats.prometheus.PrometheusMetricsProvider
|
statsProviderClass: org.apache.bookkeeper.stats.prometheus.PrometheusMetricsProvider
|
||||||
PULSAR_PREFIX_useHostNameAsBookieID: "true"
|
useHostNameAsBookieID: "true"
|
||||||
## Bookkeeper configmap
|
## Bookkeeper configmap
|
||||||
## templates/bookkeeper-service.yaml
|
## templates/bookkeeper-service.yaml
|
||||||
##
|
##
|
||||||
@ -227,11 +227,11 @@ broker:
|
|||||||
configData:
|
configData:
|
||||||
PULSAR_MEM: "\"-Xms128m -Xmx256m -XX:MaxDirectMemorySize=128m -Dio.netty.leakDetectionLevel=disabled -Dio.netty.recycler.linkCapacity=1024 -XX:+ParallelRefProcEnabled -XX:+UnlockExperimentalVMOptions -XX:+AggressiveOpts -XX:+DoEscapeAnalysis -XX:ParallelGCThreads=32 -XX:ConcGCThreads=32 -XX:G1NewSizePercent=50 -XX:+DisableExplicitGC -XX:-ResizePLAB -XX:+ExitOnOutOfMemoryError -XX:+PerfDisableSharedMem\""
|
PULSAR_MEM: "\"-Xms128m -Xmx256m -XX:MaxDirectMemorySize=128m -Dio.netty.leakDetectionLevel=disabled -Dio.netty.recycler.linkCapacity=1024 -XX:+ParallelRefProcEnabled -XX:+UnlockExperimentalVMOptions -XX:+AggressiveOpts -XX:+DoEscapeAnalysis -XX:ParallelGCThreads=32 -XX:ConcGCThreads=32 -XX:G1NewSizePercent=50 -XX:+DisableExplicitGC -XX:-ResizePLAB -XX:+ExitOnOutOfMemoryError -XX:+PerfDisableSharedMem\""
|
||||||
PULSAR_GC: "\"-XX:+UseG1GC -XX:MaxGCPauseMillis=10\""
|
PULSAR_GC: "\"-XX:+UseG1GC -XX:MaxGCPauseMillis=10\""
|
||||||
PULSAR_PREFIX_managedLedgerDefaultEnsembleSize: "2"
|
managedLedgerDefaultEnsembleSize: "2"
|
||||||
PULSAR_PREFIX_managedLedgerDefaultWriteQuorum: "2"
|
managedLedgerDefaultWriteQuorum: "2"
|
||||||
PULSAR_PREFIX_managedLedgerDefaultAckQuorum: "2"
|
managedLedgerDefaultAckQuorum: "2"
|
||||||
PULSAR_PREFIX_deduplicationEnabled: "false"
|
deduplicationEnabled: "false"
|
||||||
PULSAR_PREFIX_exposeTopicLevelMetricsInPrometheus: "true"
|
exposeTopicLevelMetricsInPrometheus: "true"
|
||||||
## Broker service
|
## Broker service
|
||||||
## templates/broker-service.yaml
|
## templates/broker-service.yaml
|
||||||
##
|
##
|
||||||
|
|||||||
@ -183,12 +183,12 @@ bookkeeper:
|
|||||||
configData:
|
configData:
|
||||||
BOOKIE_MEM: "\"-Xms15g -Xmx15g -XX:MaxDirectMemorySize=15g -Dio.netty.leakDetectionLevel=disabled -Dio.netty.recycler.linkCapacity=1024 -XX:+ParallelRefProcEnabled -XX:+UnlockExperimentalVMOptions -XX:+AggressiveOpts -XX:+DoEscapeAnalysis -XX:ParallelGCThreads=32 -XX:ConcGCThreads=32 -XX:G1NewSizePercent=50 -XX:+DisableExplicitGC -XX:-ResizePLAB -XX:+ExitOnOutOfMemoryError -XX:+PerfDisableSharedMem -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCApplicationStoppedTime -XX:+PrintHeapAtGC -verbosegc -XX:G1LogLevel=finest\""
|
BOOKIE_MEM: "\"-Xms15g -Xmx15g -XX:MaxDirectMemorySize=15g -Dio.netty.leakDetectionLevel=disabled -Dio.netty.recycler.linkCapacity=1024 -XX:+ParallelRefProcEnabled -XX:+UnlockExperimentalVMOptions -XX:+AggressiveOpts -XX:+DoEscapeAnalysis -XX:ParallelGCThreads=32 -XX:ConcGCThreads=32 -XX:G1NewSizePercent=50 -XX:+DisableExplicitGC -XX:-ResizePLAB -XX:+ExitOnOutOfMemoryError -XX:+PerfDisableSharedMem -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCApplicationStoppedTime -XX:+PrintHeapAtGC -verbosegc -XX:G1LogLevel=finest\""
|
||||||
BOOKIE_GC: "\"-XX:+UseG1GC -XX:MaxGCPauseMillis=10\""
|
BOOKIE_GC: "\"-XX:+UseG1GC -XX:MaxGCPauseMillis=10\""
|
||||||
PULSAR_PREFIX_dbStorage_writeCacheMaxSizeMb: "2048"
|
dbStorage_writeCacheMaxSizeMb: "2048"
|
||||||
PULSAR_PREFIX_dbStorage_readAheadCacheMaxSizeMb: "2048"
|
dbStorage_readAheadCacheMaxSizeMb: "2048"
|
||||||
PULSAR_PREFIX_dbStorage_rocksDB_blockCacheSize: "268435456"
|
dbStorage_rocksDB_blockCacheSize: "268435456"
|
||||||
PULSAR_PREFIX_journalMaxSizeMB: "2048"
|
journalMaxSizeMB: "2048"
|
||||||
PULSAR_PREFIX_statsProviderClass: org.apache.bookkeeper.stats.prometheus.PrometheusMetricsProvider
|
statsProviderClass: org.apache.bookkeeper.stats.prometheus.PrometheusMetricsProvider
|
||||||
PULSAR_PREFIX_useHostNameAsBookieID: "true"
|
useHostNameAsBookieID: "true"
|
||||||
## Bookkeeper configmap
|
## Bookkeeper configmap
|
||||||
## templates/bookkeeper-service.yaml
|
## templates/bookkeeper-service.yaml
|
||||||
##
|
##
|
||||||
@ -228,11 +228,11 @@ broker:
|
|||||||
configData:
|
configData:
|
||||||
PULSAR_MEM: "\"-Xms15g -Xmx15g -XX:MaxDirectMemorySize=15g -Dio.netty.leakDetectionLevel=disabled -Dio.netty.recycler.linkCapacity=1024 -XX:+ParallelRefProcEnabled -XX:+UnlockExperimentalVMOptions -XX:+AggressiveOpts -XX:+DoEscapeAnalysis -XX:ParallelGCThreads=32 -XX:ConcGCThreads=32 -XX:G1NewSizePercent=50 -XX:+DisableExplicitGC -XX:-ResizePLAB -XX:+ExitOnOutOfMemoryError -XX:+PerfDisableSharedMem\""
|
PULSAR_MEM: "\"-Xms15g -Xmx15g -XX:MaxDirectMemorySize=15g -Dio.netty.leakDetectionLevel=disabled -Dio.netty.recycler.linkCapacity=1024 -XX:+ParallelRefProcEnabled -XX:+UnlockExperimentalVMOptions -XX:+AggressiveOpts -XX:+DoEscapeAnalysis -XX:ParallelGCThreads=32 -XX:ConcGCThreads=32 -XX:G1NewSizePercent=50 -XX:+DisableExplicitGC -XX:-ResizePLAB -XX:+ExitOnOutOfMemoryError -XX:+PerfDisableSharedMem\""
|
||||||
PULSAR_GC: "\"-XX:+UseG1GC -XX:MaxGCPauseMillis=10\""
|
PULSAR_GC: "\"-XX:+UseG1GC -XX:MaxGCPauseMillis=10\""
|
||||||
PULSAR_PREFIX_managedLedgerDefaultEnsembleSize: "3"
|
managedLedgerDefaultEnsembleSize: "3"
|
||||||
PULSAR_PREFIX_managedLedgerDefaultWriteQuorum: "3"
|
managedLedgerDefaultWriteQuorum: "3"
|
||||||
PULSAR_PREFIX_managedLedgerDefaultAckQuorum: "2"
|
managedLedgerDefaultAckQuorum: "2"
|
||||||
PULSAR_PREFIX_deduplicationEnabled: "false"
|
deduplicationEnabled: "false"
|
||||||
PULSAR_PREFIX_exposeTopicLevelMetricsInPrometheus: "true"
|
exposeTopicLevelMetricsInPrometheus: "true"
|
||||||
## Broker service
|
## Broker service
|
||||||
## templates/broker-service.yaml
|
## templates/broker-service.yaml
|
||||||
##
|
##
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user