1
0
Fork 0
mirror of https://github.com/arangodb/kube-arangodb.git synced 2024-12-15 17:51:03 +00:00

Increase some timeouts.

This commit is contained in:
Max Neunhoeffer 2019-05-24 15:41:31 +02:00
parent 91508e5a00
commit ff84d19890
No known key found for this signature in database
GPG key ID: 89A912AD5E343E1E

View file

@ -70,7 +70,7 @@ func (r *Resources) RunDeploymentHealthLoop(stopCh <-chan struct{}) {
// and stores it in-memory.
func (r *Resources) fetchDeploymentHealth() error {
// Ask cluster for its health
ctx, cancel := context.WithTimeout(context.Background(), time.Second*15)
ctx, cancel := context.WithTimeout(context.Background(), time.Minute)
defer cancel()
client, err := r.context.GetDatabaseClient(ctx)
if err != nil {
@ -151,7 +151,7 @@ func (r *Resources) InvalidateSyncStatus() {
// fetchClusterShardSyncState performs a single fetch of the cluster inventory and
// checks if all shards are in sync
func (r *Resources) fetchClusterShardSyncState() error {
ctx, cancel := context.WithTimeout(context.Background(), time.Second*15)
ctx, cancel := context.WithTimeout(context.Background(), time.Minute*10)
defer cancel()
c, err := r.context.GetDatabaseClient(ctx)
if err != nil {