Skip to content
Snippets Groups Projects
Commit 493732a5 authored by Pedro Pombeiro's avatar Pedro Pombeiro
Browse files

Add settings to configure cronjob to sync finished builds to ClickHouse

Changelog: added
parent 86e9a116
No related branches found
No related tags found
3 merge requests!114heptapod#1394: making 1.0 the oldstable,!110heptapod#1352: merged heptapod branch into heptapod-stable,!107Merged upstream Omnibus GitLab 16.5 branching point
......@@ -935,7 +935,7 @@
### Registry database
###! Docs: https://docs.gitlab.com/ee/administration/packages/container_registry.html?tab=Linux+package+%28Omnibus%29#configure-a-metadata-database-for-the-container-registry
# registry['database'] = {
# registry['database'] = {
# 'enabled' => true,
# 'host' => 'localhost',
# 'port' => 5432,
......@@ -953,7 +953,7 @@
# 'maxidle' => 25,
# 'maxopen' => 25,
# 'maxlifetime' => '5m'
# }
# }
# }
### Registry notifications endpoints
......@@ -2704,6 +2704,8 @@
# gitlab_rails['elastic_index_bulk_cron'] = "*/1 * * * *"
# gitlab_rails['analytics_devops_adoption_create_all_snapshots_worker_cron'] = "0 4 * * 0"
# gitlab_rails['ci_runners_stale_group_runners_prune_worker_cron'] = "30 * * * *"
# gitlab_rails['click_house_ci_finished_builds_sync_worker_cron'] = "*/3 * * * *"
# gitlab_rails['click_house_ci_finished_builds_sync_worker_args'] = [1]
################################################################################
## Kerberos (EE Only)
......
......@@ -149,6 +149,8 @@
default['gitlab']['gitlab_rails']['incoming_email_inbox_options'] = nil
default['gitlab']['gitlab_rails']['incoming_email_delivery_method'] = "webhook"
default['gitlab']['gitlab_rails']['incoming_email_auth_token'] = nil
default['gitlab']['gitlab_rails']['click_house_ci_finished_builds_sync_worker_cron'] = nil
default['gitlab']['gitlab_rails']['click_house_ci_finished_builds_sync_worker_args'] = nil
default['gitlab']['gitlab_rails']['service_desk_email_enabled'] = false
default['gitlab']['gitlab_rails']['service_desk_email_address'] = nil
......
......@@ -700,6 +700,15 @@
cron: "<%= @ci_runners_stale_group_runners_prune_worker_cron %>"
<% end %>
# Periodically sync finished builds from p_ci_finished_build_ch_sync_events to ClickHouse
<% unless @click_house_ci_finished_builds_sync_worker_cron.nil? %>
click_house_ci_finished_builds_sync_worker:
cron: "<%= @click_house_ci_finished_builds_sync_worker_cron %>"
<% unless @click_house_ci_finished_builds_sync_worker_args.nil? %>
args: <%= @click_house_ci_finished_builds_sync_worker_args %>
<% end %>
<% end %>
## Geo
# NOTE: These settings will only take effect if Geo is enabled
geo:
......
......@@ -52,6 +52,7 @@
'ci_runners_stale_group_runners_prune_worker_cron' | 'ci_runners_stale_group_runners_prune_worker_cron'
'ci_runner_versions_reconciliation_worker' | 'ci_runner_versions_reconciliation_worker_cron'
'ci_runners_stale_machines_cleanup_worker' | 'ci_runners_stale_machines_cleanup_worker_cron'
'click_house_ci_finished_builds_sync_worker' | 'click_house_ci_finished_builds_sync_worker_cron'
end
with_them do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment