Pull replication on k8s gerrit for Multi-region setup

56 views
Skip to first unread message

Moumita Bhattacharjee

unread,
Jun 20, 2024, 11:31:43 AM (13 days ago) Jun 20
to Repo and Gerrit Discussion
Hi Team,
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: https://gerrit-review.googlesource.com/c/k8s-gerrit/+/425208 .
and my config files in the gerritcluster.yaml are set as below: 

configFiles:
gerrit.config: |-
[index]
type = LUCENE
[gerrit]
instanceId = gerrit-0.com
[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

Moumita Bhattacharjee

unread,
Jun 21, 2024, 2:29:58 AM (12 days ago) Jun 21
to Repo and Gerrit Discussion
Can anyone please help on the above issue.
Reply all
Reply to author
Forward
0 new messages