Entropic 2.3.8
Local-first agentic inference engine
Loading...
Searching...
No Matches
health_monitor.h File Reference

Monitors external MCP server health and triggers reconnection. More...

#include <entropic/mcp/external_client.h>
#include <entropic/mcp/reconnect_policy.h>
#include <atomic>
#include <chrono>
#include <condition_variable>
#include <functional>
#include <map>
#include <mutex>
#include <string>
#include <thread>
#include <vector>
Include dependency graph for health_monitor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  entropic::HealthEvent
 Status change event posted by the monitor thread. More...
 
class  entropic::HealthMonitor
 Monitors external server connections and handles reconnection. More...
 

Namespaces

namespace  entropic
 Activate model on GPU (WARM → ACTIVE).
 

Detailed Description

Monitors external MCP server health and triggers reconnection.

Runs a background thread that detects connection loss, schedules reconnection with exponential backoff, optionally pings for health, and refreshes tool lists after successful reconnection.

Thread model: status changes are posted to a thread-safe event queue. The engine's main thread drains via process_events(). No cross-thread mutation of engine state.

Version
1.8.7

Definition in file health_monitor.h.