Not easily, no. The built-in H2 only works as a local process.
If you want to use H2 replicated, you need to setup an H2 database
server process yourself using the H2 documentation and distribution,
then point the Gerrit server at the H2 server IP and port. By the time
you go through this work you may be better off switching the database
to PostgreSQL or MySQL, where the failover/warm-standby system
configuration is well documented and support is readily available from
any number of companies.
This is why Matthias suggested using the database replication system
to make the backup server stay roughly current with the master.
Also, unfortunately Gerrit is still a single-master system. There can
be only one server running the Gerrit proces in master-mode that
accepts writes.
Nope. :-(
Thanks Shawn.
I'm glad to get this response from the Gerrit person. ;-)
If we need to switch to MySQL or PostgreSQL, is there a way or script
to migrate the H2 db content to it?
Hi Shawn. it is very useful discussion for me. in my case we are trying to replicate the SSH key into the slaves thinking may be the user can add their SSh keys to the master and then they can perform the cloning from the slave without adding the ssh keys again into the slave. simply we want to add the keys into master and then can be able to clone from any of the mirror closer and available for the user.Is there any such possibility. In our setup we are using different databases for the master and slaves. master using the postgreSQL and slaves have H2, mysql.If we configure the slaves with the same database as the master, can we achieve the ssh keys replication.
What is the best practice for the database configuration in case of gerrit master and mirror setup.
On Tuesday, January 17, 2012 at 6:17:54 PM UTC-5, Shawn Pearce wrote:On Tue, Jan 17, 2012 at 14:11, Sam Xiao <s.x...@sta.samsung.com> wrote:
> If we need to switch to MySQL or PostgreSQL, is there a way or script
> to migrate the H2 db content to it?Nope. :-(
--
--
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.