From d25f7639c9e139c8f7a00f4e5e60f7536262926e Mon Sep 17 00:00:00 2001 From: Guillaume Boutry Date: Mon, 10 Jun 2024 16:33:20 +0200 Subject: [PATCH] Bump horizon timeout and period Loading horizon page is quite slow, on slower hardware it can easily timeout. Bump the timeout to 30s. healthcheck periods must never lower than their timeout. Closes-Bug: #2062030 Change-Id: I6ae8742aa2eb6a38cd6ec4dbcc8a72c26dd426a2 --- charms/horizon-k8s/src/charm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charms/horizon-k8s/src/charm.py b/charms/horizon-k8s/src/charm.py index 1be41d46..4e214c60 100755 --- a/charms/horizon-k8s/src/charm.py +++ b/charms/horizon-k8s/src/charm.py @@ -244,7 +244,7 @@ class HorizonOperatorCharm(sunbeam_charm.OSBaseOperatorAPICharm): @property def healthcheck_period(self) -> str: """Healthcheck period for horizon service.""" - return "15s" + return "45s" @property def healthcheck_http_url(self) -> str: @@ -260,7 +260,7 @@ class HorizonOperatorCharm(sunbeam_charm.OSBaseOperatorAPICharm): @property def healthcheck_http_timeout(self) -> str: """Healthcheck HTTP check timeout for the service.""" - return "12s" + return "30s" if __name__ == "__main__":