Skip to content
Snippets Groups Projects
Commit 228e2b9d7848 authored by Sami Hiltunen's avatar Sami Hiltunen
Browse files

Add Praefect verifier deletion logic config option

Adds a configuration option to enable deletion of invalid metadata
records found by Praefect's metadata verifier.

Related https://gitlab.com/gitlab-org/gitaly/-/issues/4211

Changelog: added
parent 308afda689a2
No related branches found
No related tags found
1 merge request!72Intermediate build for testing purposes
......@@ -2419,6 +2419,7 @@
# }
# }
# praefect['background_verification_verification_interval'] = "72h"
# praefect['background_verification_delete_invalid_records'] = false
# praefect['sentry_dsn'] = "https://<key>:<secret>@sentry.io/<project>"
# praefect['sentry_environment'] = "production"
# praefect['auto_migrate'] = true
......
......@@ -42,3 +42,4 @@
default['praefect']['consul_service_name'] = 'praefect'
default['praefect']['consul_service_meta'] = nil
default['praefect']['background_verification_verification_interval'] = nil
default['praefect']['background_verification_delete_invalid_records'] = nil
......@@ -67,6 +67,9 @@
<% if @background_verification_verification_interval %>
verification_interval = '<%= @background_verification_verification_interval %>'
<% end %>
<% if @background_verification_delete_invalid_records %>
delete_invalid_records = <%= @background_verification_delete_invalid_records %>
<% end %>
<% @virtual_storages.each do |name, config| %>
[[virtual_storage]]
......
......@@ -155,6 +155,7 @@
reconciliation_scheduling_interval: reconciliation_scheduling_interval,
reconciliation_histogram_buckets: reconciliation_histogram_buckets,
background_verification_verification_interval: '168h',
background_verification_delete_invalid_records: true,
})
end
......@@ -197,7 +198,8 @@
'scheduling_interval' => '1m'
},
'background_verification' => {
'verification_interval' => '168h'
'verification_interval' => '168h',
'delete_invalid_records' => true
},
'sentry' => {
'sentry_dsn' => 'https://my_key:my_secret@sentry.io/test_project',
......
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