datastax / pulsar-helm-chart

Apache Pulsar Helm chart

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Move bookkeeper metadata initialization to it's own job

lhotari opened this issue · comments

Currently
bookkeeper shell metaformat --nonInteractive is called every time a bookie is started:

# This initContainer will make sure that the bookkeeper
# metadata is in zookeeper
- name: pulsar-bookkeeper-metaformat
image: "{{ .Values.image.bookkeeper.repository }}:{{ .Values.image.bookkeeper.tag }}"
imagePullPolicy: {{ .Values.image.bookkeeper.pullPolicy }}
command: ["sh", "-c"]
args:
- >
bin/apply-config-from-env.py conf/bookkeeper.conf &&
bin/apply-config-from-env.py conf/bkenv.sh &&
bin/bookkeeper shell metaformat --nonInteractive || true;

bookkeeper shell metaformat command is deprecated since 4.7.0
https://bookkeeper.apache.org/docs/latest/reference/cli/#bookkeeper-shell-metaformat

This command is deprecated since 4.7.0, in favor of using initnewcluster for initializing a new cluster and nukeexistingcluster for nuking an existing cluster.

Consider moving the bookkeeper metadata initialization to it's own job