Enable read-only mode only when there is data loss after a failover
Problem to solve
Currently read-only mode is enabled after any failover event. Read-only Git access is a reduction in availability and should be avoided where possible.
Proposal
We should only enable read-only mode if the virtual storage has data loss, that is, any repositories for which the last replication job is not in completed
state.
cc @zj-gitlab
Edited by James Ramsay (ex-GitLab)