• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stacklok / toolhive / 21703606220

05 Feb 2026 08:03AM UTC coverage: 60.806% (+0.1%) from 60.668%
21703606220

push

github

web-flow
Add circuit breaker pattern to vMCP health monitoring (#3528)

* Add circuit breaker pattern to vMCP health monitoring

Implement circuit breaker state machine for backend health monitoring
in Virtual MCP Server. The circuit breaker prevents cascading failures
by tracking backend failures and transitioning through three states:
Closed (normal operation), Open (failing), and HalfOpen (recovery testing).

Key changes:
  - Add CircuitBreaker with thread-safe state machine
  - Integrate circuit breaker with status tracker
  - Integrate circuit breaker with health monitor
  - Add comprehensive test coverage

The circuit breaker is disabled by default for backwards compatibility.
Configuration wiring from YAML/CRD to health monitor is intentionally
left for a follow-up PR to keep this change focused on the core
implementation.

Related-to: #3036

* changes from review

* changes from review

* changes from review

---------

Co-authored-by: taskbot <taskbot@users.noreply.github.com>

253 of 285 new or added lines in 3 files covered. (88.77%)

12 existing lines in 4 files now uncovered.

40775 of 67058 relevant lines covered (60.81%)

79.14 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

79.58
/pkg/transport/proxy/httpsse/http_proxy.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc