|
14 | 14 | import numpy as np |
15 | 15 | import numpy.typing as npt |
16 | 16 | import requests |
17 | | -import zmq |
18 | 17 |
|
19 | 18 | from sglang.srt.disaggregation.base.conn import KVArgs, KVPoll |
20 | 19 | from sglang.srt.disaggregation.common.conn import ( |
@@ -235,9 +234,6 @@ def __init__( |
235 | 234 | # These timeout requests should be aborted to release the tree cache. |
236 | 235 | self.waiting_timeout = envs.SGLANG_DISAGGREGATION_WAITING_TIMEOUT.get() |
237 | 236 |
|
238 | | - self.failure_records: Dict[int, str] = {} |
239 | | - self.failure_lock = threading.Lock() |
240 | | - |
241 | 237 | def init_engine(self): |
242 | 238 | self.engine = get_mooncake_transfer_engine() |
243 | 239 |
|
@@ -1095,25 +1091,6 @@ def add_transfer_request( |
1095 | 1091 | ) |
1096 | 1092 | ) |
1097 | 1093 |
|
1098 | | - def check_status(self, bootstrap_room: int): |
1099 | | - return self.request_status[bootstrap_room] |
1100 | | - |
1101 | | - def update_status(self, bootstrap_room: int, status: KVPoll): |
1102 | | - if bootstrap_room not in self.request_status: |
1103 | | - self.request_status[bootstrap_room] = status |
1104 | | - else: |
1105 | | - # NOTE: status is only allowed to be incremented unless it is KVPoll.Failed |
1106 | | - if status == KVPoll.Failed: |
1107 | | - self.request_status[bootstrap_room] = KVPoll.Failed |
1108 | | - else: |
1109 | | - self.request_status[bootstrap_room] = max( |
1110 | | - self.request_status[bootstrap_room], status |
1111 | | - ) |
1112 | | - |
1113 | | - def record_failure(self, bootstrap_room: int, failure_reason: str): |
1114 | | - with self.failure_lock: |
1115 | | - self.failure_records[bootstrap_room] = failure_reason |
1116 | | - |
1117 | 1094 | def get_session_id(self): |
1118 | 1095 | return self.engine.get_session_id() |
1119 | 1096 |
|
@@ -1242,11 +1219,6 @@ def abort(self): |
1242 | 1219 |
|
1243 | 1220 |
|
1244 | 1221 | class MooncakeKVReceiver(CommonKVReceiver): |
1245 | | - _ctx = zmq.Context() |
1246 | | - _socket_cache = {} |
1247 | | - _socket_locks = {} |
1248 | | - _global_lock = threading.Lock() |
1249 | | - |
1250 | 1222 | def __init__( |
1251 | 1223 | self, |
1252 | 1224 | mgr: MooncakeKVManager, |
|
0 commit comments