forked from ray-project/ray
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[serve] Maintain replica queue length directly instead of using `_get…
…_actor_call_stats` (ray-project#42485) Removes the reliance on the sketch _get_actor_call_stats API (and removes that API entirely as it was not used elsewhere). Instead, we maintain the count of ongoing requests directly as a counter in the ReplicaMetricsManager. This is possible after ray-project#42298 because all user code now runs on a separate thread so the main actor asyncio loop will be blocked by synchronous user code (unless it holds the GIL, which was not handled previously anyways). Due to this change, we can no longer maintain and report the serve_replica_pending_queries metric. This metric was almost always 0 and effectively useless, so I have elected to completely remove it after offline discussion with the team. --------- Signed-off-by: Edward Oakes <[email protected]> Co-authored-by: shrekris-anyscale <[email protected]> Co-authored-by: Cindy Zhang <[email protected]>
- Loading branch information
1 parent
08ec593
commit 208c540
Showing
10 changed files
with
27 additions
and
242 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.