ActorStatisticalData() debug metrics bog down raylet with 100% CPU (#12148)

* comment out bad

* update
This commit is contained in:
Eric Liang
2020-11-19 11:38:44 -08:00
committed by GitHub
parent 5fb410cfbf
commit de86d5aff7
2 changed files with 5 additions and 1 deletions
+3
View File
@@ -44,6 +44,8 @@ struct ActorStats {
ActorStats GetActorStatisticalData(
std::unordered_map<ray::ActorID, ray::raylet::ActorRegistration> actor_registry) {
ActorStats item;
/* TODO(ekl) this gets slower and slower over time since we never clean up dead actors.
* https://github.com/ray-project/ray/issues/11239
for (auto &pair : actor_registry) {
if (pair.second.GetState() == ray::rpc::ActorTableData::ALIVE) {
item.live_actors += 1;
@@ -53,6 +55,7 @@ ActorStats GetActorStatisticalData(
item.dead_actors += 1;
}
}
*/
return item;
}