mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-03 04:41:51 +02:00
Retry connecting to pg
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
package constants
|
||||
|
||||
import "time"
|
||||
|
||||
// PostgreSQL specific constants
|
||||
const (
|
||||
DataVolumeName = "pgdata"
|
||||
PostgresDataMount = "/home/postgres/pgdata"
|
||||
PostgresDataPath = PostgresDataMount + "/pgroot"
|
||||
|
||||
PostgresConnectRetryTimeout = 2 * time.Minute
|
||||
PostgresConnectTimeout = 15 * time.Second
|
||||
)
|
||||
|
||||
@@ -77,4 +77,4 @@ func (p *Patroni) Failover(master *v1.Pod, candidate string) error {
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user