You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: main.go
+49-2Lines changed: 49 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,8 @@ import (
41
41
typelabel=string
42
42
43
43
const (
44
-
defaultPort=10901
44
+
defaultPort=10901
45
+
defaultReplicaFactor=3
45
46
46
47
resyncPeriod=5*time.Minute
47
48
defaultScaleTimeout=5*time.Second
@@ -76,6 +77,7 @@ type CmdConfig struct {
76
77
ScaleTimeout time.Duration
77
78
useAzAwareHashRingbool
78
79
podAzAnnotationKeystring
80
+
migrationStatestring
79
81
}
80
82
81
83
funcparseFlags() CmdConfig {
@@ -98,6 +100,7 @@ func parseFlags() CmdConfig {
98
100
flag.DurationVar(&config.ScaleTimeout, "scale-timeout", defaultScaleTimeout, "A timeout to wait for receivers to really start after they report healthy")
99
101
flag.BoolVar(&config.useAzAwareHashRing, "use-az-aware-hashring", false, "A boolean to use az aware hashring to comply with Thanos v0.32+")
100
102
flag.StringVar(&config.podAzAnnotationKey, "pod-az-annotation-key", "", "pod annotation key for AZ Info, If not specified or key not found, will use sts name as AZ key")
103
+
flag.StringVar(&config.migrationState, "migration-state", "no-state", "[Databricks Internal] internal pantheon migration state info")
0 commit comments