Skip to content

Commit 72da5b5

Browse files
committed
Add request coalescing, result cache, and queue depth limit
1 parent 1988e46 commit 72da5b5

2 files changed

Lines changed: 257 additions & 23 deletions

File tree

Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ RUN pip install --no-cache-dir aiohttp && \
1616
EXPOSE 8080
1717

1818
# Tuning via env vars:
19-
# VFBQUERY_PORT (default 8080)
20-
# VFBQUERY_HOST (default 0.0.0.0)
21-
# VFBQUERY_WORKERS (default: 10)
22-
# VFBQUERY_MAX_CONCURRENT (default: workers × 2)
19+
# VFBQUERY_PORT (default 8080)
20+
# VFBQUERY_HOST (default 0.0.0.0)
21+
# VFBQUERY_WORKERS (default: 10)
22+
# VFBQUERY_MAX_CONCURRENT (default: workers × 2)
23+
# VFBQUERY_MAX_QUEUE_DEPTH (default: 200, 0 = unlimited)
24+
# VFBQUERY_CACHE_TTL (default: 300 seconds)
2325

2426
ENTRYPOINT ["python", "-m", "vfbquery.ha_api"]

0 commit comments

Comments
 (0)