Commit Graph

97 Commits

Author SHA1 Message Date
Simo Lin
70607e55e8 [model-gateway] Replace PolicyRegistry RwLock with DashMap for lock-free policy lookups (#15361) 2025-12-18 00:11:20 -08:00
Simo Lin
53e151945a [model-gateway] optimize worker registry and reduce lock contention in grpc client fetch (#15336) 2025-12-17 08:49:10 -10:00
Simo Lin
d747147a26 [model-gateway] reduce cpu overhead (#15316) 2025-12-17 09:42:01 -08:00
fzyzcjy
c4aed389da Super tiny rename failure_count for consistency (#15186) 2025-12-17 21:21:07 +08:00
Simo Lin
3518b33178 [model-gateway] Remove legacy RouterMetrics and Rename SmgMetrics to Metrics and smg_labels to metrics_labels (#15160) 2025-12-15 04:57:42 -08:00
fzyzcjy
89ad390843 Fix num running requests (load) wrong cleared for ongoing requests (#15116) 2025-12-15 17:40:04 +08:00
Simo Lin
7b9156c773 [model-gateway] add mcp and discovery metrics (#15156) 2025-12-14 22:54:53 -08:00
Simo Lin
bd9c3a47d6 [model-gateway] Add streaming metrics for harmony gRPC router (#15147) 2025-12-14 20:54:43 -08:00
Simo Lin
1e641ee4a7 [model-gateway] upgrade axum and axum server (#15146) 2025-12-14 20:54:01 -08:00
Simo Lin
fb96669ff9 [model-gateway] Add Layer 3 worker metrics (smg_worker_*) (#15130) 2025-12-14 20:25:46 -08:00
fzyzcjy
62b3fdae43 Fix cache aware wrong routing caused by incorrect load tracking (#15101) 2025-12-15 10:03:54 +08:00
fzyzcjy
4449c17011 [model-gateway] fix circuit breaker metrics (#15099)
Co-authored-by: Simo Lin <linsimo.mark@gmail.com>
2025-12-14 15:43:04 -08:00
fzyzcjy
5ca962ce7f [model-gateway] extract circuit breaker state struct (#15098) 2025-12-14 15:40:23 -08:00
Praneth Paruchuri
bab20a849e [model-gateway] Parallelize metrics requests (#14953) 2025-12-14 15:38:45 -08:00
ratish
0e4108ba29 feat(gateway): Add server-side TLS support (#15052) 2025-12-14 15:37:55 -08:00
Simo Lin
0612175ce1 [model-gateway] add streaming metrics (TTFT, TPOT, tokens, duration) for gRPC router (#15125) 2025-12-14 14:39:10 -08:00
Simo Lin
b11af135eb [model-gateway] feat(metrics): implement Layer 2 router metrics (smg_router_*) (#15124) 2025-12-14 10:34:12 -08:00
Simo Lin
f9bceea064 [model-gateway] Implement Layer 1 HTTP metrics instrumentation (#15121) 2025-12-14 09:39:15 -08:00
Simo Lin
47633c191f [model-gateway] Add new SMG metrics architecture with 6 layers (#15106) 2025-12-14 08:37:19 -08:00
fzyzcjy
54df514bac Avoid confusing zero value metric when worker is removed (#15096) 2025-12-14 13:57:20 +08:00
fzyzcjy
681c68cfbf Fix issue not reported when load decrement is incorrect (#15061)
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2025-12-14 13:17:35 +08:00
Simo Lin
74ea45cc4b [model-gateway] optimize metric labels to avoid unnecessary allocations (#15095) 2025-12-13 21:10:45 -08:00
Simo Lin
0fa044ad63 [model-gateway] Add circuit breaker and discovery watcher metrics (#15094) 2025-12-13 20:47:04 -08:00
Simo Lin
7d8e42c979 [model-gateway] Fix metric emission gaps and name mismatch (#15093) 2025-12-13 20:16:30 -08:00
Simo Lin
20ce9938b5 [model-gateway] Remove unused TokenizerMetrics to reduce CPU overhead (#15087) 2025-12-13 18:54:18 -08:00
Simo Lin
fd37cc5d38 [model-gateway] Refactor worker steps and add update workflow (#15085) 2025-12-13 15:00:16 -08:00
Wenyi Xu
2285affffa [model-gateway] Avoid MCP Server Initialization Issue (#15065) 2025-12-13 11:20:16 -08:00
Simo Lin
e048ee90fc [model-gateway] Simplify error response creation (#15079) 2025-12-13 10:28:24 -08:00
fzyzcjy
993278b488 Fix double decrease load (#15060) 2025-12-13 22:12:35 +08:00
fzyzcjy
9e9d910744 Fix load metric not updated when using guard (#15059) 2025-12-13 22:11:52 +08:00
fzyzcjy
bf17e769fe Add sgl_router_attempt_http_responses_total for single attempt information (#15037) 2025-12-13 13:29:18 +08:00
fzyzcjy
9a5d6a84ab Add error code in prometheus metrics and add X-SMG-Error-Code header (#15036) 2025-12-13 13:28:32 +08:00
fzyzcjy
31c23e5fe3 Provide more fine grained error reason for reqwest error (#15032) 2025-12-13 13:27:06 +08:00
fzyzcjy
06617a9ec8 Tiny change http router response format to unify (#15031) 2025-12-13 13:25:45 +08:00
fzyzcjy
e79ca95961 Tiny unify grpc existing error responses into new format (#15030) 2025-12-13 13:25:10 +08:00
fzyzcjy
9d3b411c56 Add code field and unify error responses for router (#15028) 2025-12-13 13:21:34 +08:00
fzyzcjy
05325db349 Super tiny remove unused log_request (#15035) 2025-12-13 13:21:24 +08:00
Simo Lin
9a56273ad2 [model-gateway] refactor: unify worker management into modular workflow structure (#15010) 2025-12-12 15:25:35 -08:00
fzyzcjy
ec242f516e Super tiny extract route_typed_request_once (#14951) 2025-12-12 11:10:10 -08:00
Simo Lin
526fd0082f [model-gateway] refactor: workflow engine cleanup and minor optimization (#15001) 2025-12-12 09:03:28 -08:00
Simo Lin
56d0ad47f4 [model-gateway] fix: handle workflow deadlock and optimize cycle detection (#15000) 2025-12-12 08:53:45 -08:00
Simo Lin
306e5b8d0b [model-gateway] feat: add DAG parallel execution support and workflow optimization (#14999) 2025-12-12 08:31:12 -08:00
Simo Lin
10c68f6236 [model-gateway] refactor: extract workflow engine to src/workflow module (#14996) 2025-12-12 06:29:12 -08:00
fzyzcjy
edb172e927 Super tiny refactor error.rs logic (#14949) 2025-12-12 14:48:18 +08:00
fzyzcjy
a7fa31ff17 Super tiny move error.rs (#14944) 2025-12-12 14:25:30 +08:00
fzyzcjy
bd91f8824a Super tiny remove non-updated sgl_router_worker_load (#14888) 2025-12-12 13:19:30 +08:00
fzyzcjy
b47adb807e Tiny add e2e http request arrival metric (#14893) 2025-12-12 13:18:23 +08:00
fzyzcjy
b2b5bdb06e Tiny add router e2e duration histogram (#14892) 2025-12-12 13:18:13 +08:00
JinYan Su
22fe5da13e Fix negative duration panic in token bucket wait time calculation (#14941)
Signed-off-by: xiaguan <751080330@qq.com>
2025-12-11 21:16:47 -08:00
Praneth Paruchuri
1834401e7c [model-gateway] optimize worker selection (#14894) 2025-12-11 21:15:12 -08:00