Skip to content

Commit 71ba624

Browse files
authored
Enable local sessions in ZK when readonly mode is enabled (#655)
1 parent 9730ba5 commit 71ba624

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

charts/pulsar/templates/zookeeper-configmap.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,9 @@ data:
4242
PULSAR_PREFIX_serverCnxnFactory: org.apache.zookeeper.server.NIOServerCnxnFactory
4343
serverCnxnFactory: org.apache.zookeeper.server.NIOServerCnxnFactory
4444
{{- end }}
45+
{{- if .Values.pulsar_metadata.metadataStoreAllowReadOnlyOperations }}
46+
PULSAR_PREFIX_localSessionsEnabled: "true"
47+
PULSAR_PREFIX_localSessionsUpgradingEnabled: "true"
48+
{{- end }}
4549
{{ toYaml .Values.zookeeper.configData | indent 2 }}
4650
{{- end }}

charts/pulsar/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,6 +1025,7 @@ pulsar_metadata:
10251025

10261026
## Allow read-only operations on the metadata store when the metadata store is not available.
10271027
## This is useful when you want to continue serving requests even if the metadata store is not fully available with quorum.
1028+
## NOTICE: This mode is not recommended for production use and no tests exist to validate the behavior.
10281029
metadataStoreAllowReadOnlyOperations: false
10291030

10301031
## The session timeout for the metadata store in milliseconds.

0 commit comments

Comments
 (0)