Re: Gerrit replication

221 views
Skip to first unread message

Magnus Bäck

unread,
Sep 20, 2012, 11:19:08 AM9/20/12
to repo-d...@googlegroups.com
On Thursday, September 20, 2012 at 06:20 EDT,
Sergey Kuznetsov <skuzn...@griddynamics.com> wrote:

> Please help me understand how replication works.
> I has configure two nodes, one for master and another
> slave(replication from master to slave).
> Now i have two questions:

[...]

> 2. When i manually create project with the same name on slave,
> replication goes well and i see in root git directory on slave
> replicated project, but no changes in web-ui.

What web UI changes did you expect to see? Are you running Gitweb on the
slave? Normally a slave doesn't have anything you'd call a UI, and the
web UI on the master server doesn't indicate the replication status of
any slaves.

[...]

--
Magnus Bäck
ba...@google.com

Magnus Bäck

unread,
Sep 20, 2012, 4:15:02 PM9/20/12
to repo-d...@googlegroups.com
On Thursday, September 20, 2012 at 12:08 EDT,
Sergey Kuznetsov <skuzn...@griddynamics.com> wrote:

> On Thursday, September 20, 2012 7:19:14 PM UTC+4, Magnus Bäck wrote:
>
> > What web UI changes did you expect to see?
>
> On menu My->changes. When i commit something to the master, on this
> page i can see changes to review.
>
> > Are you running Gitweb on the slave?
>
> No, i mean http daemon from gerrit install, he provide web page where
> i can see commits(on menu My->changes).
>
> > Normally a slave doesn't have anything you'd call a UI, and the web
> > UI on the master server doesn't indicate the replication status of
> > any slaves.
> >
> http://gerrit-documentation.googlecode.com/svn/Documentation/2.4.2/config-replication.html
> I read this doc about configuring gerrit replication, if i think right,
> master and slave has identical setup java -jar gerrit-2.4.2.war init -d
> /some/path, but master in gerrit $site_path/etc/ have configured
> replication.config.
> That all diff for me in master and slave.

Oh. In that case you don't actually have a master/slave set up -- you
have two Gerrit master servers where one happens to replicate Git data
to the other one. Gerrit doesn't support multimaster setups. The data
replicated to slaves is only for read-only purposes to spread the load
and/or cope with slow connections between sites.

--
Magnus Bäck
ba...@google.com

Matthias Sohn

unread,
Sep 20, 2012, 6:04:01 PM9/20/12
to Sergey Kuznetsov, repo-d...@googlegroups.com
2012/9/20 Sergey Kuznetsov <q4...@mail.ru>


пятница, 21 сентября 2012 г., 0:15:08 UTC+4 пользователь Magnus Bäck написал:

Many thanks for explanation, but where i can read about right setup of master/slave configuration? Or "a load-balanced public mirror farm"?
If it is not difficult, please give me an urls where i can learn more about this configs.

did you try the documentation ?

--
Matthias

Sergey Kuznetsov

unread,
Sep 21, 2012, 1:55:43 AM9/21/12
to repo-d...@googlegroups.com, Sergey Kuznetsov, matthi...@googlemail.com


пятница, 21 сентября 2012 г., 2:04:04 UTC+4 пользователь Matthias Sohn написал:
In messages above i wrote this url, the document does not have any words about how must i instruct gerrit to act a slave. Please read all thread to understand what my problem for.

Martin Fick

unread,
Sep 21, 2012, 1:57:57 AM9/21/12
to Sergey Kuznetsov, repo-d...@googlegroups.com, matthi...@googlemail.com
It's actually hidden away here in this config section:

http://gerrit-documentation.googlecode.com/svn/Documentation/2.4.2/config-gerrit.html#_a_id_container_a_section_container

It seems like we could use an explanation somewhere about master versus slaves, but I don't know where. Any suggestions?

-Martin



Sergey Kuznetsov <q4...@mail.ru> wrote:

>
>
>пятница, 21 сентября 2012 г., 2:04:04 UTC+4 пользователь Matthias Sohn
>написал:
>>
>> 2012/9/20 Sergey Kuznetsov <q4...@mail.ru <javascript:>>
>>
>>>
>>>
>>> пятница, 21 сентября 2012 г., 0:15:08 UTC+4 пользователь Magnus Bäck
>
>>> написал:
>>>>
>>>> On Thursday, September 20, 2012 at 12:08 EDT,
>>>> Sergey Kuznetsov <skuzn...@griddynamics.com> wrote:
>>>>
>>>> > On Thursday, September 20, 2012 7:19:14 PM UTC+4, Magnus Bäck
>wrote:
>>>> >
>>>> > > What web UI changes did you expect to see?
>>>> >
>>>> > On menu My->changes. When i commit something to the master, on
>this
>>>> > page i can see changes to review.
>>>> >
>>>> > > Are you running Gitweb on the slave?
>>>> >
>>>> > No, i mean http daemon from gerrit install, he provide web page
>where
>>>> > i can see commits(on menu My->changes).
>>>> >
>>>> > > Normally a slave doesn't have anything you'd call a UI, and the
>web
>>>> > > UI on the master server doesn't indicate the replication status
>of
>>>> > > any slaves.
>>>> > >
>>>> > http://gerrit-documentation.**googlecode.com/svn/**
>>>>
>Documentation/2.4.2/config-**replication.html<http://gerrit-documentation.googlecode.com/svn/Documentation/2.4.2/config-replication.html>
>--
>To unsubscribe, email repo-discuss...@googlegroups.com
>More info at http://groups.google.com/group/repo-discuss?hl=en

Employee of Qualcomm Innovation Center,Inc. which is a member of Code Aurora Forum

Matthias Sohn

unread,
Sep 21, 2012, 2:14:43 AM9/21/12
to Martin Fick, Sergey Kuznetsov, repo-d...@googlegroups.com
2012/9/21 Martin Fick <mf...@codeaurora.org>

It's actually hidden away here in this config section:

http://gerrit-documentation.googlecode.com/svn/Documentation/2.4.2/config-gerrit.html#_a_id_container_a_section_container

It seems like we could use an explanation somewhere about master versus slaves, but I don't know where.  Any suggestions?

could be added in a new chapter under "Installation" or as a new section in "Installation Guide"
 
--
Matthias
Reply all
Reply to author
Forward
0 new messages