ray-embedding 0.13.7__py3-none-any.whl → 0.13.9__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ray_embedding/node_health.py +9 -9
- {ray_embedding-0.13.7.dist-info → ray_embedding-0.13.9.dist-info}/METADATA +1 -1
- {ray_embedding-0.13.7.dist-info → ray_embedding-0.13.9.dist-info}/RECORD +5 -5
- {ray_embedding-0.13.7.dist-info → ray_embedding-0.13.9.dist-info}/WHEEL +0 -0
- {ray_embedding-0.13.7.dist-info → ray_embedding-0.13.9.dist-info}/top_level.txt +0 -0
ray_embedding/node_health.py
CHANGED
|
@@ -76,17 +76,17 @@ class NodeHealthTracker:
|
|
|
76
76
|
target_node_id = next(node["NodeID"] for node in ray.nodes() if node["Alive"] and node["NodeManagerAddress"] == node_ip)
|
|
77
77
|
assert target_node_id, f"No node found with IP {node_ip}"
|
|
78
78
|
prefixes = tuple(f"SERVE_REPLICA::{self.app_name}#{d}" for d in self.tracked_model_deployments)
|
|
79
|
-
self.logger.info(f"Checking actors with prefixes: {prefixes} in node {node_ip}, ID {target_node_id}")
|
|
79
|
+
self.logger.info(f"Checking actors with prefixes: {prefixes} in node IP {node_ip}, ID {target_node_id}")
|
|
80
80
|
|
|
81
|
-
for actor in list_actors(detail=False):
|
|
81
|
+
for actor in list_actors(detail=False, filters=[("node_id", "=", target_node_id)]):
|
|
82
82
|
self.logger.info(f"Checking actor: {actor}")
|
|
83
|
-
if
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
83
|
+
if actor.state in ["DEPENDENCIES_UNREADY", 'PENDING_CREATION', 'ALIVE', 'RESTARTING']:
|
|
84
|
+
for prefix in prefixes:
|
|
85
|
+
if actor.name.startswith(prefix):
|
|
86
|
+
self.logger.info(f"Found a replica {actor.name} of "
|
|
87
|
+
f"tracked_deployments={self.tracked_model_deployments} "
|
|
88
|
+
f"running in node IP {node_ip}, node ID {target_node_id}.")
|
|
89
|
+
return True
|
|
90
90
|
self.logger.info(f"No replicas of tracked deployments={self.tracked_model_deployments} running on node: {node_ip}.")
|
|
91
91
|
return False
|
|
92
92
|
except Exception as e:
|
|
@@ -3,8 +3,8 @@ ray_embedding/deploy.py,sha256=2R7bQ7aPc9G8H9KVoemxum6-9YxmlXQogWbhFhuslko,3762
|
|
|
3
3
|
ray_embedding/dto.py,sha256=lk_LuVQPq3MLIMTMddqHviYXILY6V5dvbzDJuD_D_qc,1573
|
|
4
4
|
ray_embedding/embedding_model.py,sha256=P2xyXCznxXmdQBK6zodOJEMvxGVRMA8Ra3O5Qi7RCh0,6013
|
|
5
5
|
ray_embedding/model_router.py,sha256=fmaeXzaAJeCemzL9nUoXfdCrU-ZaCe_29fx5ayDCTC0,6845
|
|
6
|
-
ray_embedding/node_health.py,sha256=
|
|
7
|
-
ray_embedding-0.13.
|
|
8
|
-
ray_embedding-0.13.
|
|
9
|
-
ray_embedding-0.13.
|
|
10
|
-
ray_embedding-0.13.
|
|
6
|
+
ray_embedding/node_health.py,sha256=bKRoFHS6cVRQBOYTcv0dRA61VDeiJjmIPT8tA0hbRIU,5350
|
|
7
|
+
ray_embedding-0.13.9.dist-info/METADATA,sha256=O1ObZ9JwO7eI-6Vke5hwxmyLy4VvRWIb0IgiTD6GZzQ,1074
|
|
8
|
+
ray_embedding-0.13.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
9
|
+
ray_embedding-0.13.9.dist-info/top_level.txt,sha256=ziCblpJq1YsrryshFqxTRuRMgNuO1_tgvAAkGShATNA,14
|
|
10
|
+
ray_embedding-0.13.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|