mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00
parent
97e8afacd3
commit
de22cdb233
3 changed files with 8 additions and 5 deletions
|
@ -70,7 +70,6 @@ export interface NodeInfoResponse {
|
|||
vms: number;
|
||||
rss: number;
|
||||
};
|
||||
memory_full_info: null; // Currently unused as it requires superuser permission on some systems
|
||||
}>;
|
||||
}>;
|
||||
log_counts: {
|
||||
|
|
|
@ -150,8 +150,8 @@ AUTOSCALER_UPDATE_INTERVAL_S = env_integer("AUTOSCALER_UPDATE_INTERVAL_S", 5)
|
|||
AUTOSCALER_HEARTBEAT_TIMEOUT_S = env_integer("AUTOSCALER_HEARTBEAT_TIMEOUT_S",
|
||||
30)
|
||||
|
||||
# The reporter will report its' statistics this often (milliseconds).
|
||||
REPORTER_UPDATE_INTERVAL_MS = env_integer("REPORTER_UPDATE_INTERVAL_MS", 500)
|
||||
# The reporter will report its statistics this often (milliseconds).
|
||||
REPORTER_UPDATE_INTERVAL_MS = env_integer("REPORTER_UPDATE_INTERVAL_MS", 2500)
|
||||
|
||||
# Max number of retries to AWS (default is 5, time increases exponentially)
|
||||
BOTO_MAX_RETRIES = env_integer("BOTO_MAX_RETRIES", 12)
|
||||
|
|
|
@ -112,8 +112,12 @@ class Reporter(object):
|
|||
def get_workers():
|
||||
return [
|
||||
x.as_dict(attrs=[
|
||||
"pid", "create_time", "cpu_percent", "cpu_times", "cmdline",
|
||||
"memory_info", "memory_full_info"
|
||||
"pid",
|
||||
"create_time",
|
||||
"cpu_percent",
|
||||
"cpu_times",
|
||||
"cmdline",
|
||||
"memory_info",
|
||||
]) for x in psutil.process_iter(attrs=["cmdline"])
|
||||
if is_worker(x.info["cmdline"])
|
||||
]
|
||||
|
|
Loading…
Add table
Reference in a new issue