mirror of
https://github.com/vale981/ray
synced 2025-03-12 06:06:39 -04:00

## Why are these changes needed? This PR does 2 things. 1. When `--detail` is specified, set the default formatting as yaml. 2. It seems like it takes 5 seconds to register the head node to the API server (because it gets node info every 5 second, and when the API server just starts, the head node is not registered to GCS). It decreases the node ping frequency until the head node is registered to API server. ## Related issue number Closes https://github.com/ray-project/ray/issues/26939
12 lines
435 B
Python
12 lines
435 B
Python
NODE_STATS_UPDATE_INTERVAL_SECONDS = 1
|
|
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
|
|
# If the head node is not updated within
|
|
# this timeout, it will stop frequent update.
|
|
FREQUENT_UPDATE_TIMEOUT_SECONDS = 10
|
|
MAX_COUNT_OF_GCS_RPC_ERROR = 10
|
|
MAX_LOGS_TO_CACHE = 10000
|
|
LOG_PRUNE_THREASHOLD = 1.25
|