Skip to content

Commit 6c8de83

Browse files
committed
docs: update lite.md with proper Minecraft server names and improved examples
1 parent d98e8b3 commit 6c8de83

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

.web/docs/guide/lite.md

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ lite:
6262
```yaml [Round-Robin]
6363
lite:
6464
routes:
65-
- host: api.example.com
66-
backend: [api1:25565, api2:25565, api3:25565]
67-
strategy: round-robin # Fair rotation: api1api2api3api1...
65+
- host: lobby.example.com
66+
backend: [lobby1:25565, lobby2:25565, lobby3:25565]
67+
strategy: round-robin # Fair rotation: lobby1lobby2lobby3lobby1...
6868
```
6969
7070
```yaml [Least-Connections]
@@ -90,37 +90,38 @@ lite:
9090
- host: lobby.example.com
9191
backend: [lobby1:25565, lobby2:25565]
9292
strategy: random
93-
94-
# Performance-based for game servers
95-
- host: games.example.com
96-
backend: [game1:25565, game2:25565, game3:25565]
93+
94+
# Performance-based for game servers
95+
- host: survival.example.com
96+
backend: [survival1:25565, survival2:25565, survival3:25565]
9797
strategy: least-connections
98-
98+
9999
# Latency-optimized for competitive
100-
- host: competitive.example.com
101-
backend: [us:25565, eu:25565, asia:25565]
100+
- host: pvp.example.com
101+
backend: [pvp-us:25565, pvp-eu:25565, pvp-asia:25565]
102102
strategy: lowest-latency
103103
```
104104
105105
::::
106106
107-
| Strategy | Description | Algorithm |
108-
|----------|-------------|-----------|
109-
| `random` (default) | Random backend selection | Cryptographically secure random |
110-
| `round-robin` | Sequential cycling | Fair rotation per route |
111-
| `least-connections` | Routes to least-loaded backend | Real-time connection counting |
112-
| `lowest-latency` | Routes to fastest backend | Status ping latency measurement |
107+
| Strategy | Description | Algorithm |
108+
| ------------------- | ------------------------------ | ------------------------------- |
109+
| `random` (default) | Random backend selection | Cryptographically secure random |
110+
| `round-robin` | Sequential cycling | Fair rotation per route |
111+
| `least-connections` | Routes to least-loaded backend | Real-time connection counting |
112+
| `lowest-latency` | Routes to fastest backend | Status ping latency measurement |
113113

114114
::: tip Performance Notes
115+
115116
- **Immediate selection**: All strategies return instantly without health checks
116-
- **Natural failover**: Failed connections automatically retry next backend
117+
- **Natural failover**: Failed connections automatically retry next backend
117118
- **Latency measurement**: Uses status ping timing (not dial time) for accuracy
118119
- **Thread-safe**: Atomic operations for connection counting
119-
:::
120+
:::
120121

121122
### Behavior Examples
122123

123-
**Round-Robin**: Connection 1 → server1, Connection 2 → server2, Connection 3 → server3, Connection 4 → server1...
124+
**Round-Robin**: Connection 1 → lobby1, Connection 2 → lobby2, Connection 3 → lobby3, Connection 4 → lobby1...
124125

125126
**Least-Connections**: Always routes to the backend with the fewest active players
126127

0 commit comments

Comments
 (0)