-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
[autoscaler] Clean up monitoring loop code #11677
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.
Looks pretty innocuous so long as the dead code really is dead.
|
And also |
@@ -68,13 +68,13 @@ def setup_monitor(address): | |||
monitor = Monitor( | |||
address, None, redis_password=ray_constants.REDIS_DEFAULT_PASSWORD) | |||
monitor.update_raylet_map(_append_port=True) | |||
monitor.psubscribe(ray.gcs_utils.XRAY_JOB_PATTERN) # TODO: Remove? | |||
monitor.subscribe(ray.ray_constants.AUTOSCALER_RESOURCE_REQUEST_CHANNEL) |
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.
monitor.subscribe(ray.ray_constants.AUTOSCALER_RESOURCE_REQUEST_CHANNEL) |
We can simply remove this as no autoscaler related message should be handled in this test case.
Ah, the reason I kept that was since an error is raised if there is no
subscriptions at all.
…On Thu, Oct 29, 2020, 12:51 AM Tao Wang ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In python/ray/tests/test_multi_node_2.py
<#11677 (comment)>:
> @@ -68,13 +68,13 @@ def setup_monitor(address):
monitor = Monitor(
address, None, redis_password=ray_constants.REDIS_DEFAULT_PASSWORD)
monitor.update_raylet_map(_append_port=True)
- monitor.psubscribe(ray.gcs_utils.XRAY_JOB_PATTERN) # TODO: Remove?
+ monitor.subscribe(ray.ray_constants.AUTOSCALER_RESOURCE_REQUEST_CHANNEL)
⬇️ Suggested change
- monitor.subscribe(ray.ray_constants.AUTOSCALER_RESOURCE_REQUEST_CHANNEL)
+ monitor.subscribe(ray.ray_constants.AUTOSCALER_RESOURCE_REQUEST_CHANNEL)
We can simply remove this as no autoscaler related message should be
handled in this test case.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#11677 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAADUSW6TG4YUZ42ENYUXODSNENIVANCNFSM4TCZRZZA>
.
|
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.
LGTM :)
Why are these changes needed?