[bugfix] Fix 2 minor bugs in the hicache storage layer (#8404)

This commit is contained in:
yi wang
2025-07-31 13:47:14 +08:00
committed by GitHub
parent 43118f5f2a
commit 5963e50503
2 changed files with 6 additions and 5 deletions

View File

@@ -147,7 +147,7 @@
"hide": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "P95",
"legendFormat": "P50",
"range": true,
"refId": "C",
"useBackend": false
@@ -164,7 +164,7 @@
"hide": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "P50",
"legendFormat": "Avg",
"range": true,
"refId": "D",
"useBackend": false
@@ -393,7 +393,7 @@
"hide": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "P95",
"legendFormat": "P50",
"range": true,
"refId": "C",
"useBackend": false
@@ -405,12 +405,12 @@
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "avg(rate(sglang:time_to_first_token_seconds_bucket[$__rate_interval]) / rate(sglang:time_to_first_token_seconds_bucket[$__rate_interval]))\r\n",
"expr": "avg(rate(sglang:time_to_first_token_seconds_sum[$__rate_interval]) / rate(sglang:time_to_first_token_seconds_count[$__rate_interval]))\r\n",
"fullMetaSearch": false,
"hide": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "P50",
"legendFormat": "Avg",
"range": true,
"refId": "D",
"useBackend": false

View File

@@ -113,6 +113,7 @@ class HiRadixCache(RadixCache):
)
if host_indices is not None:
node.host_value = host_indices
assert len(node.host_value) > 0
self.ongoing_write_through[node.id] = node
if not write_back:
# no need to lock nodes if write back