Correctly Format the HTTP Service Documentation
This commit is contained in:
parent
4b50f27d6e
commit
7314f7ddc9
1 changed files with 28 additions and 27 deletions
|
|
@ -189,7 +189,7 @@ On subsequent requests, to keep the session alive with the same server, the clie
|
||||||
|
|
||||||
??? example "Adding Stickiness -- Using the [File Provider](../../../install-configuration/providers/others/file.md)"
|
??? example "Adding Stickiness -- Using the [File Provider](../../../install-configuration/providers/others/file.md)"
|
||||||
|
|
||||||
```yaml tab="YAML"
|
```yaml tab="Structured (YAML)"
|
||||||
## Dynamic configuration
|
## Dynamic configuration
|
||||||
http:
|
http:
|
||||||
services:
|
services:
|
||||||
|
|
@ -199,7 +199,7 @@ On subsequent requests, to keep the session alive with the same server, the clie
|
||||||
cookie: {}
|
cookie: {}
|
||||||
```
|
```
|
||||||
|
|
||||||
```toml tab="TOML"
|
```toml tab="Structured (TOML)"
|
||||||
## Dynamic configuration
|
## Dynamic configuration
|
||||||
[http.services]
|
[http.services]
|
||||||
[http.services.my-service]
|
[http.services.my-service]
|
||||||
|
|
@ -208,7 +208,7 @@ On subsequent requests, to keep the session alive with the same server, the clie
|
||||||
|
|
||||||
??? example "Adding Stickiness with custom Options -- Using the [File Provider](../../../install-configuration/providers/others/file.md)"
|
??? example "Adding Stickiness with custom Options -- Using the [File Provider](../../../install-configuration/providers/others/file.md)"
|
||||||
|
|
||||||
```yaml tab="YAML"
|
```yaml tab="Structured (YAML)"
|
||||||
## Dynamic configuration
|
## Dynamic configuration
|
||||||
http:
|
http:
|
||||||
services:
|
services:
|
||||||
|
|
@ -222,7 +222,7 @@ On subsequent requests, to keep the session alive with the same server, the clie
|
||||||
httpOnly: true
|
httpOnly: true
|
||||||
```
|
```
|
||||||
|
|
||||||
```toml tab="TOML"
|
```toml tab="Structured (TOML)"
|
||||||
## Dynamic configuration
|
## Dynamic configuration
|
||||||
[http.services]
|
[http.services]
|
||||||
[http.services.my-service]
|
[http.services.my-service]
|
||||||
|
|
@ -236,7 +236,7 @@ On subsequent requests, to keep the session alive with the same server, the clie
|
||||||
|
|
||||||
??? example "Setting Stickiness on all the required levels -- Using the [File Provider](../../../install-configuration/providers/others/file.md)"
|
??? example "Setting Stickiness on all the required levels -- Using the [File Provider](../../../install-configuration/providers/others/file.md)"
|
||||||
|
|
||||||
```yaml tab="YAML"
|
```yaml tab="Structured (YAML)"
|
||||||
## Dynamic configuration
|
## Dynamic configuration
|
||||||
http:
|
http:
|
||||||
services:
|
services:
|
||||||
|
|
@ -270,7 +270,7 @@ On subsequent requests, to keep the session alive with the same server, the clie
|
||||||
- url: http://127.0.0.1:8084
|
- url: http://127.0.0.1:8084
|
||||||
```
|
```
|
||||||
|
|
||||||
```toml tab="TOML"
|
```toml tab="Structured (TOML)"
|
||||||
## Dynamic configuration
|
## Dynamic configuration
|
||||||
[http.services]
|
[http.services]
|
||||||
[http.services.wrr1]
|
[http.services.wrr1]
|
||||||
|
|
@ -304,7 +304,7 @@ On subsequent requests, to keep the session alive with the same server, the clie
|
||||||
|
|
||||||
To keep a session open with the same server, the client would then need to specify the two levels within the cookie for each request, e.g. with curl:
|
To keep a session open with the same server, the client would then need to specify the two levels within the cookie for each request, e.g. with curl:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
curl -b "lvl1=whoami1; lvl2=http://127.0.0.1:8081" http://localhost:8000
|
curl -b "lvl1=whoami1; lvl2=http://127.0.0.1:8081" http://localhost:8000
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -453,13 +453,14 @@ http:
|
||||||
[[http.services.appv2.loadBalancer.servers]]
|
[[http.services.appv2.loadBalancer.servers]]
|
||||||
url = "http://private-ip-server-2/"
|
url = "http://private-ip-server-2/"
|
||||||
```
|
```
|
||||||
|
|
||||||
## P2C
|
## P2C
|
||||||
|
|
||||||
Power of two choices algorithm is a load balancing strategy that selects two servers at random and chooses the one with the least number of active requests.
|
Power of two choices algorithm is a load balancing strategy that selects two servers at random and chooses the one with the least number of active requests.
|
||||||
|
|
||||||
??? example "P2C Load Balancing -- Using the [File Provider](../../../install-configuration/providers/others/file.md)"
|
??? example "P2C Load Balancing -- Using the [File Provider](../../../install-configuration/providers/others/file.md)"
|
||||||
|
|
||||||
```yaml tab="YAML"
|
```yaml tab="Structured (YAML)"
|
||||||
## Dynamic configuration
|
## Dynamic configuration
|
||||||
http:
|
http:
|
||||||
services:
|
services:
|
||||||
|
|
@ -472,7 +473,7 @@ Power of two choices algorithm is a load balancing strategy that selects two ser
|
||||||
- url: "http://private-ip-server-3/"
|
- url: "http://private-ip-server-3/"
|
||||||
```
|
```
|
||||||
|
|
||||||
```toml tab="TOML"
|
```toml tab="Structured (TOML) "
|
||||||
## Dynamic configuration
|
## Dynamic configuration
|
||||||
[http.services]
|
[http.services]
|
||||||
[http.services.my-service.loadBalancer]
|
[http.services.my-service.loadBalancer]
|
||||||
|
|
@ -501,7 +502,7 @@ Weighted Round Robin (WRR) with Earliest Deadline First (EDF) scheduling is used
|
||||||
|
|
||||||
??? example "Basic Least-Time Load Balancing -- Using the [File Provider](../../../install-configuration/providers/others/file.md)"
|
??? example "Basic Least-Time Load Balancing -- Using the [File Provider](../../../install-configuration/providers/others/file.md)"
|
||||||
|
|
||||||
```yaml tab="YAML"
|
```yaml tab="Structured (YAML)"
|
||||||
## Dynamic configuration
|
## Dynamic configuration
|
||||||
http:
|
http:
|
||||||
services:
|
services:
|
||||||
|
|
@ -514,7 +515,7 @@ Weighted Round Robin (WRR) with Earliest Deadline First (EDF) scheduling is used
|
||||||
- url: "http://private-ip-server-3/"
|
- url: "http://private-ip-server-3/"
|
||||||
```
|
```
|
||||||
|
|
||||||
```toml tab="TOML"
|
```toml tab="Structured (TOML)"
|
||||||
## Dynamic configuration
|
## Dynamic configuration
|
||||||
[http.services]
|
[http.services]
|
||||||
[http.services.my-service.loadBalancer]
|
[http.services.my-service.loadBalancer]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue