giovtorres / slurm-docker-cluster

A Slurm cluster using docker-compose
MIT License
319 stars 187 forks source link

swarm mode #14

Open thistleknot opened 3 years ago

thistleknot commented 3 years ago

I found this guide https://hub.docker.com/r/lvarin/slurm-docker-cluster

but it doesn't actually replicate the c1 workers

found this as well https://stackoverflow.com/questions/49518376/docker-swarm-how-to-balance-already-running-containers-in-a-swarm-cluster

looks like I need to modify docker-compose to include something like please advise

deploy:
      restart_policy:
        condition: any
      mode: replicated
      replicas: 5
      placement:
        constraints: [node.role == worker]
giovtorres commented 2 years ago

Nice. I was not aware of this fork. I'm not familiar with Docker Swarm either. Sounds very interesting. I'd be ok if someone wanted to submit a change to enhance this project with swarm mode if users would find it useful!

For questions about that fork's functionality, you should raise an issue on that project instead.