[dashboard] include worker id in actor snapshot (#15967)

Co-authored-by: Alex Wu <alex@anyscale.com>
This commit is contained in:
Alex Wu 2021-05-21 09:26:37 -07:00 committed by GitHub
parent 43be599a9a
commit f080911d9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View file

@ -73,6 +73,8 @@ class LogicalViewHead(dashboard_utils.DashboardHeadModule):
"resources": dict( "resources": dict(
actor_table_entry.task_spec.required_resources), actor_table_entry.task_spec.required_resources),
"actor_class": actor_table_entry.class_name, "actor_class": actor_table_entry.class_name,
"current_worker_id": actor_table_entry.address.worker_id.hex(),
"current_raylet_id": actor_table_entry.address.raylet_id.hex(),
"ip_address": actor_table_entry.address.ip_address, "ip_address": actor_table_entry.address.ip_address,
"port": actor_table_entry.address.port, "port": actor_table_entry.address.port,
} }

View file

@ -102,6 +102,12 @@
"actorClass": { "actorClass": {
"type": "string" "type": "string"
}, },
"currentWorkerId": {
"type": "string"
},
"currentRayletId": {
"type": "string"
},
"ipAddress": { "ipAddress": {
"type": "string" "type": "string"
}, },
@ -118,6 +124,8 @@
"endTime", "endTime",
"isDetached", "isDetached",
"resources", "resources",
"currentWorkerId",
"currentRayletId",
"actorClass", "actorClass",
"ipAddress", "ipAddress",
"port" "port"