diff options
author | Toon Claes <toon@gitlab.com> | 2021-09-29 17:03:22 +0300 |
---|---|---|
committer | Toon Claes <toon@gitlab.com> | 2021-09-29 17:03:22 +0300 |
commit | 0bf16fc55108fa4ff170ed8a77f104d99f359151 (patch) | |
tree | 0293ec385f5f11f7df721972fad413a1492bfe99 /cmd | |
parent | 03c0d52ff9c24c85cf00f7af77a5e5cb78557801 (diff) | |
parent | 134d9413baff9bbed84406b6a06d2f28ee16ffd0 (diff) |
Merge branch 'smh-test-with-per-repo' into 'master'
Use PerRepositoryElector in test-with-praefect
See merge request gitlab-org/gitaly!3914
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/praefect/main.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/praefect/main.go b/cmd/praefect/main.go index ed908551c..5a6c54d0c 100644 --- a/cmd/praefect/main.go +++ b/cmd/praefect/main.go @@ -300,6 +300,10 @@ func run(cfgs []starter.Config, conf config.Config) error { }() healthChecker = hm + // Wait for the first health check to complete so the Praefect doesn't start serving RPC + // before the router is ready with the health status of the nodes. + <-hm.Updated() + elector := nodes.NewPerRepositoryElector(db) primaryGetter = elector |