-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
28 additions
and
315 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
This contains infrastructure intended to be shared across several rslp projects. | ||
|
||
|
||
Worker | ||
------ | ||
|
||
`worker.py` provides a system for launching Beaker jobs that run workers to execute | ||
tasks from a queue. | ||
|
||
Each task specifies an rslp project, pipeline (workflow), and arguments to pass to the | ||
pipeline. The queue is implemented with Google Cloud Pub/Sub. | ||
|
||
First create the topic and subscription via CLI: | ||
|
||
gcloud pubsub topics create --project skylight-proto-1 rslp-job-queue-YOURNAME | ||
gcloud pubsub subscriptions create --project skylight-proto-1 rslp-job-queue-YOURNAME-sub --topic rslp-job-queue-YOURNAME | ||
|
||
You will then need to write code that writes tasks to the topic. | ||
See `satlas/write_jobs.py` for an example of this. | ||
|
||
Then you can launch the worker. To test on one machine: | ||
|
||
python -m rslp.main common worker skylight-proto-1 rslp-job-queue-YOURNAME-sub | ||
|
||
And to launch 100 workers on Beaker: | ||
|
||
python -m rslp.main common launch skylight-proto-1 rslp-job-queue-YOURNAME-sub 100 --gpus 1 --shared_memory 256GiB |
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 was deleted.
Oops, something went wrong.
File renamed without changes.