I am working on the k8s gerrit multisite setup, the pull-replication configuration is working fine for the single site.
But when I am trying to do it on multiple region the pull replication plugin is not coming up, the vpc peering between two region is established properly.
For setting up the multisite with pull replication I referred to this change series:
.
configFiles:
gerrit.config: |-
[index]
type = LUCENE
[gerrit]
[auth]
type = DEVELOPMENT_BECOME_ANY_ACCOUNT
[httpd]
requestLog = true
gracefulStopTimeout = 20s
[user]
name = Gerrit Code Review
anonymousCoward = Unnamed User
[container]
javaOptions = -Xms200m
javaOptions = -Xmx4g
[plugin "websession-broker"]
webSessionTopic = gerrit_web_session
[plugin "events-kafka"]
bootstrapServers = kafka-service.kafka-zk.svc.cluster.local:9092
[plugin]
allowRemoteAdmin = true
replication.config: |-
[remote "host-0"]
url = ad...@gerrit-1.com:/demo-pull.git
fetch = +refs/*:refs/*
mirror = true
timeout = 600
rescheduleDelay = 15
replicationDelay = 5
createMissingRepositories = true
replicateProjectDeletions = true
replicateHiddenProjects = true
[remote "pubmirror"]
fetch = +refs/heads/*:refs/heads/*
fetch = +refs/tags/*:refs/tags/*
threads = 3
authGroup = Public Mirror Group
[gerrit]
autoReload = true
replicateOnStartup = false
[replication]
lockErrorMaxRetries = 5
maxRetries = 5
useCGitClient = false
consumeStreamEvents = false
eventBrokerTopic = gerrit
syncRefs = "ALL REFS ASYNC"
maxApiPayloadSize = 40000
multi-site.config: |-
[index]
maxTries = 50
retryInterval = 30000
[broker]
indexEventTopic = gerrit_index
batchIndexEventTopic = gerrit_batch_index
streamEventTopic = gerrit
projectListEventTopic = gerrit_list_project
cacheEventTopic = gerrit_cache_eviction
multi-site.config: |-
[index]
maxTries = 50
retryInterval = 30000
[broker]
indexEventTopic = gerrit_index
batchIndexEventTopic = gerrit_batch_index
streamEventTopic = gerrit
projectListEventTopic = gerrit_list_project
cacheEventTopic = gerrit_cache_eviction
secretRef: gerrit-secure-config
Please let me know any other changes are required or not to do it in multiple region.
Thanks,
Moumita