How to stream events from a Gerrit mirror and not on the Master Server

65 views
Skip to first unread message

anish....@gmail.com

unread,
Jul 29, 2024, 10:50:18 AM7/29/24
to Repo and Gerrit Discussion
Hello All,

We are getting a lot of performance issues when users are streaming into the Gerrit Server. We would like to stop the streaming events on the server but that is leading to business issues.

Do we have an alternate mechanism for streaming events for the Gerrit servers? Can we set up a mirror and use it for streaming events ..... Could you tell me what the repercussions are and if it will work?

Thank you,
Anish

Martin Fick

unread,
Jul 29, 2024, 11:26:46 AM7/29/24
to anish....@gmail.com, Repo and Gerrit Discussion
On Mon, Jul 29, 2024, 10:50 AM anish....@gmail.com <anish....@gmail.com> wrote:
We are getting a lot of performance issues when users are streaming into the Gerrit Server.

What might those issues be? 

Do we have an alternate mechanism for streaming events for the Gerrit servers? Can we set up a mirror and use it for streaming events ..... Could you tell me what the repercussions are and if it will work?

I am not aware of any solutions that just work for that on a mirror. 

The events plugin can stream events from another primary, so you might solve your issues by setting up another primary sharing the same storage (NFS) for the events.

If the events plugin were allowed to run on your mirror, and you shared the events storage with the primary it might work,

-Martin 

anish....@gmail.com

unread,
Jul 29, 2024, 1:04:08 PM7/29/24
to Repo and Gerrit Discussion
Do we have any documentation for setting up the event plugin. The current one is not very reliable.

Martin Fick

unread,
Jul 29, 2024, 2:32:38 PM7/29/24
to anish....@gmail.com, Repo and Gerrit Discussion
On Mon, Jul 29, 2024, 1:04 PM anish....@gmail.com <anish....@gmail.com> wrote:
Do we have any documentation for setting up the event plugin. The current one is not very reliable.

I believe these docs should be good. Is there something specific that is problematic that needs improvement?


-Martin

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/98dcfb53-84bc-479b-a9df-964975844690n%40googlegroups.com.

Luca Milanesio

unread,
Jul 30, 2024, 12:46:58 AM7/30/24
to Repo and Gerrit Discussion, Luca Milanesio


> On 29 Jul 2024, at 07:50, anish....@gmail.com <anish....@gmail.com> wrote:
>
> Hello All,
>
> We are getting a lot of performance issues when users are streaming into the Gerrit Server. We would like to stop the streaming events on the server but that is leading to business issues.

Agreed, you should look at using one of the events-broker plugins (e.g. events-kafka, events-rabbitmq, …) and put events to a pub/sub system.

Then, you can consume them with your client of choice.

> Do we have an alternate mechanism for streaming events for the Gerrit servers? Can we set up a mirror and use it for streaming events ..... Could you tell me what the repercussions are and if it will work?

If you still want to consume the events via Gerrit SSH, then you need to setup a 2nd primary and use the multi-site plugin, which will consume the events from the broker and notify them to all local listeners.

HTH

Luca.

Reply all
Reply to author
Forward
0 new messages