-
Notifications
You must be signed in to change notification settings - Fork 541
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
Optimizing & Provisioning Retries at the granularity of regions/zones #975
Merged
Merged
Changes from 98 commits
Commits
Show all changes
108 commits
Select commit
Hold shift + click to select a range
25af691
Region/zone-based optimizer & provisioner
WoosukKwon 7071bb3
yapf
WoosukKwon e47a934
Fix messages
WoosukKwon 926a781
Fix comments
WoosukKwon 05029aa
Fix a comment
WoosukKwon 6fd509f
Fix version for backward compatibility
WoosukKwon 7f32764
yapf
WoosukKwon 09c2572
Merge branch 'master' into fine-grained-optimizer
WoosukKwon 784bf92
Minor fix
WoosukKwon f05350b
Merge branch 'master' into fine-grained-optimizer
WoosukKwon fa5ba13
yapf
WoosukKwon 4b11e37
Merge branch 'master' into fine-grained-optimizer
WoosukKwon 89181cd
yapf
WoosukKwon 8a71fa5
Add blanks back to docstrings
WoosukKwon 9d4839a
Add more detailed docstrings for get_hourly_cost
WoosukKwon 7ff8976
Remove docstrings
WoosukKwon 2ebe120
Address review & Allow region == None
WoosukKwon 55ecfcf
Minor fix
WoosukKwon c14c175
Add type annotations
WoosukKwon c77ccbf
Minor fix
WoosukKwon bbd9a9b
Merge branch 'master' into fine-grained-optimizer
WoosukKwon 5150275
Merge branch 'master' into fine-grained-optimizer
WoosukKwon ee90945
Merge branch 'master' into fine-grained-optimizer
WoosukKwon 2ae3043
Merge branch 'master' into fine-grained-optimizer
WoosukKwon 82cf40c
Fix TPU error
WoosukKwon 7caccf0
Fix optimizer printer format
WoosukKwon 74c04f5
yapf
WoosukKwon c027334
Remove resource validations
WoosukKwon 6908d51
yapf
WoosukKwon d7bf962
Fix a bug in gcp region zones
WoosukKwon 531215a
Indentation
WoosukKwon 082c0c1
Minor refactoring
WoosukKwon 0f1ca3f
Fix comment
WoosukKwon ead9f0d
Remove redundant check
WoosukKwon f645f4e
Add more detailed comments
WoosukKwon aa894cd
Move the comments
WoosukKwon 3549c8a
Add a comment on batching
WoosukKwon ff83990
Fix comment
WoosukKwon fb59095
resources -> launchable_resources
WoosukKwon fda9a04
Fix comment
WoosukKwon cadd67d
Fix method name
WoosukKwon 1d63eea
_generate_launchables_with_region_zones -> _make_launchables_for_vali…
WoosukKwon 9456793
Add comment on knowledge leakage
WoosukKwon 63a3b3e
Add a comment
WoosukKwon bb5854c
Move region-zone filtering from optimizer to resources
WoosukKwon 1eeecee
yapf
WoosukKwon 2552f64
Minor
WoosukKwon c9fe1c8
Minor
WoosukKwon 9e3f465
Add pointer
WoosukKwon 3d34df2
Merge branch 'master' into fine-grained-optimizer
WoosukKwon 15ee85d
Merge branch 'master' into fine-grained-optimizer
WoosukKwon 844a5c9
Address comments
WoosukKwon bf6b357
Merge branch 'master' into fine-grained-optimizer
WoosukKwon 6ecef54
fix indentation
WoosukKwon d1a8abf
Fix typo
WoosukKwon 92ffb01
Rename method
WoosukKwon f0723fd
Fix comment
WoosukKwon a685c62
Add detailed comments
WoosukKwon 3efa68b
Minor
WoosukKwon 6b53f17
Minor fix
WoosukKwon 7ad4e2f
Address comments
WoosukKwon 9665c74
Address comments
WoosukKwon 5b69f81
Fix bug in filtering blocked resources
WoosukKwon 4896de0
Minor
WoosukKwon 8c60481
Fix warning msg
WoosukKwon be98931
Merge branch 'master' into fine-grained-optimizer
WoosukKwon 556ef04
yapf
WoosukKwon 8f2d9a8
Display region or zone in the optimizer msg
WoosukKwon c344643
yapf
WoosukKwon 3339529
Add a cooment
WoosukKwon 914ce89
Merge branch 'master' into fine-grained-optimizer
WoosukKwon 4879ce5
Refactor region_zones_provision_loop
WoosukKwon d95bc69
Fix minor bug
WoosukKwon 4ddee1d
REGION (ZONE) to REGION/ZONE
WoosukKwon 2c79e67
Fix style
WoosukKwon 618866e
Rename
WoosukKwon cc6153b
Fix docstring
WoosukKwon aaa3b19
Fix docstring
WoosukKwon b1232e3
use_spot before region and zone
WoosukKwon 1718875
yapf
WoosukKwon 23ff576
Fix docstring
WoosukKwon 42f5741
Fix minor bug
WoosukKwon 2b84590
Trying other launchables -> locations
WoosukKwon 114c8d0
yapf
WoosukKwon 56ec033
Fix the argument order
WoosukKwon deb6a1d
Add region and zone args
WoosukKwon 07a7cdb
Fix comment
WoosukKwon 6e611c4
Fix comment
WoosukKwon 88f5932
Ensure that zone is None for Azure
WoosukKwon ee54ee6
privision loop -> regions_with_offering
WoosukKwon a33e4e8
Check if instance_type is None
WoosukKwon 7da4d82
Fix a bug
WoosukKwon 056eefd
yapf
WoosukKwon 57e4ca5
Add back the accelerator region check
WoosukKwon 984c8c2
Merge branch 'master' into fine-grained-optimizer
WoosukKwon d0c5b24
Fix err msg
WoosukKwon 3b572fd
Roll back the change
WoosukKwon 5b8e844
Make sets
WoosukKwon 45997e7
Merge branch 'master' into fine-grained-optimizer
WoosukKwon 8a64db3
Merge branch 'master' into fine-grained-optimizer
WoosukKwon 3be9e4c
Minor
WoosukKwon 9ed5d85
Set[Region] -> List[Region] for deterministic tie-breaking
WoosukKwon f49694f
Enable the validation check for fractional accelerators
WoosukKwon 3bfdd5d
yapf
WoosukKwon ea79e31
Fix provisioner msg
WoosukKwon f1a41cb
Add a comment
WoosukKwon 5398b34
Merge branch 'master' into fine-grained-optimizer
WoosukKwon e3fa0f2
yapf
WoosukKwon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Do we assume
to_provision.region is not None
all the time?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.
@Michaelvll Good and tough question. One possible exception is the local clusters. I didn't consider that.
Do you see any other possible exceptional case?
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.
I wondered whether the optimizer will always fill in the region for the
to_provision
for the public clouds. If it is true, I think it should be fine to keep the current way (I could not think of an exception).nit: It would be nice if we could comment it somewhere saying that the optimizer will always fill
region
for the public clouds.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.
Fixed. PTAL.