-
Notifications
You must be signed in to change notification settings - Fork 549
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SkyServe] Serving with Spot (#2749)
* rebase and fix bugs * fix PR reviews * fix * fix comments * rename tests * fix yaml replica_num
- Loading branch information
Showing
8 changed files
with
165 additions
and
9 deletions.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
resources: | ||
cloud: gcp | ||
cpus: 2+ | ||
zone: us-central1-a | ||
use_spot: true | ||
|
||
workdir: examples/serve/http_server | ||
|
||
# Use 8080 to test jupyter service is terminated | ||
run: python3 server.py --port 8080 | ||
|
||
service: | ||
port: 8080 | ||
readiness_probe: | ||
path: /health | ||
initial_delay_seconds: 20 | ||
replicas: 1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import time | ||
|
||
# The program exits to simulate a user app bug. | ||
if __name__ == "__main__": | ||
time.sleep(30) | ||
assert False |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
resources: | ||
cloud: gcp | ||
cpus: 2+ | ||
zone: us-central1-a | ||
use_spot: True | ||
|
||
workdir: tests/skyserve/spot | ||
|
||
run: python3 user_bug.py | ||
|
||
service: | ||
port: 8080 | ||
readiness_probe: | ||
path: /health | ||
initial_delay_seconds: 20 | ||
replicas: 1 |
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