-
-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add scheduler_options to pass scheduler-specific parameters (#384)
* allows to have a different interface on the workers and the scheduler * passing host and dashboard_address is now an error. They should be pass through scheduler_options * improve dask-jobqueue SLURM setup to have a different interface on the worker and scheduler container and add test * some cleanup as well
- Loading branch information
Showing
9 changed files
with
202 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
#!/bin/bash | ||
|
||
docker-compose up --build -d | ||
|
||
while [ `./register_cluster.sh 2>&1 | grep "sacctmgr: error" | wc -l` -ne 0 ] | ||
do | ||
echo "Waiting for SLURM cluster to become ready"; | ||
sleep 2 | ||
done | ||
echo "SLURM properly configured" | ||
|
||
# On some clusters the login node does not have the same interface as the | ||
# compute nodes. The next three lines allow to test this edge case by adding | ||
# separate interfaces on the worker and on the scheduler nodes. | ||
docker exec slurmctld ip addr add 10.1.1.20/24 dev eth0 label eth0:scheduler | ||
docker exec c1 ip addr add 10.1.1.21/24 dev eth0 label eth0:worker | ||
docker exec c2 ip addr add 10.1.1.22/24 dev eth0 label eth0:worker |
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