diff --git a/cmd/keeper/keeper.go b/cmd/keeper/keeper.go index 2266f5674..3631d91ed 100644 --- a/cmd/keeper/keeper.go +++ b/cmd/keeper/keeper.go @@ -1349,6 +1349,10 @@ func (p *PostgresKeeper) postgresKeeperSM(pctx context.Context) { log.Errorw("failed to start postgres", zap.Error(err)) return } + if err = pgm.WaitReady(cluster.DefaultDBWaitReadyTimeout); err != nil { + log.Errorw("timeout waiting for instance to be ready", zap.Error(err)) + return + } started = true }