Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjustable Pebble health check timeout #238

Merged
merged 2 commits into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,9 @@ options:
description: >
Boolean value denoting whether modsec based WAF should be enabled. Applied if ingress
relation is available.
health_check_timeout_seconds:
type: int
default: 5
description: >
This setting specifies the duration, in seconds, that pebble will wait for a WordPress health check to complete
before timing out. Use this setting to adjust the timeout based on expected system performance and conditions
2 changes: 1 addition & 1 deletion src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ def _init_pebble_layer(self):
"override": "replace",
"level": "alive",
"http": {"url": "http://localhost"},
"timeout": "5s",
"timeout": f"{self.config.get('health_check_timeout_seconds')}s",
},
},
}
Expand Down
Loading