-
Notifications
You must be signed in to change notification settings - Fork 7.1k
[3/n] Add support for application level autoscaling #57637
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
…tate Signed-off-by: abrar <abrar@anyscale.com>
Signed-off-by: abrar <abrar@anyscale.com>
Signed-off-by: abrar <abrar@anyscale.com>
Signed-off-by: abrar <abrar@anyscale.com>
Signed-off-by: abrar <abrar@anyscale.com>
Signed-off-by: abrar <abrar@anyscale.com>
Signed-off-by: abrar <abrar@anyscale.com>
| ), | ||
| ) | ||
| else: | ||
| self._autoscaling_state_manager.deregister_application(self._name) |
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.
Is it possible to have a lingering registration if the same app_name was built with BuildAppStatus.SUCCEEDED the first time, but failed to build the second time around?
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.
but if it failed, wouldn't user retry deploy the app anyway.
dbf3f53 to
d7d25d2
Compare
Signed-off-by: abrar <abrar@anyscale.com>
d7d25d2 to
9c3b266
Compare
Signed-off-by: abrar <abrar@anyscale.com>
Signed-off-by: abrar <abrar@anyscale.com>
| self._autoscaling_state_manager.register_application( | ||
| self._name, | ||
| AutoscalingPolicy(**checkpoint_data.config.autoscaling_policy), | ||
| ) |
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.
Bug: Type Error When Unpacking Autoscaling Policy
The code attempts to unpack autoscaling_policy into an AutoscalingPolicy object using **, assuming it's always a dictionary. This can raise a TypeError if autoscaling_policy is already an AutoscalingPolicy instance, potentially after Pydantic deserialization. This occurs during checkpoint restoration and when setting the application's target state.
Additional Locations (1)
Phase 3 of https://gist.github.com/abrarsheikh/abde819a199c2190baba082f0e6fdd86 --------- Signed-off-by: abrar <abrar@anyscale.com>
Phase 3 of https://gist.github.com/abrarsheikh/abde819a199c2190baba082f0e6fdd86 --------- Signed-off-by: abrar <abrar@anyscale.com> Signed-off-by: xgui <xgui@anyscale.com>
Original PR #57637 by abrarsheikh Original: ray-project/ray#57637
…aling Merged from original PR #57637 Original: ray-project/ray#57637
Phase 3 of https://gist.github.com/abrarsheikh/abde819a199c2190baba082f0e6fdd86 --------- Signed-off-by: abrar <abrar@anyscale.com> Signed-off-by: elliot-barn <elliot.barnwell@anyscale.com>
Phase 3 of https://gist.github.com/abrarsheikh/abde819a199c2190baba082f0e6fdd86 --------- Signed-off-by: abrar <abrar@anyscale.com>
Phase 3 of https://gist.github.com/abrarsheikh/abde819a199c2190baba082f0e6fdd86 --------- Signed-off-by: abrar <abrar@anyscale.com> Signed-off-by: Aydin Abiar <aydin@anyscale.com>
Phase 3 of https://gist.github.com/abrarsheikh/abde819a199c2190baba082f0e6fdd86 --------- Signed-off-by: abrar <abrar@anyscale.com> Signed-off-by: Future-Outlier <eric901201@gmail.com>
Phase 3 of https://gist.github.com/abrarsheikh/abde819a199c2190baba082f0e6fdd86