-
Notifications
You must be signed in to change notification settings - Fork 7.1k
[core][doc] add actor+job+node event to ray event export doc #57930
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request adds documentation for actor, job, and node events to the Ray event export guide. The changes are clear and follow the existing structure of the document. I've provided a few suggestions to improve consistency and clarity in the descriptions of lifecycle events and to fix some minor formatting inconsistencies.
| For each actor, Ray exports two types of events: Actor Definition Event and Actor Lifecycle Event. | ||
| * Actor Definition Event contains the metadata of the actor when it is defined. | ||
| See `src/ray/protobuf/public/events_actor_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_actor_definition_event.proto>`_ for the event format. | ||
| * Actor Lifecycle Event contains the lifecycle information of the actor. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The description for the Actor Lifecycle Event is a bit generic. To be more descriptive and consistent with the 'Task events' section, which mentions task state transition information, consider specifying that this event contains state transition information for actors.
| * Actor Lifecycle Event contains the lifecycle information of the actor. | |
| * Actor Lifecycle Event contains actor state transition information. |
| ^^^^^^^^^^^^^^^^^^ | ||
|
|
||
| For each driver job, Ray exports two types of events: Driver Job Definition Event and Driver Job Lifecycle Event. | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
|
||
| * Driver Job Definition Event contains the metadata of the driver job when it is defined. | ||
| See `src/ray/protobuf/public/events_driver_job_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_driver_job_definition_event.proto>`_ for the event format. | ||
| * Driver Job Lifecycle Event contains the lifecycle information of the driver job. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar to the actor event, the description for the Driver Job Lifecycle Event is a bit generic. To improve clarity and consistency, consider specifying that it contains state transition information for driver jobs.
| * Driver Job Lifecycle Event contains the lifecycle information of the driver job. | |
| * Driver Job Lifecycle Event contains driver job state transition information. |
| ^^^^^^^^^^^ | ||
|
|
||
| For each node, Ray exports two types of events: Node Definition Event and Node Lifecycle Event. | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
|
||
| * Node Definition Event contains the metadata of the node when it is defined. | ||
| See `src/ray/protobuf/public/events_node_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_node_definition_event.proto>`_ for the event format. | ||
| * Node Lifecycle Event contains the lifecycle information of the node. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar to the other lifecycle events, the description for the Node Lifecycle Event is a bit generic. To improve clarity and consistency, consider specifying that it contains state transition information for nodes.
| * Node Lifecycle Event contains the lifecycle information of the node. | |
| * Node Lifecycle Event contains node state transition information. |
a9c21fa to
b8b7224
Compare
angelinalg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want to remove line 9 of the ray-event-export.rst file with these new features?
| Actor events | ||
| ^^^^^^^^^^^^ | ||
|
|
||
| For each actor, Ray exports two types of events: Actor Definition Event and Actor Lifecycle Event. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| For each actor, Ray exports two types of events: Actor Definition Event and Actor Lifecycle Event. | |
| For each actor, Ray exports two types of events: Actor Definition Events and Actor Lifecycle Events. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need a blank line before the bulleted points for it to render correctly.
| ^^^^^^^^^^^^ | ||
|
|
||
| For each actor, Ray exports two types of events: Actor Definition Event and Actor Lifecycle Event. | ||
| * Actor Definition Event contains the metadata of the actor when it is defined. See `src/ray/protobuf/public/events_actor_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_actor_definition_event.proto>`_ for the event format. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * Actor Definition Event contains the metadata of the actor when it is defined. See `src/ray/protobuf/public/events_actor_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_actor_definition_event.proto>`_ for the event format. | |
| * An Actor Definition Event contains the metadata of the actor when it's defined. See `src/ray/protobuf/public/events_actor_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_actor_definition_event.proto>`_ for the event format. |
|
|
||
| For each actor, Ray exports two types of events: Actor Definition Event and Actor Lifecycle Event. | ||
| * Actor Definition Event contains the metadata of the actor when it is defined. See `src/ray/protobuf/public/events_actor_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_actor_definition_event.proto>`_ for the event format. | ||
| * Actor Lifecycle Event contains the actor state transition information and metadata associated with each transition. See `src/ray/protobuf/public/events_actor_lifecycle_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_actor_lifecycle_event.proto>`_ for the event format. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * Actor Lifecycle Event contains the actor state transition information and metadata associated with each transition. See `src/ray/protobuf/public/events_actor_lifecycle_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_actor_lifecycle_event.proto>`_ for the event format. | |
| * An Actor Lifecycle Event contains the actor state transition information and metadata associated with each transition. See `src/ray/protobuf/public/events_actor_lifecycle_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_actor_lifecycle_event.proto>`_ for the event format. |
| Driver job events | ||
| ^^^^^^^^^^^^^^^^^^ | ||
|
|
||
| For each driver job, Ray exports two types of events: Driver Job Definition Event and Driver Job Lifecycle Event. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| For each driver job, Ray exports two types of events: Driver Job Definition Event and Driver Job Lifecycle Event. | |
| For each driver job, Ray exports two types of events: Driver Job Definition Events and Driver Job Lifecycle Events. |
|
|
||
| For each driver job, Ray exports two types of events: Driver Job Definition Event and Driver Job Lifecycle Event. | ||
|
|
||
| * Driver Job Definition Event contains the metadata of the driver job when it is defined. See `src/ray/protobuf/public/events_driver_job_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_driver_job_definition_event.proto>`_ for the event format. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * Driver Job Definition Event contains the metadata of the driver job when it is defined. See `src/ray/protobuf/public/events_driver_job_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_driver_job_definition_event.proto>`_ for the event format. | |
| * A Driver Job Definition Event contains the metadata of the driver job when it's defined. See `src/ray/protobuf/public/events_driver_job_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_driver_job_definition_event.proto>`_ for the event format. |
| For each driver job, Ray exports two types of events: Driver Job Definition Event and Driver Job Lifecycle Event. | ||
|
|
||
| * Driver Job Definition Event contains the metadata of the driver job when it is defined. See `src/ray/protobuf/public/events_driver_job_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_driver_job_definition_event.proto>`_ for the event format. | ||
| * Driver Job Lifecycle Event contains the driver job state transition information and metadata associated with each transition. See `src/ray/protobuf/public/events_driver_job_lifecycle_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_driver_job_lifecycle_event.proto>`_ for the event format. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * Driver Job Lifecycle Event contains the driver job state transition information and metadata associated with each transition. See `src/ray/protobuf/public/events_driver_job_lifecycle_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_driver_job_lifecycle_event.proto>`_ for the event format. | |
| * A Driver Job Lifecycle Event contains the driver job state transition information and metadata associated with each transition. See `src/ray/protobuf/public/events_driver_job_lifecycle_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_driver_job_lifecycle_event.proto>`_ for the event format. |
| Node events | ||
| ^^^^^^^^^^^ | ||
|
|
||
| For each node, Ray exports two types of events: Node Definition Event and Node Lifecycle Event. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| For each node, Ray exports two types of events: Node Definition Event and Node Lifecycle Event. | |
| For each node, Ray exports two types of events: Node Definition Events and Node Lifecycle Events. |
|
|
||
| For each node, Ray exports two types of events: Node Definition Event and Node Lifecycle Event. | ||
|
|
||
| * Node Definition Event contains the metadata of the node when it is defined. See `src/ray/protobuf/public/events_node_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_node_definition_event.proto>`_ for the event format. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * Node Definition Event contains the metadata of the node when it is defined. See `src/ray/protobuf/public/events_node_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_node_definition_event.proto>`_ for the event format. | |
| * A Node Definition Event contains the metadata of the node when it's defined. See `src/ray/protobuf/public/events_node_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_node_definition_event.proto>`_ for the event format. |
| For each node, Ray exports two types of events: Node Definition Event and Node Lifecycle Event. | ||
|
|
||
| * Node Definition Event contains the metadata of the node when it is defined. See `src/ray/protobuf/public/events_node_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_node_definition_event.proto>`_ for the event format. | ||
| * Node Lifecycle Event contains the node state transition information and metadata associated with each transition. See `src/ray/protobuf/public/events_node_lifecycle_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_node_lifecycle_event.proto>`_ for the event format. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * Node Lifecycle Event contains the node state transition information and metadata associated with each transition. See `src/ray/protobuf/public/events_node_lifecycle_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_node_lifecycle_event.proto>`_ for the event format. | |
| * A Node Lifecycle Event contains the node state transition information and metadata associated with each transition. See `src/ray/protobuf/public/events_node_lifecycle_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_node_lifecycle_event.proto>`_ for the event format. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Can we add examples for the event types as well?
b8b7224 to
a0f7ea6
Compare
|
address feedback |
a0f7ea6 to
4d02729
Compare
Signed-off-by: Cuong Nguyen <[email protected]>
4d02729 to
4609149
Compare
…ject#57930) Add actor+job+node event to ray event export doc Test: - CI Signed-off-by: Cuong Nguyen <[email protected]> Signed-off-by: xgui <[email protected]>
…ject#57930) Add actor+job+node event to ray event export doc Test: - CI Signed-off-by: Cuong Nguyen <[email protected]>
…ject#57930) Add actor+job+node event to ray event export doc Test: - CI Signed-off-by: Cuong Nguyen <[email protected]> Signed-off-by: Aydin Abiar <[email protected]>
…ject#57930) Add actor+job+node event to ray event export doc Test: - CI Signed-off-by: Cuong Nguyen <[email protected]> Signed-off-by: Future-Outlier <[email protected]>
Add actor+job+node event to ray event export doc
Test: