Skip to content

Commit a047923

Browse files
authored
Is active bug fixes (#308)
* fixed enabled and reachable in view gateway modal Signed-off-by: Keval Mahajan <[email protected]> * minor change Signed-off-by: Keval Mahajan <[email protected]> * Update readme for federation Signed-off-by: Keval Mahajan <[email protected]> --------- Signed-off-by: Keval Mahajan <[email protected]>
1 parent ea15c85 commit a047923

File tree

7 files changed

+43
-724
lines changed

7 files changed

+43
-724
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1625,7 +1625,6 @@ make lint # Run lint tools
16251625
│ │ ├── __init__.py
16261626
│ │ ├── discovery.py # Peer-gateway discovery
16271627
│ │ ├── forward.py # RPC forwarding
1628-
│ │ └── manager.py # Orchestration & health checks
16291628
│ ├── handlers
16301629
│ │ ├── __init__.py
16311630
│ │ └── sampling.py # Streaming sampling handler

docs/docs/architecture/adr/009-built-in-health-checks.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ Implement two health-check levels:
2727

2828
2. **Federated peer liveness**:
2929
- Every `HEALTH_CHECK_INTERVAL`, we ping all registered peers via HTTP
30-
- If a peer fails `UNHEALTHY_THRESHOLD` times consecutively, it's temporarily deactivated
31-
- A separate background task handles this (see `FederationManager`)
30+
- If a peer fails `UNHEALTHY_THRESHOLD` times consecutively, it's tagged as 'Offline' i.e. The gateway is unreachable. Once its back online, it's automatically tagged as 'Active'
31+
- A separate background task handles this (see `GatewayService`)
3232

3333
Health info is also published to `/metrics` in Prometheus format.
3434

@@ -50,4 +50,4 @@ Health info is also published to `/metrics` in Prometheus format.
5050

5151
## Status
5252

53-
This is implemented as part of the `FederationManager` and exposed via `/health` and `/metrics` endpoints.
53+
This is implemented as part of the `GatewayService` and exposed via `/health` and `/metrics` endpoints.

mcpgateway/federation/__init__.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,8 @@
1313

1414
from mcpgateway.federation.discovery import DiscoveryService
1515
from mcpgateway.federation.forward import ForwardingService
16-
from mcpgateway.federation.manager import (
17-
FederationError,
18-
FederationManager,
19-
)
2016

2117
__all__ = [
2218
"DiscoveryService",
2319
"ForwardingService",
24-
"FederationManager",
25-
"FederationError",
2620
]

0 commit comments

Comments
 (0)