0.38.6_agent_hotfix

This commit is contained in:
Mateusz Gruszczyński committed 2026-11-19 08:53:34 +01:00
1 parent 1239ff524d
commit d4a604970e
14 files changed
+478 -162

No files matched your search

+6
View File
@@ -69,6 +69,12 @@ Agent 0.37.2 lists every active host interface again on systemd installations: t
Agents 0.37.0+ report host data when RustProxy 0.37.0+ asks for it: OS and kernel, architecture, Docker/Podman runtime and version, uptime, load average, CPU usage, memory, swap, disk usage of the container data directory, host network totals and current rates (container/virtual interfaces excluded) and running/total container and image counts. They are shown in **Docker vhosts → Agent details → Host system** and in a compact strip in **Settings → Docker agents**. Values an agent does not send are not shown; older agents show none. Disable reporting on the agent with `RUSTPROXY_DOCKER_SYSTEM_INFO=false`.
### Agent resource limits and diagnostics
The Docker host agent limits active inventory requests to two (extra authenticated requests get HTTP 503 with `Retry-After: 1`) and uses eight workers with a shared 15-second container-statistics cache (maximum 64 containers per refresh). Docker container discovery and port bindings are still fetched for each inventory request. Enrollment is limited to a global burst of six requests, replenished at one per second (HTTP 429 with `Retry-After: 1` when exhausted); protect the agent port with a firewall allowlist.
To investigate OOMKilled or steadily increasing open file descriptors, query authenticated `GET /v1/diagnostics` directly on the agent. The response includes current `rss_bytes`, `go_heap_alloc_bytes`, `goroutines` and, on Linux, `open_fds`. It does **not** expose the permanent token or enable unauthenticated process metrics. Compare successive snapshots with host/container memory limits; it does not collect historical samples. Full details are in [docker-agent/README.md](../docker-agent/README.md#api-and-troubleshooting).
### Alerts
RustProxy turns agent and host problems into ordinary alerts, using only the latest agent poll (nothing is kept over time): an **agent that could not be reached at the last check** (severity error), **disk** or **memory** use at or above the threshold (default 90% / 95%), **load per CPU** (the host's own 5-minute load average divided by logical CPUs) at or above the threshold (default 2.0), a **published service that disappeared from the inventory**, a published **container that is unhealthy, restarting, exited or dead**, and **container labels** that could not be published. Alerts appear as a **Docker** entry in the application status in the sidebar (amber for warnings, red for errors), as a notification when a new alert appears, as a list at the top of **Docker vhosts**, as `Docker alert raised` / `Docker alert cleared` log lines and as Prometheus `rust_proxy_docker_alert{agent,kind,severity,service}`. Configure them under **Settings → Docker agents → Alerts**; switching alerts off removes them everywhere. For alerts over longer periods use Prometheus/Grafana with the `rust_proxy_docker_*` metrics.
+1 -1
View File
@@ -94,7 +94,7 @@ RustProxy is a single service that combines a reverse proxy, a static/PHP web se
- Headless mode without the panel: configuration from a read-only JSON file, catch-all `*` host, reload by `SIGHUP`/`systemctl reload` and a `/healthz` endpoint ([Headless mode](HEADLESS.md)).
- Revision history with diff and one-click restore.
- Encrypted full backups and validated offline restore; encrypted Secret Store for credentials.
- Docker and Podman discovery through a separate agent: publish containers as Vhosts with one switch, one-time agent provisioning codes, publishing from container labels, multiple domains and certificate lists per agent, per-app HTTP Basic Auth, method policy, rate limit, country access, security and diagnostic headers, a searchable list of published apps, host and container diagnostics with history, Docker alerts, Prometheus host metrics and optional Docker Overview cards; the Grafana dashboard covers several RustProxy servers.
- Docker and Podman discovery through a separate agent: publish containers as Vhosts with one switch, one-time agent provisioning codes, publishing from container labels, multiple domains and certificate lists per agent, per-app HTTP Basic Auth, method policy, rate limit, country access, security and diagnostic headers, a searchable list of published apps, host and container diagnostics with history, authenticated agent process diagnostics and bounded inventory polling, Docker alerts, Prometheus host metrics and optional Docker Overview cards; the Grafana dashboard covers several RustProxy servers.
- Nginx Proxy Manager import with a dry-run plan.
- Managed install/update scripts with rollback, DEB/RPM packages, Docker image and an OPNsense plugin.
- Panel in English and Polish, light and dark themes, adjustable density and corner style, plus a default-on stable dialog position option for tabbed editors.
+1 -1
View File
@@ -46,7 +46,7 @@ Guides for operating RustProxy: installation, publishing services, security, cer
- [Logs](LOGS.md) — live, stored and error logs.
- [Backup and recovery](BACKUP.md) — encrypted backups, restore and the Secret Store.
- [Migration](MIGRATION.md) — upgrades and Nginx Proxy Manager import.
- [Docker discovery](DOCKER_DISCOVERY.md) — Docker agent and generated Vhosts.
- [Docker discovery](DOCKER_DISCOVERY.md) — Docker agent, generated Vhosts, agent resource limits and process diagnostics.
- [Administration API](API.md) — authentication, tokens, endpoints, lightweight polling views and configuration sections.
## Integrations