[Core] Remove actor deletion upon job termination - #31019
Merged
Conversation
Signed-off-by: SangBin Cho <rkooo567@gmail.com>
Contributor
Author
|
Note: This is the only part that the timer was used incorrectly. |
7 tasks
Contributor
Author
|
Fixing build errors.. will ping you guys when it is ready |
Signed-off-by: SangBin Cho <rkooo567@gmail.com>
Signed-off-by: SangBin Cho <rkooo567@gmail.com>
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.
|
Contributor
Author
|
it is ready for the review |
Signed-off-by: SangBin Cho <rkooo567@gmail.com>
|
The documentation bug could be fixed by merging in the recent changes |
rickyyx
approved these changes
Mar 23, 2023
8 tasks
elliottower
pushed a commit
to elliottower/ray
that referenced
this pull request
Apr 22, 2023
There's a feature to remove all actor information 5m after the job is terminated. We will remove this feature for 2 reasons.
This feature never worked
[this](std::function<void(void)> fn, boost::posix_time::milliseconds delay) {
boost::asio::deadline_timer timer(main_service_);
timer.expires_from_now(delay);
timer.async_wait([fn](const boost::system::error_code &error) {
if (error != boost::asio::error::operation_aborted) {
fn();
} else {
RAY_LOG(WARNING)
<< "The GCS actor metadata garbage collector timer failed to fire. This "
"could old actor metadata not being properly cleaned up. For more "
"information, check logs/gcs_server.err and logs/gcs_server.out";
}
});
},
The timer is GC'ed as soon as this method is finished, so this callback was never invoked. That said, this feature never worked anyway.
2. For the actual garbage collection, we already have the logic to clean the dead actor metadata when we have more than 10K dead actors cached. So this feature is redundant.
Signed-off-by: elliottower <elliot@elliottower.com>
ProjectsByJackHe
pushed a commit
to ProjectsByJackHe/ray
that referenced
this pull request
May 4, 2023
There's a feature to remove all actor information 5m after the job is terminated. We will remove this feature for 2 reasons.
This feature never worked
[this](std::function<void(void)> fn, boost::posix_time::milliseconds delay) {
boost::asio::deadline_timer timer(main_service_);
timer.expires_from_now(delay);
timer.async_wait([fn](const boost::system::error_code &error) {
if (error != boost::asio::error::operation_aborted) {
fn();
} else {
RAY_LOG(WARNING)
<< "The GCS actor metadata garbage collector timer failed to fire. This "
"could old actor metadata not being properly cleaned up. For more "
"information, check logs/gcs_server.err and logs/gcs_server.out";
}
});
},
The timer is GC'ed as soon as this method is finished, so this callback was never invoked. That said, this feature never worked anyway.
2. For the actual garbage collection, we already have the logic to clean the dead actor metadata when we have more than 10K dead actors cached. So this feature is redundant.
Signed-off-by: Jack He <jackhe2345@gmail.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Signed-off-by: SangBin Cho rkooo567@gmail.com
Why are these changes needed?
There's a feature to remove all actor information 5m after the job is terminated. We will remove this feature for 2 reasons.
The timer is GC'ed as soon as this method is finished, so this callback was never invoked. That said, this feature never worked anyway.
2. For the actual garbage collection, we already have the logic to clean the dead actor metadata when we have more than 10K dead actors cached. So this feature is redundant.
Related issue number
Checks
git commit -s) in this PR.scripts/format.shto lint the changes in this PR.