-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ssh example to
tests/data/example_server_startup
- Loading branch information
Showing
3 changed files
with
36 additions
and
0 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,7 @@ | ||
#!/bin/bash | ||
|
||
rm test.db | ||
rm -r Tasks | ||
rm -r Artifacts | ||
rm logs* | ||
rm test.db-shm test.db-wal |
13 changes: 13 additions & 0 deletions
13
tests/data/example_server_startup/ssh_example/run_server_gunicorn.sh
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,13 @@ | ||
#!/bin/bash | ||
|
||
# Create an empty db | ||
poetry run fractalctl set-db | ||
|
||
# Start the server | ||
poetry run gunicorn fractal_server.main:app \ | ||
--workers 4 \ | ||
--worker-class uvicorn.workers.UvicornWorker \ | ||
--bind 0.0.0.0:8001 \ | ||
--access-logfile logs-fractal-server.access \ | ||
--error-logfile logs-fractal-server.error \ | ||
--logger-class fractal_server.gunicorn_fractal.FractalGunicornLogger \ |
16 changes: 16 additions & 0 deletions
16
tests/data/example_server_startup/ssh_example/slurm_config.json
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 @@ | ||
{ | ||
"default_slurm_config": { | ||
"partition": "main", | ||
"cpus_per_task": 1, | ||
"mem": "100M" | ||
}, | ||
"gpu_slurm_config": {}, | ||
"batching_config": { | ||
"target_cpus_per_job": 1, | ||
"max_cpus_per_job": 1, | ||
"target_mem_per_job": 200, | ||
"max_mem_per_job": 500, | ||
"target_num_jobs": 2, | ||
"max_num_jobs": 4 | ||
} | ||
} |