mirror of
https://github.com/caddyserver/website.git
synced 2025-04-25 14:36:16 -04:00
Docs for v2.7.2
This commit is contained in:
parent
ee39c96c78
commit
d931345756
16 changed files with 143 additions and 42 deletions
|
@ -38,6 +38,7 @@ Proxies requests to one or more backends with configurable transport, load balan
|
|||
- [Load balancing](#load-balancing)
|
||||
- [Active health checks](#active-health-checks)
|
||||
- [Passive health checks](#passive-health-checks)
|
||||
- [Events](#events)
|
||||
- [Streaming](#streaming)
|
||||
- [Headers](#headers)
|
||||
- [Rewrites](#rewrites)
|
||||
|
@ -334,6 +335,16 @@ Passive health checks happen inline with actual proxied requests. To enable this
|
|||
This should be a reasonably large number; configuring this means that the proxy will have a limit of `unhealthy_request_count × upstreams_count` total simultaneous requests, and any requests after that point will result in an error due to no upstreams being available.
|
||||
|
||||
|
||||
### Events
|
||||
|
||||
When an upstream transitions from being healthy to unhealthy or vice-versa, [an event](/docs/caddyfile/options#event-options) is emitted. These events can be used to trigger other actions, such as sending a notification or logging a message. The events are as follows:
|
||||
|
||||
- `healthy` is emitted when an upstream is marked healthy when it was previous unhealthy
|
||||
- `unhealthy` is emitted when an upstream is marked unhealthy when it was previous healthy
|
||||
|
||||
In both cases, the `host` is included as metadata in the event to identify the upstream that changed state. It can be used as a placeholder with `{event.data.host}` with the `exec` event handler, for example.
|
||||
|
||||
|
||||
|
||||
### Streaming
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue