I have a master Gerrit instance running against MySQL.
For failover purposes, a standby server is running a Gerrit instance
in slave mode. MySQL replication is used for the database, and the
Gerrit replication plugin replicates the git changes from the master
server to the standby server.
That leaves the lucene index. As things stand currently, during a
failover I'd have to shutdown the slave instance and run the reindex
operation before restarting in master mode.
Is there a way to avoid the reindex? Can rsync be used to keep the
index on the standby server up-to-date? Other suggestions?
Currently on 2.8, but looking to upgrade to 2.9 soon.
On Fri, Sep 19, 2014 at 2:15 AM, David Ostrovsky
<david.o...@gmail.com> wrote:
>> That leaves the lucene index. As things stand currently, during a
>> failover I'd have to shutdown the slave instance and run the reindex
>> operation before restarting in master mode.
>>
>
> This doesn't work: as of 2.9.1 reindexing on slaves is disabled.
During a failover, it wouldn't be a slave anymore.
- Shutdown the slave Gerrit instance running on the standby server
- Reindex (on the standby server)
- Restart the Gerrit instance on the standby server as a master.
I'm trying to avoid the time-consuming re-index step.
Some googling indicates it may be viable to rsync the Lucene index.
I think I can do this, keeping track of the highest synced change.
Then during a failover, use the REST API to index any changes missing from
the index.
At worst, it doesn't work and I'm stuck with running a re-index operation.
j.
--
--
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 Fri, Sep 19, 2014 at 2:15 AM, David Ostrovsky
<david.o...@gmail.com> wrote:
>> That leaves the lucene index. As things stand currently, during a
>> failover I'd have to shutdown the slave instance and run the reindex
>> operation before restarting in master mode.
>>
>
> This doesn't work: as of 2.9.1 reindexing on slaves is disabled.
During a failover, it wouldn't be a slave anymore.
- Shutdown the slave Gerrit instance running on the standby server
- Reindex (on the standby server)
- Restart the Gerrit instance on the standby server as a master.
I'm trying to avoid the time-consuming re-index step.
Some googling indicates it may be viable to rsync the Lucene index.
I think I can do this, keeping track of the highest synced change.
Then during a failover, use the REST API to index any changes missing from
the index.
At worst, it doesn't work and I'm stuck with running a re-index operation.
j.