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
This commit is contained in:
Guillaume Boutry 2024-06-10 16:33:20 +02:00
parent cfa369e309
commit d25f7639c9
No known key found for this signature in database
GPG Key ID: E95E3326872E55DE

View File

@ -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__":