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

[Serve] Minor fix on bootstrap_done #3075

Merged
merged 6 commits into from
Feb 2, 2024
Merged

[Serve] Minor fix on bootstrap_done #3075

merged 6 commits into from
Feb 2, 2024

Conversation

MaoZiming
Copy link
Collaborator

@MaoZiming MaoZiming commented Feb 2, 2024

Tested (run the relevant ones):

  • Code formatting: bash format.sh
  • Any manual or new tests for this PR (please specify below)
  • All smoke tests: pytest tests/test_smoke.py
  • Relevant individual smoke tests: pytest tests/test_smoke.py::test_fill_in_the_name
  • Backward compatibility tests: bash tests/backward_comaptibility_tests.sh

Copy link
Collaborator

@Michaelvll Michaelvll left a comment

Choose a reason for hiding this comment

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

Thanks for the fix @MaoZiming!

sky/serve/autoscalers.py Outdated Show resolved Hide resolved
@@ -183,6 +184,7 @@ def _get_desired_num_replicas(self) -> int:
# is not enabled, i.e. self.target_qps_per_replica is None.
# In this case, self.target_num_replicas will be min_replicas.
if self.target_qps_per_replica is None:
self.bootstrap_done = True
Copy link
Collaborator

Choose a reason for hiding this comment

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

This seems having no effect, as this if condition will always short circuit the following calculation?
If it is the case, might be good to have a comment.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This matters earlier in a subtle case where we do not set self.bootstrap_done=False during update.
I think since we decide to do that, as you mentioned, this will not have effect.

@MaoZiming MaoZiming merged commit 3ffef36 into master Feb 2, 2024
19 checks passed
@MaoZiming MaoZiming deleted the bootstrap_fix branch February 2, 2024 23:23
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

2 participants