-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[core][dashboard] configurable timeouts (#47181)
Ray Dashboard reorganizes stats of all nodes and all workers every 2s, and purges them every 600s. Make these 2 numbers configurable. Also removed 2 never used numbers. Signed-off-by: Ruiyang Wang <rywang014@gmail.com>
- Loading branch information
Showing
6 changed files
with
26 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
from ray._private.ray_constants import env_integer | ||
from ray._private.ray_constants import env_float, env_integer | ||
|
||
NODE_STATS_UPDATE_INTERVAL_SECONDS = 5 | ||
UPDATE_NODES_INTERVAL_SECONDS = 5 | ||
NODE_STATS_UPDATE_INTERVAL_SECONDS = env_integer( | ||
"NODE_STATS_UPDATE_INTERVAL_SECONDS", 5 | ||
) | ||
UPDATE_NODES_INTERVAL_SECONDS = env_integer("UPDATE_NODES_INTERVAL_SECONDS", 5) | ||
# Until the head node is registered, | ||
# the API server is doing more frequent update | ||
# with this interval. | ||
FREQUENTY_UPDATE_NODES_INTERVAL_SECONDS = 0.1 | ||
FREQUENTY_UPDATE_NODES_INTERVAL_SECONDS = env_float( | ||
"FREQUENTY_UPDATE_NODES_INTERVAL_SECONDS", 0.1 | ||
) | ||
# If the head node is not updated within | ||
# this timeout, it will stop frequent update. | ||
FREQUENT_UPDATE_TIMEOUT_SECONDS = 10 | ||
FREQUENT_UPDATE_TIMEOUT_SECONDS = env_integer("FREQUENT_UPDATE_TIMEOUT_SECONDS", 10) | ||
MAX_COUNT_OF_GCS_RPC_ERROR = 10 | ||
|
||
# Timeout for RPCs to GCS. | ||
GCS_RPC_TIMEOUT_SECONDS = env_integer("RAY_DASHBOARD_GCS_RPC_TIMEOUT_SECONDS", 60) |
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