Skip to content

Commit

Permalink
Add extra nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtomlinson committed Aug 8, 2024
1 parent 2206556 commit c630c11
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 2 deletions.
46 changes: 46 additions & 0 deletions ci/slurm/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,52 @@ services:
cap_add:
- NET_ADMIN

c3:
image: daskdev/dask-jobqueue:slurm
build: .
command: ["slurmd"]
hostname: c3
container_name: c3
volumes:
- etc_munge:/etc/munge
- etc_slurm:/etc/slurm
- slurm_jobdir:/data
- var_log_slurm:/var/log/slurm
- shared_space:/shared_space
- ../..:/dask-jobqueue
expose:
- "6818"
depends_on:
- "slurmctld"
networks:
common-network:
ipv4_address: 10.1.1.13
cap_add:
- NET_ADMIN

c4:
image: daskdev/dask-jobqueue:slurm
build: .
command: ["slurmd"]
hostname: c4
container_name: c4
volumes:
- etc_munge:/etc/munge
- etc_slurm:/etc/slurm
- slurm_jobdir:/data
- var_log_slurm:/var/log/slurm
- shared_space:/shared_space
- ../..:/dask-jobqueue
expose:
- "6818"
depends_on:
- "slurmctld"
networks:
common-network:
ipv4_address: 10.1.1.14
cap_add:
- NET_ADMIN

volumes:
etc_munge:
etc_slurm:
Expand Down
4 changes: 2 additions & 2 deletions ci/slurm/slurm.conf
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ AccountingStoragePort=6819
#AccountingStorageUser=
#
# COMPUTE NODES
NodeName=c[1-2] RealMemory=4096 CPUs=2 State=UNKNOWN
NodeName=c[1-4] RealMemory=4096 CPUs=2 State=UNKNOWN
#
# PARTITIONS
PartitionName=normal Default=yes Nodes=c[1-2] Priority=50 DefMemPerCPU=2048 Shared=NO MaxNodes=2 MaxTime=5-00:00:00 DefaultTime=5-00:00:00 State=UP
PartitionName=normal Default=yes Nodes=c[1-4] Priority=50 DefMemPerCPU=2048 Shared=NO MaxNodes=4 MaxTime=5-00:00:00 DefaultTime=5-00:00:00 State=UP
2 changes: 2 additions & 0 deletions ci/slurm/start-slurm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ echo "SLURM properly configured"
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
docker exec c3 ip addr add 10.1.1.23/24 dev eth0 label eth0:worker
docker exec c4 ip addr add 10.1.1.24/24 dev eth0 label eth0:worker

0 comments on commit c630c11

Please sign in to comment.