-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathservices.json
More file actions
150 lines (150 loc) · 5.36 KB
/
services.json
File metadata and controls
150 lines (150 loc) · 5.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
{
"_doc": "Canonical HME service registry. Consumers should derive health URLs, heartbeat files, and startup hints from here instead of hardcoding ports in doctors, pulse probes, and docs.",
"services": [
{
"id": "proxy",
"kind": "http",
"description": "Anthropic-compatible proxy and middleware pipeline",
"env_port": "HME_PROXY_PORT",
"default_port": 9099,
"host": "127.0.0.1",
"health_path": "/health",
"required": true,
"pid_label": "proxy",
"stop_group": "proxy_bundle",
"timeout_sec": 3,
"start": ["tools/HME/hooks/direct/proxy-supervisor.sh", "start"],
"pid_file": "tools/HME/runtime/proxy-supervisor.pid",
"process_patterns": ["hme_proxy.js"],
"log_file": "log/hme-proxy.out",
"fix": "tools/HME/hooks/direct/proxy-supervisor.sh start"
},
{
"id": "proxy_a",
"kind": "http",
"description": "Active-active proxy backend slot A (shuffler forwards to whichever of a/b is routable)",
"env_port": "HME_PROXY_BACKEND_A_PORT",
"default_port": 9100,
"host": "127.0.0.1",
"health_path": "/health",
"required": false,
"pid_label": "proxy_a",
"stop_group": "proxy_bundle",
"timeout_sec": 3,
"process_patterns": ["hme_proxy.js"],
"heartbeat_file": "tools/HME/runtime/proxy-a.health",
"drain_flag": "tools/HME/runtime/proxy-a.drain.flag",
"restart_throttle_sentinel": "tools/HME/runtime/proxy-restart-a.ts",
"log_file": "log/hme-proxy-a.out",
"fix": "tools/HME/launcher/polychron-proxy-restart.sh --slot a"
},
{
"id": "proxy_b",
"kind": "http",
"description": "Active-active proxy backend slot B (shuffler forwards to whichever of a/b is routable)",
"env_port": "HME_PROXY_BACKEND_B_PORT",
"default_port": 9101,
"host": "127.0.0.1",
"health_path": "/health",
"required": false,
"pid_label": "proxy_b",
"stop_group": "proxy_bundle",
"timeout_sec": 3,
"process_patterns": ["hme_proxy.js"],
"heartbeat_file": "tools/HME/runtime/proxy-b.health",
"drain_flag": "tools/HME/runtime/proxy-b.drain.flag",
"restart_throttle_sentinel": "tools/HME/runtime/proxy-restart-b.ts",
"log_file": "log/hme-proxy-b.out",
"fix": "tools/HME/launcher/polychron-proxy-restart.sh --slot b"
},
{
"id": "worker",
"kind": "http",
"description": "HME MCP worker",
"env_port": "HME_WORKER_PORT",
"default_port": 9098,
"host": "127.0.0.1",
"health_path": "/health",
"required": true,
"supervised_by": "proxy",
"pid_label": "worker",
"stop_group": "proxy_bundle",
"timeout_sec": 3,
"process_patterns": ["worker.py"],
"log_file": "log/hme-worker.out",
"fix": "restart HME proxy; it supervises worker.py"
},
{
"id": "codex_proxy",
"kind": "http",
"description": "OpenAI Responses-compatible Codex proxy",
"env_port": "HME_CODEX_PROXY_PORT",
"default_port": 9102,
"host": "127.0.0.1",
"health_path": "/health",
"required": false,
"pid_label": "codex_proxy",
"stop_group": "codex_proxy",
"timeout_sec": 3,
"start": ["tools/HME/hooks/direct/codex-proxy-supervisor.sh", "start"],
"pid_file": "tools/HME/runtime/codex-proxy.pid",
"process_patterns": ["codex_proxy.js"],
"log_file": "log/hme-codex-proxy.out",
"fix": "tools/HME/hooks/direct/codex-proxy-supervisor.sh start"
},
{
"id": "llamacpp_daemon",
"kind": "http",
"description": "Local llama.cpp daemon",
"env_port": "HME_LLAMACPP_DAEMON_PORT",
"default_port": 7735,
"host": "127.0.0.1",
"health_path": "/health",
"required": false,
"supervised_by": "proxy",
"pid_label": "llamacpp_daemon",
"stop_group": "proxy_bundle",
"timeout_sec": 3,
"process_patterns": ["llamacpp_daemon"],
"log_file": "log/hme-llamacpp_daemon.out",
"fix": "enable/start local inference daemon when local synthesis is required"
},
{
"id": "omniroute",
"kind": "http",
"description": "OpenAI/Anthropic translation router used by OVERDRIVE_MODE=1",
"env_port": "HME_OMNIROUTE_PORT",
"default_port": 20128,
"host": "127.0.0.1",
"health_path": "/v1/models",
"required": false,
"pid_label": "omniroute",
"stop_group": "omniroute",
"timeout_sec": 3,
"enabled_when": {
"env": "OVERDRIVE_MODE",
"in": ["1"],
"unless_env": "HME_OMNIROUTE_OFF",
"unless_value": "1"
},
"start": ["tools/omniroute/start.sh"],
"process_patterns": ["node_modules/.bin/omniroute", "omniroute --no-open"],
"log_file": "log/omniroute.out",
"fix": "tools/omniroute/start.sh"
},
{
"id": "universal_pulse",
"kind": "heartbeat",
"description": "Out-of-band health pulse and active probe loop",
"heartbeat_file": "tmp/hme-universal-pulse.heartbeat",
"max_age_sec": 90,
"required": true,
"pid_label": "universal_pulse",
"stop_group": "pulse",
"start": ["tools/HME/hooks/direct/universal-pulse-supervisor.sh", "start"],
"pid_file": "tools/HME/runtime/universal-pulse-supervisor.pid",
"log_file": "log/hme-errors.log",
"fix": "tools/HME/hooks/direct/universal-pulse-supervisor.sh start"
}
]
}