Closed yannrichet closed 3 years ago
Still better : https://github.com/Funz/funz-calculator/commit/66b203f664e6b55165ae87eb8688574d31e4b4d7
this bash script wait for a network "hi" to start daemons, for many users (and just sleep when none is needed).
the "hi" should be implemented before Funz run: echo "hi"| curl -m 1 telnet://mybigserver:19000
the final "bye" should be called when all runs are finished: echo "bye"| curl -m 1 telnet://mybigserver:19000
On a powerful server (say a cluster master node), we want to keep one daemon alive, and others are auto-closed when inactivity is detected. As soon as this last daemon is reserved, another one is awaked, and so on. This will enable to use a queue manager (like slurm) without to much side efects (only the 'keep1daemon' script).