feat(chalice): changed health-check for EE
This commit is contained in:
parent
30b7d04778
commit
c609ee6269
2 changed files with 2 additions and 3 deletions
|
|
@ -139,6 +139,8 @@ def get_health():
|
|||
"clickhouse": __check_database_ch
|
||||
},
|
||||
"ingestionPipeline": {
|
||||
**({"redis": __check_redis} if config("REDIS_STRING", default=None)
|
||||
and len(config("REDIS_STRING")) > 0 else {}),
|
||||
# "kafka": __check_kafka
|
||||
"kafka": __always_healthy
|
||||
},
|
||||
|
|
@ -161,8 +163,6 @@ def get_health():
|
|||
"storage": __check_be_service("storage")
|
||||
}
|
||||
}
|
||||
if config("REDIS_STRING", default=None) is not None and len(config("REDIS_STRING")) > 0:
|
||||
health_map["ingestionPipeline"]["redis"] = __check_redis
|
||||
for parent_key in health_map.keys():
|
||||
for element_key in health_map[parent_key]:
|
||||
health_map[parent_key][element_key] = health_map[parent_key][element_key]()
|
||||
|
|
|
|||
|
|
@ -72,6 +72,5 @@ DEVTOOLS_MOB_PATTERN=%(sessionId)s/devtools.mob
|
|||
PRESIGNED_URL_EXPIRATION=3600
|
||||
ASSIST_JWT_EXPIRATION=144000
|
||||
ASSIST_JWT_SECRET=
|
||||
REDIS_STRING=redis://redis-master.db.svc.cluster.local:6379
|
||||
KAFKA_SERVERS=kafka.db.svc.cluster.local:9092
|
||||
KAFKA_USE_SSL=false
|
||||
Loading…
Add table
Reference in a new issue