Set a gerrit replication timeout of 15 minutes

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
This commit is contained in:
Clark Boylan 2021-09-15 16:08:10 -07:00
parent 6c115cf29e
commit f1bcb6a586
2 changed files with 11 additions and 0 deletions

View File

@ -6,6 +6,7 @@ gerrit_replication:
replicatePermissions: false
mirror: true
threads: '4'
timeout: '900'
- name: 'gitea02'
url: 'ssh://git@gitea02.opendev.org:222/'
authGroup: 'Anonymous Users'
@ -13,6 +14,7 @@ gerrit_replication:
replicatePermissions: false
mirror: true
threads: '4'
timeout: '900'
- name: 'gitea03'
url: 'ssh://git@gitea03.opendev.org:222/'
authGroup: 'Anonymous Users'
@ -20,6 +22,7 @@ gerrit_replication:
replicatePermissions: false
mirror: true
threads: '4'
timeout: '900'
- name: 'gitea04'
url: 'ssh://git@gitea04.opendev.org:222/'
authGroup: 'Anonymous Users'
@ -27,6 +30,7 @@ gerrit_replication:
replicatePermissions: false
mirror: true
threads: '4'
timeout: '900'
- name: 'gitea05'
url: 'ssh://git@gitea05.opendev.org:222/'
authGroup: 'Anonymous Users'
@ -34,6 +38,7 @@ gerrit_replication:
replicatePermissions: false
mirror: true
threads: '4'
timeout: '900'
- name: 'gitea06'
url: 'ssh://git@gitea06.opendev.org:222/'
authGroup: 'Anonymous Users'
@ -41,6 +46,7 @@ gerrit_replication:
replicatePermissions: false
mirror: true
threads: '4'
timeout: '900'
- name: 'gitea07'
url: 'ssh://git@gitea07.opendev.org:222/'
authGroup: 'Anonymous Users'
@ -48,6 +54,7 @@ gerrit_replication:
replicatePermissions: false
mirror: true
threads: '4'
timeout: '900'
- name: 'gitea08'
url: 'ssh://git@gitea08.opendev.org:222/'
authGroup: 'Anonymous Users'
@ -55,6 +62,7 @@ gerrit_replication:
replicatePermissions: false
mirror: true
threads: '4'
timeout: '900'
gerrit_storyboard_url: https://storyboard.openstack.org
gerrit_vhost_name: review.opendev.org
gerrit_serverid: 4a232e18-c5a9-48ee-94c0-e04e7cca6543

View File

@ -12,6 +12,9 @@ replicateOnStartup = false
{% if 'replicationDelay' in replication %}
replicationDelay = {{ replication.replicationDelay }}
{% endif %}
{% if 'timeout' in replication %}
timeout = {{ replication.timeout }}
{% endif %}
{% if 'threads' in replication %}
threads = {{ replication.threads }}
{% endif %}