cache: Per-client fair-share bandwidth on table uplink
This commit is contained in:
@@ -236,6 +236,10 @@ While most configuration is done via the YAML file, some runtime options are sti
|
||||
./steamcache2 --max-concurrent-requests 8
|
||||
./steamcache2 --max-requests-per-client 4
|
||||
|
||||
# Table-tier uplink shaping (empty/0 = use config / disabled)
|
||||
./steamcache2 --uplink-bandwidth 10MB
|
||||
./steamcache2 --max-bytes-per-client-per-sec 2500000
|
||||
|
||||
# Show help
|
||||
./steamcache2 --help
|
||||
```
|
||||
@@ -252,6 +256,11 @@ listen_address: :80
|
||||
max_object_size: "0" # 0=unlimited; set e.g. "256MB" for response size DoS protection
|
||||
trusted_proxies: [] # empty = safe (ignore XFF for rate limit); set CIDRs for trusted proxies
|
||||
|
||||
# Table-tier uplink bandwidth shaping (bytes/sec). Empty/0 = disabled (unlimited).
|
||||
# Distinct from max_requests_per_client (concurrency). See "Table-tier uplink fair-share".
|
||||
uplink_bandwidth: "" # e.g. "10MB" = 10e6 bytes/sec shared fairly across active clients
|
||||
max_bytes_per_client_per_sec: 0 # optional absolute per-client cap; 0 = no absolute cap
|
||||
|
||||
# Cache configuration
|
||||
cache:
|
||||
# Memory cache settings
|
||||
|
||||
Reference in New Issue
Block a user