Change default statusFilePath to /pulsar/logs/status (#489)

* Change default statusFilePath to /pulsar/logs/status

* Write OK to statusFilePath
This commit is contained in:
Lari Hotari 2024-04-15 05:41:17 -07:00 committed by GitHub
parent 59f6f74fd7
commit bd8bc633df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View File

@ -41,7 +41,7 @@ data:
exposeTopicLevelMetricsInPrometheus: "true" exposeTopicLevelMetricsInPrometheus: "true"
numHttpServerThreads: "8" numHttpServerThreads: "8"
zooKeeperSessionTimeoutMillis: "30000" zooKeeperSessionTimeoutMillis: "30000"
statusFilePath: "{{ template "pulsar.home" . }}/status" statusFilePath: "{{ template "pulsar.home" . }}/logs/status"
# Tiered storage settings # Tiered storage settings
{{- if .Values.broker.storageOffload.driver }} {{- if .Values.broker.storageOffload.driver }}

View File

@ -225,7 +225,7 @@ spec:
{{- end }} {{- end }}
bin/apply-config-from-env.py conf/broker.conf; bin/apply-config-from-env.py conf/broker.conf;
bin/gen-yml-from-env.py conf/functions_worker.yml; bin/gen-yml-from-env.py conf/functions_worker.yml;
echo "OK" > status; echo "OK" > "${statusFilePath:-status}";
{{- include "pulsar.broker.zookeeper.tls.settings" . | nindent 10 }} {{- include "pulsar.broker.zookeeper.tls.settings" . | nindent 10 }}
bin/pulsar zookeeper-shell -server {{ template "pulsar.zookeeper.connect" . }} get {{ template "pulsar.broker.znode" . }}; bin/pulsar zookeeper-shell -server {{ template "pulsar.zookeeper.connect" . }} get {{ template "pulsar.broker.znode" . }};
while [ $? -eq 0 ]; do while [ $? -eq 0 ]; do

View File

@ -28,7 +28,7 @@ metadata:
component: {{ .Values.proxy.component }} component: {{ .Values.proxy.component }}
data: data:
clusterName: {{ template "pulsar.cluster.name" . }} clusterName: {{ template "pulsar.cluster.name" . }}
statusFilePath: "{{ template "pulsar.home" . }}/status" statusFilePath: "{{ template "pulsar.home" . }}/logs/status"
# prometheus needs to access /metrics endpoint # prometheus needs to access /metrics endpoint
webServicePort: "{{ .Values.proxy.ports.containerPorts.http }}" webServicePort: "{{ .Values.proxy.ports.containerPorts.http }}"
{{- if or (not .Values.tls.enabled) (not .Values.tls.proxy.enabled) }} {{- if or (not .Values.tls.enabled) (not .Values.tls.proxy.enabled) }}

View File

@ -185,7 +185,7 @@ spec:
{{ .Values.proxy.additionalCommand }} {{ .Values.proxy.additionalCommand }}
{{- end }} {{- end }}
bin/apply-config-from-env.py conf/proxy.conf && bin/apply-config-from-env.py conf/proxy.conf &&
echo "OK" > status && echo "OK" > "${statusFilePath:-status}" &&
OPTS="${OPTS} -Dlog4j2.formatMsgNoLookups=true" exec bin/pulsar proxy OPTS="${OPTS} -Dlog4j2.formatMsgNoLookups=true" exec bin/pulsar proxy
ports: ports:
# prometheus needs to access /metrics endpoint # prometheus needs to access /metrics endpoint