Add a response forwarding section to the service documentation
This commit is contained in:
parent
0082fe8173
commit
6f63e24dbb
4 changed files with 37 additions and 8 deletions
|
@ -346,7 +346,39 @@ By default, `passHostHeader` is true.
|
|||
loadBalancer:
|
||||
passHostHeader: false
|
||||
```
|
||||
|
||||
#### Response Forwarding
|
||||
|
||||
This section is about configuring how Traefik forwards the response from the backend server to the client.
|
||||
|
||||
Below are the available options for the Response Forwarding mechanism:
|
||||
|
||||
- `FlushInterval` specifies the interval in between flushes to the client while copying the response body.
|
||||
It is a duration in milliseconds, defaulting to 100.
|
||||
A negative value means to flush immediately after each write to the client.
|
||||
The FlushInterval is ignored when ReverseProxy recognizes a response as a streaming response;
|
||||
for such responses, writes are flushed to the client immediately.
|
||||
|
||||
??? example "Using a custom FlushInterval -- Using the [File Provider](../../providers/file.md)"
|
||||
|
||||
```toml tab="TOML"
|
||||
## Dynamic configuration
|
||||
[http.services]
|
||||
[http.services.Service-1]
|
||||
[http.services.Service-1.loadBalancer.responseForwarding]
|
||||
flushInterval = "1s"
|
||||
```
|
||||
|
||||
```yaml tab="YAML"
|
||||
## Dynamic configuration
|
||||
http:
|
||||
services:
|
||||
Service-1:
|
||||
loadBalancer:
|
||||
responseForwarding:
|
||||
flushInterval: 1s
|
||||
```
|
||||
|
||||
### Weighted Round Robin (service)
|
||||
|
||||
The WRR is able to load balance the requests between multiple services based on weights.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue