Skip to content

feat: box.agent beats every 5 s, floor holds in every tenant (v0.13.1) - #30

Merged
yakari007 merged 2 commits into
masterfrom
fix/box-agent-5s
Oct 11, 2026
Merged

yakari007 merged 2 commits into
masterfrom
fix/box-agent-5s

Conversation

@yakari007

Copy link
Copy Markdown
Contributor

Summary

  • box.agent interval is 5 s (default and minimum), missed_count default 3 (silence CRITICAL after 15 s).
  • New Manifest.TenantFloorExempt: for box.agent the plugin's 5 s floor applies in every tenant instead of the tenant's min_check_interval_seconds (30 s on PlusClouds Türkiye, which the customer API cannot change). No tenant setting is needed to provision boxes.
  • Ingest rate limit back to 1/s burst 10 (the 2/s bump from feat: box.agent heartbeat plugin with its own push token (v0.13.0) #29 is no longer needed).
  • scripts/box-monitor-token.sh create|rotate|delete BOX_ID: creates the host and box.agent check through the PlusClouds API and prints MONITOR_URL / MONITOR_TOKEN; tested live (create, create again refused, rotate, heartbeat 202, delete).
  • Docs (F08, progress) updated.

Test plan

  • plugins/boxagent unit tests (Go 1.25, isolated module)
  • CI: TestBoxAgent now sets the tenant minimum to 30 s, expects 422 at 1 s and 201 at 5 s
  • After merge: tag v0.13.1, deploy, re-run the live check

🤖 Generated with Claude Code

yakari007 and others added 2 commits October 10, 2026 22:17
box.agent's DefaultInterval and MinInterval are now 5 s, and the new
Manifest.TenantFloorExempt makes that floor apply in every tenant, so a
tenant's 30 s or 60 s min_check_interval_seconds no longer blocks box
provisioning (the customer API cannot change it). missed_count defaults
to 3 (silence after 15 s). The ingest rate limit goes back to 1/s.
scripts/box-monitor-token.sh creates, rotates and deletes a box's
monitoring token through the PlusClouds API.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@yakari007
yakari007 merged commit 82bbe7a into master Oct 11, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant