Skip to content

Commit

Permalink
ISSUE-304: allow running search reindexing fully with cronjob
Browse files Browse the repository at this point in the history
Allow running elastic search reindexing fully from the cronjob process,
this will mitigate potential issues with the server being affected when issues
happen there, example OOMs, or issues on the search server side.
  • Loading branch information
Abdallah Serghine committed Jan 7, 2025
1 parent 57db53c commit f01c740
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/openmetadata/templates/cron-reindex.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
suspend: true
suspend: {{ .Values.openmetadata.config.reindexConfig.suspend }}
failedJobsHistoryLimit: 1
successfulJobsHistoryLimit: 1
jobTemplate:
Expand Down Expand Up @@ -126,4 +126,4 @@ spec:
{{- toYaml . | nindent 12 }}
{{- end }}
restartPolicy: OnFailure
schedule: "0/5 * * * *"
schedule: {{ .Values.openmetadata.config.reindexConfig.schedule }}
7 changes: 7 additions & 0 deletions charts/openmetadata/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,13 @@
},
"debug": {
"type": "boolean"
},
"schedule": {
"type": "string"
},
"suspend": {
"type": "boolean",
"default": true
}
}
},
Expand Down
4 changes: 4 additions & 0 deletions charts/openmetadata/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ openmetadata:
additionalArgs: ""
deployPipelinesConfig:
debug: false
# You can pass the additional argument flags to the openmetadata-ops.sh reindex command
additionalArgs: ""
reindexConfig:
debug: false
# You can choose whether to run the job on demand or on schedule.
suspend: true
# You can pass the additional argument flags to the openmetadata-ops.sh reindex command
additionalArgs: ""
schedule: "0/5 * * * *"
# Values can be OFF, ERROR, WARN, INFO, DEBUG, TRACE, or ALL
logLevel: INFO
clusterName: openmetadata
Expand Down

0 comments on commit f01c740

Please sign in to comment.