Commit f63ab921 authored by Mike Kozono's avatar Mike Kozono

Geo: Reduce frequency of redownload attempts

The redownload flow has risks, see
https://gitlab.com/gitlab-org/gitlab/-/issues/332151.
Therefore, don't use it until it is more clearly necessary.

This will make Geo use the normal flow for the first 10 retries, so
the redownload flow won't be used until about 2.5 hours of failed
retries.

Changelog: changed
EE: true
parent ef968c59
......@@ -6,7 +6,7 @@ class Geo::DesignRegistry < Geo::BaseRegistry
MODEL_CLASS = ::Project
MODEL_FOREIGN_KEY = :project_id
RETRIES_BEFORE_REDOWNLOAD = 5
RETRIES_BEFORE_REDOWNLOAD = 10
belongs_to :project
......
......@@ -10,7 +10,7 @@ class Geo::ProjectRegistry < Geo::BaseRegistry
MODEL_FOREIGN_KEY = :project_id
REGISTRY_TYPES = %i{repository wiki}.freeze
RETRIES_BEFORE_REDOWNLOAD = 5
RETRIES_BEFORE_REDOWNLOAD = 10
sha_attribute :repository_verification_checksum_sha
sha_attribute :repository_verification_checksum_mismatched
......
......@@ -17,7 +17,7 @@ module Geo
LEASE_TIMEOUT = 8.hours
LEASE_KEY_PREFIX = 'geo_sync_ssf_service'
RETRIES_BEFORE_REDOWNLOAD = 5
RETRIES_BEFORE_REDOWNLOAD = 10
def initialize(replicator)
@replicator = replicator
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment