Skip to content
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

Merged
merged 6 commits into from
Oct 30, 2020
Merged

Conversation

ericl
Copy link
Contributor

@ericl ericl commented Oct 28, 2020

Why are these changes needed?

  • Rename get_all_heartbeats to update_load_metrics
  • Remove unused job pubsub handler
  • Fix up the loop structure

Copy link
Contributor

@wuisawesome wuisawesome left a 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.

@WangTaoTheTonic
Copy link
Contributor

test_multi_mode_2.py uses monitor and it still subscribes XRAY_JOB_PATTERN, which should be removed.

@WangTaoTheTonic
Copy link
Contributor

And also get_all_heartbeat is used in other places, which should be renamed.

@@ -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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.

@ericl
Copy link
Contributor Author

ericl commented Oct 29, 2020 via email

Copy link
Contributor

@WangTaoTheTonic WangTaoTheTonic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :)

@ericl ericl merged commit f9f372c into ray-project:master Oct 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants