GetRestartTimeout is used to have a timeout for operations that involve a restart of a PostgreSQL instance
()
| 755 | // GetRestartTimeout is used to have a timeout for operations that involve |
| 756 | // a restart of a PostgreSQL instance |
| 757 | func (cluster *Cluster) GetRestartTimeout() time.Duration { |
| 758 | return time.Duration(cluster.GetMaxStopDelay()+cluster.GetMaxStartDelay()) * time.Second |
| 759 | } |
| 760 | |
| 761 | // GetPrimaryLeaseDuration returns how long the primary lease is valid before it expires |
| 762 | func (cluster *Cluster) GetPrimaryLeaseDuration() time.Duration { |
no test coverage detected