mirror of
https://github.com/docker/docs.git
synced 2026-04-03 09:49:05 +07:00
Fix the key names for the server health checks
Signed-off-by: Ying Li <ying.li@docker.com>
This commit is contained in:
@@ -114,10 +114,10 @@ func main() {
|
||||
viper.GetString("trust_service.tls_ca_file"),
|
||||
)
|
||||
health.RegisterPeriodicFunc(
|
||||
"Key Manager Healthy", trust.(*signer.NotarySigner).KMHealth,
|
||||
"Key manager operational", trust.(*signer.NotarySigner).KMHealth,
|
||||
time.Second*60)
|
||||
health.RegisterPeriodicFunc(
|
||||
"Signer Healthy", trust.(*signer.NotarySigner).SHealth,
|
||||
"Signer operational", trust.(*signer.NotarySigner).SHealth,
|
||||
time.Second*60)
|
||||
} else {
|
||||
logrus.Info("Using local signing service")
|
||||
@@ -133,7 +133,7 @@ func main() {
|
||||
return // not strictly needed but let's be explicit
|
||||
}
|
||||
health.RegisterPeriodicFunc(
|
||||
"DB Operation", store.CheckHealth, time.Second*60)
|
||||
"DB operational", store.CheckHealth, time.Second*60)
|
||||
ctx = context.WithValue(ctx, "metaStore", store)
|
||||
} else {
|
||||
logrus.Debug("Using memory backend")
|
||||
|
||||
Reference in New Issue
Block a user