Limit Hub polling and rotate VPS logs

This commit is contained in:
kzolotarev95 committed 2026-10-29 22:02:27 +04:00
1 parent fcde23bfc4
commit 927181dd54
6 files changed
+601 -17

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
# Notification long-poll and VPS log limits
The dashboard keeps one notification long-poll for the current browser profile.
Tabs share a short lease in `localStorage`; the server also admits only one
`/api/notifications/wait` request for a session and client id. A stale cursor
after clearing or pruning the notification file returns an empty response with
the current serial instead of replaying the whole list in a tight loop.
Successful long-poll and HTTP-terminal reads are omitted from the Hub stderr
request log. HTTP errors remain logged. The nginx policy excludes only 2xx
responses for these endpoints from `access.log`.
`install-vps.sh` and `deploy-request-load-fix.ps1` install the same bounded
logging policy: journald is capped at 256 MiB with a seven-day retention limit,
and nginx logs rotate daily with seven compressed archives and a 50 MiB trigger.
The deploy script keeps a backup at
`/root/owrt-remote-backup-before-request-load-v119` and supports Rollback.