You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> - `check_interval` _(default: 30s)_ - Time between health checks
19
-
> - `check_timeout` _(default: 5s)_ - Maximum time to wait for response
18
+
> - `check_interval` _(default: 5s)_ - Time between health checks
19
+
> - `check_timeout` _(default: 2s)_ - Maximum time to wait for response
20
20
> - `check_path` _(auto-detected)_ - Health check endpoint path
21
21
>
22
+
> **Note**: Both `check_interval` and `check_timeout` are optional with sensible defaults (5s and 2s respectively), so you don't need to specify them for basic setups.
23
+
>
22
24
> **Environment Variables**: Per-endpoint settings not supported via env vars
23
25
24
26
Olla continuously monitors the health of all configured endpoints to ensure requests are only routed to available backends. The health checking system is automatic and requires minimal configuration.
@@ -814,6 +814,14 @@ Olla validates configuration on startup:
814
814
- Ports must be in valid range (1-65535)
815
815
- CIDR blocks must be valid
816
816
817
+
Additionally, Olla's `Validate()` method catches dangerous zero or empty configuration values that would cause panics or silent failures at runtime. It runs after all config sources (file, environment overrides) have been merged, so the final state is what gets checked. The following conditions produce clear error messages at startup:
818
+
819
+
- `proxy.engine`is empty
820
+
- `proxy.load_balancer`is empty
821
+
- `discovery.type`is empty
822
+
- `server.port`is zero or negative
823
+
- When `model_discovery.enabled` is `true`: `interval`, `concurrent_workers`, or `timeout` is zero
824
+
817
825
## Next Steps
818
826
819
827
- [Configuration Examples](examples.md) - Common configurations
Copy file name to clipboardExpand all lines: docs/content/getting-started/quickstart.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,13 +58,14 @@ discovery:
58
58
name: "local-ollama"
59
59
type: "ollama"
60
60
priority: 100
61
-
health_check_url: "/"
62
61
63
62
logging:
64
63
level: "info"
65
64
format: "json"
66
65
```
67
66
67
+
Settings like `check_interval`, `check_timeout`, and `priority` are optional -- Olla provides sensible defaults for each backend type via its profile system.
0 commit comments