diff --git a/cmd/keeper/keeper.go b/cmd/keeper/keeper.go index 48ae9f4b5..c73e9e53c 100644 --- a/cmd/keeper/keeper.go +++ b/cmd/keeper/keeper.go @@ -1357,6 +1357,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 }