Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor ClickHouse monitor implementation (#3498)
Use a separate container in the clickhouse-server Pod (run as a ReplicaSet) instead of a CronJob. If we support multiple replicase (HA ClickHouse), we should only run the monitor for the first replica. This implementation also brings the following advantages. * It reduces the overhead of creating and destroying a new Pod every time the monitor executes * It avoids reading the K8s logs to check the last state of execution * It reduces the overall number of Pods Signed-off-by: Yanjun Zhou <zhouya@vmware.com>
- Loading branch information
Showing
8 changed files
with
132 additions
and
756 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 3 additions & 14 deletions
17
build/yamls/flow-visibility/patches/dev/imagePullPolicy.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,3 @@ | ||
apiVersion: batch/v1 | ||
kind: CronJob | ||
metadata: | ||
labels: | ||
app: clickhouse-monitor | ||
name: clickhouse-monitor | ||
spec: | ||
jobTemplate: | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: clickhouse-monitor | ||
imagePullPolicy: IfNotPresent | ||
- op: add | ||
path: /spec/templates/podTemplates/0/spec/containers/1/imagePullPolicy | ||
value: IfNotPresent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.