Commit e13677f
committed
feat: add health tracking, script caching, memory limits, body/WS handlers
- Re-enable CI (uncomment triggers, remove if:false)
- Track in-flight requests and populate LoadMetrics in health_status()
- Add degraded state detection when error rate > 10%
- Add requests_allowed counter, error_rate and in_flight gauges
- Cache JsContext to avoid re-evaluation per call, rebuild on reconfigure
- Enforce configurable memory limit (default 64MB)
- Implement on_request_body_chunk, on_response_body_chunk, on_websocket_frame
- Enable streaming_body and websocket capabilities1 parent 47d0e33 commit e13677f
2 files changed
Lines changed: 317 additions & 61 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
10 | 8 | | |
11 | 9 | | |
12 | 10 | | |
| |||
17 | 15 | | |
18 | 16 | | |
19 | 17 | | |
20 | | - | |
21 | 18 | | |
22 | 19 | | |
23 | 20 | | |
| |||
41 | 38 | | |
42 | 39 | | |
43 | 40 | | |
44 | | - | |
45 | 41 | | |
46 | 42 | | |
47 | 43 | | |
| |||
65 | 61 | | |
66 | 62 | | |
67 | 63 | | |
68 | | - | |
69 | 64 | | |
70 | 65 | | |
71 | 66 | | |
| |||
80 | 75 | | |
81 | 76 | | |
82 | 77 | | |
83 | | - | |
84 | 78 | | |
85 | 79 | | |
86 | 80 | | |
| |||
0 commit comments