-
Notifications
You must be signed in to change notification settings - Fork 162
/
config.go
24 lines (18 loc) · 994 Bytes
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (C) 2021 ScyllaDB
package utils
import "time"
const (
// SyncTimeout is the maximum time the sync loop can last. In normal circumstances this is in the order
// of seconds but there are special cases we need to account for. Like when the sync loop generates new keys
// and signs certificates it can take several seconds. When the CI creates multiple clusters in parallel on
// a constrained CPU, one cert can easily take over 30s.
SyncTimeout = 2 * time.Minute
imagePullTimeout = 4 * time.Minute
joinClusterTimeout = 3 * time.Minute
// memberRolloutTimeout is the maximum amount of time it takes to start a scylla pod and become ready.
// It includes the time to pull the images, copy the necessary files (sidecar), join the cluster and similar.
memberRolloutTimeout = 30*time.Second + imagePullTimeout + joinClusterTimeout
baseManagerSyncTimeout = 3 * time.Minute
managerTaskSyncTimeout = 30 * time.Second
nodeConfigRolloutTimeout = 3 * time.Minute
)