1
0
Fork 0

refactor(marathon): rewrite configuration system.

This commit is contained in:
Fernandez Ludovic 2017-12-02 19:27:47 +01:00 committed by Traefiker
parent ae2ae85070
commit cee022b935
9 changed files with 649 additions and 1319 deletions

View file

@ -11,11 +11,11 @@ const (
// readinessCheckDefaultTimeout is the default timeout for a readiness
// check if no check timeout is specified on the application spec. This
// should really never be the case, but better be safe than sorry.
readinessCheckDefaultTimeout time.Duration = 10 * time.Second
readinessCheckDefaultTimeout = 10 * time.Second
// readinessCheckSafetyMargin is some buffer duration to account for
// small offsets in readiness check execution.
readinessCheckSafetyMargin time.Duration = 5 * time.Second
readinessLogHeader string = "Marathon readiness check: "
readinessCheckSafetyMargin = 5 * time.Second
readinessLogHeader = "Marathon readiness check: "
)
type readinessChecker struct {