On 2 May 2019, at 06:04, haridas...@gmail.com wrote:Hi Team,I am trying to setup Gerrit Multisite Plugin. The plugin documentation says that currently it supports only one active master (RW site) accepting modifications on the Git repositories or the review data.
I believe, the health check plugin will be deciding the RW Site based on certain parameters. I assume, connections will be received by HAProxy which intern will validate with the "health check plugin" and redirect the connections to the active RW site.
I couldn't find any related configurations or documents. It would be of great help, if someone can point me to the right direction.
Thanks,Dipu H--
--
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.
For more options, visit https://groups.google.com/d/optout.
On 2 May 2019, at 06:04, haridas...@gmail.com wrote:Hi Team,I am trying to setup Gerrit Multisite Plugin. The plugin documentation says that currently it supports only one active master (RW site) accepting modifications on the Git repositories or the review data.Yes, however things are evolving very quickly on the plugins' development and very soon you'll be able to enable multiple writes on any site on any repos.Tiago has a series of changes for making this possible without any risk of split-brain:I believe, the health check plugin will be deciding the RW Site based on certain parameters. I assume, connections will be received by HAProxy which intern will validate with the "health check plugin" and redirect the connections to the active RW site.Exactly, you can find a sample HAProxy configuration at:I couldn't find any related configurations or documents. It would be of great help, if someone can point me to the right direction.Hi Dipu,the plugin's configuration docs can be found at:and for creating a test site, just use the setup.sh script developed by Tiago at:
On 2 May 2019, at 13:49, Matthias Sohn <matthi...@gmail.com> wrote:On Thu, May 2, 2019 at 8:24 AM Luca Milanesio <luca.mi...@gmail.com> wrote:Hi Team,I am trying to setup Gerrit Multisite Plugin. The plugin documentation says that currently it supports only one active master (RW site) accepting modifications on the Git repositories or the review data.Yes, however things are evolving very quickly on the plugins' development and very soon you'll be able to enable multiple writes on any site on any repos.Tiago has a series of changes for making this possible without any risk of split-brain:I believe, the health check plugin will be deciding the RW Site based on certain parameters. I assume, connections will be received by HAProxy which intern will validate with the "health check plugin" and redirect the connections to the active RW site.Exactly, you can find a sample HAProxy configuration at:I couldn't find any related configurations or documents. It would be of great help, if someone can point me to the right direction.Hi Dipu,the plugin's configuration docs can be found at:and for creating a test site, just use the setup.sh script developed by Tiago at:I am trying to set this up based on current gerrit core and the multi-site plugin from stable-2.16 branch.Zookeeper and Kafka are up and running, Gerrit instance 1 and 2 come up and I can logon as admin.All the additional plugins load but the multi-site plugin fails to load with a Guice Exception,
On 2 May 2019, at 13:49, Matthias Sohn <matthi...@gmail.com> wrote:
On Thu, May 2, 2019 at 8:24 AM Luca Milanesio <luca.m...@gmail.com> wrote:
Hi Team,I am trying to setup Gerrit Multisite Plugin. The plugin documentation says that currently it supports only one active master (RW site) accepting modifications on the Git repositories or the review data.Yes, however things are evolving very quickly on the plugins' development and very soon you'll be able to enable multiple writes on any site on any repos.Tiago has a series of changes for making this possible without any risk of split-brain:I believe, the health check plugin will be deciding the RW Site based on certain parameters. I assume, connections will be received by HAProxy which intern will validate with the "health check plugin" and redirect the connections to the active RW site.Exactly, you can find a sample HAProxy configuration at:I couldn't find any related configurations or documents. It would be of great help, if someone can point me to the right direction.Hi Dipu,the plugin's configuration docs can be found at:and for creating a test site, just use the setup.sh script developed by Tiago at:I am trying to set this up based on current gerrit core and the multi-site plugin from stable-2.16 branch.Zookeeper and Kafka are up and running, Gerrit instance 1 and 2 come up and I can logon as admin.All the additional plugins load but the multi-site plugin fails to load with a Guice Exception,
Have you followed the setup instructions at https://gerrit.googlesource.com/plugins/multi-site/+/refs/heads/stable-2.16 ?Even if it is *technically built as a plugin*, it needs to installed as libModule, not as a plugin.
On 2 May 2019, at 13:49, Matthias Sohn <matthi...@gmail.com> wrote:On Thu, May 2, 2019 at 8:24 AM Luca Milanesio <luca.mi...@gmail.com> wrote:Hi Team,I am trying to setup Gerrit Multisite Plugin. The plugin documentation says that currently it supports only one active master (RW site) accepting modifications on the Git repositories or the review data.Yes, however things are evolving very quickly on the plugins' development and very soon you'll be able to enable multiple writes on any site on any repos.Tiago has a series of changes for making this possible without any risk of split-brain:I believe, the health check plugin will be deciding the RW Site based on certain parameters. I assume, connections will be received by HAProxy which intern will validate with the "health check plugin" and redirect the connections to the active RW site.Exactly, you can find a sample HAProxy configuration at:I couldn't find any related configurations or documents. It would be of great help, if someone can point me to the right direction.Hi Dipu,the plugin's configuration docs can be found at:and for creating a test site, just use the setup.sh script developed by Tiago at:I am trying to set this up based on current gerrit core and the multi-site plugin from stable-2.16 branch.Zookeeper and Kafka are up and running, Gerrit instance 1 and 2 come up and I can logon as admin.All the additional plugins load but the multi-site plugin fails to load with a Guice Exception,Have you followed the setup instructions at https://gerrit.googlesource.com/plugins/multi-site/+/refs/heads/stable-2.16 ?Even if it is *technically built as a plugin*, it needs to installed as libModule, not as a plugin.
Cool, we are planning to demo the multi-site plugin for Gerrit v3.0 in Munch :-)@Han-Wen: can the demo be recorded at the Hackathon? It would be nice to share them to a wider audience afterward.
Luca.
Google Germany GmbH, Erika-Mann-Strasse 33, 80636 Munich
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschäftsführer: Paul Manicle, Halimah DeLaine Prado
On 2 May 2019, at 15:31, Han-Wen Nienhuys <han...@google.com> wrote:On Thu, May 2, 2019 at 4:27 PM Luca Milanesio <luca.mi...@gmail.com> wrote:Cool, we are planning to demo the multi-site plugin for Gerrit v3.0 in Munch :-)@Han-Wen: can the demo be recorded at the Hackathon? It would be nice to share them to a wider audience afterward.I think our room should have infrastructure to record things. We can record you, provided you sign a waiver.
On 2 May 2019, at 06:04, harida...@gmail.com wrote:Hi Team,I am trying to setup Gerrit Multisite Plugin. The plugin documentation says that currently it supports only one active master (RW site) accepting modifications on the Git repositories or the review data.Yes, however things are evolving very quickly on the plugins' development and very soon you'll be able to enable multiple writes on any site on any repos.Tiago has a series of changes for making this possible without any risk of split-brain:I believe, the health check plugin will be deciding the RW Site based on certain parameters. I assume, connections will be received by HAProxy which intern will validate with the "health check plugin" and redirect the connections to the active RW site.Exactly, you can find a sample HAProxy configuration at:I couldn't find any related configurations or documents. It would be of great help, if someone can point me to the right direction.Hi Dipu,the plugin's configuration docs can be found at:and for creating a test site, just use the setup.sh script developed by Tiago at:Ponch is working on creating a Dockerized test environment also with the following series of changes:HTHLuca.
Thanks,Dipu H--
--
To unsubscribe, email rep...@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-d...@googlegroups.com.
On 3 May 2019, at 00:12, haridas...@gmail.com wrote:Thanks a lot for the update. I could setup the haproxy to direct connections based on healthcheck plugin status.However, I face the below error when a upload a change.[2019-05-02 15:45:35,045] [ReceiveCommits-2] ERROR com.google.gerrit.server.git.receive.ReceiveCommits : Error collecting groups for changes [CONTEXT RECEIVE_ID="dipuh_test-1556837135032-4c67b9de" ]com.google.gwtorm.server.OrmException: java.util.concurrent.ExecutionException: java.io.IOException: Unable to update ref 'refs/sequences/changes', cannot open the local ref on the local DBCaused by: java.io.IOException: Unable to update ref 'refs/sequences/changes', the local objectId 'refs/sequences/changes' is not equal to the one in the shared ref datasuperat com.googlesource.gerrit.plugins.multisite.validation.MultiSiteRefUpdate.checkSharedDBForRefUpdate(MultiSiteRefUpdate.java:77)
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.
Hi Luca,
On 7 May 2019, at 09:28, haridas...@gmail.com wrote:Hi Luca,I tried with the latest plugin from plugin-multi-site-bazel-stable-2.16 Jenkins job, build 44. I get the below error now:[2019-05-07 09:11:51,327] [ReceiveCommits-1] WARN org.apache.curator.utils.ZKPaths : The version of ZooKeeper being used doesn't support Container nodes. CreateMode.PERSISTENT will be used instead.[2019-05-07 09:11:51,362] [ReceiveCommits-1] WARN com.googlesource.gerrit.plugins.multisite.validation.RefUpdateValidator : Failure while running with policy enforcement REQUIRED. Error message: Local ref refs/sequences/changes (ObjectId=3b2deb7a1496e5b59a535a39c213bc0cd8574e7e) on project All-Projects is out of sync with the shared ref-db [CONTEXT RECEIVE_ID="dipuh_test-1557245511245-670b4b9b" ]com.googlesource.gerrit.plugins.multisite.validation.dfsrefdb.OutOfSyncException: Local ref refs/sequences/changes (ObjectId=3b2deb7a1496e5b59a535a39c213bc0cd8574e7e) on project All-Projects is out of sync with the shared ref-db
...[2019-05-07 09:11:51,380] [ReceiveCommits-1] ERROR com.google.gerrit.server.git.receive.ReceiveCommits : Error collecting groups for changes [CONTEXT RECEIVE_ID="dipuh_test-1557245511245-670b4b9b" ]com.google.gwtorm.server.OrmException: java.util.concurrent.ExecutionException: com.googlesource.gerrit.plugins.multisite.validation.dfsrefdb.OutOfSyncException: Local ref refs/sequences/changes (ObjectId=3b2deb7a1496e5b59a535a39c213bc0cd8574e7e) on project All-Projects is out of sync with the shared ref-dbDid I miss something ? :)Thanks,Dipu H
--
--
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/884a5587-e9e0-4535-88aa-061d4075bf5f%40googlegroups.com.
Hi Luca,
--
--
--
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/15e83b61-7d2d-4f5b-bc53-af66bb916469%40googlegroups.com.
Hi Matthias,I suspect the reason you're seeing the multi-site.jar under the plugins directory is that your release.war file contains the multi-site plugin and because the shell script installs gerrit with --install-all-plugins option, it automatically deploys it under that directory.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/CACaj8h4LZCynXPhh9d6eQjbY0Tky%3DVq1cMOXVzajSAyLFkWdnQ%40mail.gmail.com.
On Thu, May 9, 2019 at 9:49 AM Tiago Palma <tiago...@gmail.com> wrote:Hi Matthias,I suspect the reason you're seeing the multi-site.jar under the plugins directory is that your release.war file contains the multi-site plugin and because the shell script installs gerrit with --install-all-plugins option, it automatically deploys it under that directory.This seems like something that should be improved. I.e. for bundled plugins that are not actually plugins but library modules, the initialization program should not install them into the plugins folder.
Hi Tiago,
On 7 May 2019, at 18:53, haridas...@gmail.com wrote:Hi Luca,Thanks for the quick reply.Yes, I have an haproxy in front, with the below configuration:backend sshmode tcpoption redispatchoption httpchk GET /config/server/healthcheck~status HTTP/1.0balance roundrobintimeout connect 1mtimeout server 5mserver ssh_node1 testgit-01:29418 check inter 20s check port 8080 inter 20sserver ssh_node2 testgit-02:29418 check inter 20s check port 8080 inter 20s backup
The error is persistent. Please find the log attached.
Thanks,Dipu H--
--
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/15e83b61-7d2d-4f5b-bc53-af66bb916469%40googlegroups.com.
<error.log>
--
--
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/9da30d2e-98b0-471b-b52b-2802de9ce2ba%40googlegroups.com.
On 9 May 2019, at 06:42, Dipu Haridas <haridas...@gmail.com> wrote:Hi Tiago,My haproxy configuration is the below:backend sshmode tcpoption redispatchoption httpchk GET /config/server/healthcheck~status HTTP/1.0balance roundrobintimeout connect 5mtimeout server 5mserver ssh_node1 testgit-01:29418 check inter 20s check port 8080 inter 20sserver ssh_node2 testgit-02:29418 check inter 20s check port 8080 inter 20s backupI believe, since the second server (ssh_node2) is mentioned as "backup", connections should not go directly to this server, unless the health check on ssh_node1 fails. I have verified that connections from the proxy are directed to ssh_node1.
I am trying only one upload at a time and I am the only one user uploading. Pushes to the repository is working fine and syncing to the second site without any issue. Only the uploads fail.I mean "git push" works, but "git push origin HEAD:refs/for/master" fails. Is there any change in references from Gerrit 2.14 to 2.16?
>> Can you also let me know if you've changed notedb.accounts.sequenceBatchSize?I haven't set any custom settings for nodedb, rather than converting the psql db to note. Could you please guide me to the correct setting for this?
Thanks,Dipu H--
--
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/abc2666c-2512-428b-8805-adfb81ce2826%40googlegroups.com.
Hi Luca,
--
--
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/2722500d-9d76-4d2b-91eb-dbec03eac883%40googlegroups.com.
Hi Dipu,To reset Zookeeper actually means removing the znode that is outdated from zookeeper. You can do this via the zookeeper cli.I'm not aware of reference changes from 2.14 to 2.16.Hope this helps.Tiago
On Thu, 9 May 2019 at 08:02, Dipu Haridas <harida...@gmail.com> wrote:
--Hi Luca,>> 2.14? Are you trying to use the multi-site with Gerrit v2.14?I am trying multisite on Gerrit 2.16. Was wondering if there is any reference changes from 2.14 to 2.16.Let me restart the zookeeper instances and try.Thanks,Dipu H
--
To unsubscribe, email repo-d...@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-d...@googlegroups.com.
On 9 May 2019, at 08:47, Dipu Haridas <haridas...@gmail.com> wrote:I could upload the reviews, after resetting zookeeper :)
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/7110508b-892b-4109-a532-8de22ae623e7%40googlegroups.com.
Thanks,Dipu H--
--
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/a1871cb2-7e99-4f86-ae7a-3963095519cd%40googlegroups.com.
To unsubscribe, email rep...@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-d...@googlegroups.com.