
We are seeing that replication tasks occasionally sit around forever and have had to take manual intervention. One theory is that this is related to networking between the gerrit server and the gitea servers. We don't set maxRetries which means replication should be retried infinitely which means if we hit the timeout we should try again. 15 minutes was sort of arbitrarily chosen as ~twice the time it takes to clone a large repo like nova. Change-Id: Iec2536ad149a2e625a1f0107b9fcee3079493607
41 lines
1.1 KiB
Django/Jinja
41 lines
1.1 KiB
Django/Jinja
# This file is managed by ansible.
|
|
# https://opendev.org/opendev/system-config
|
|
|
|
[gerrit]
|
|
defaultForceUpdate = true
|
|
autoReload = false
|
|
replicateOnStartup = false
|
|
|
|
{% for replication in gerrit_replication %}
|
|
[remote "{{ replication.name }}"]
|
|
url = {{ replication.url }}${name}.git
|
|
{% if 'replicationDelay' in replication %}
|
|
replicationDelay = {{ replication.replicationDelay }}
|
|
{% endif %}
|
|
{% if 'timeout' in replication %}
|
|
timeout = {{ replication.timeout }}
|
|
{% endif %}
|
|
{% if 'threads' in replication %}
|
|
threads = {{ replication.threads }}
|
|
{% endif %}
|
|
{% if 'authGroup' in replication %}
|
|
authGroup = {{ replication.authGroup }}
|
|
{% endif %}
|
|
{% if 'replicatePermissions' in replication %}
|
|
replicatePermissions = {{ replication.replicatePermissions }}
|
|
{% endif %}
|
|
{% if 'mirror' in replication %}
|
|
mirror = {{ replication.mirror }}
|
|
{% endif %}
|
|
{% if 'projects' in replication %}
|
|
{% for project in replication.projects %}
|
|
projects = {{ project }}
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% if 'push' in replication %}
|
|
{% for refspec in replication.push %}
|
|
push = {{ refspec }}
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endfor %}
|