Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Zerg dance: writefifo race condition #1486
I have tried to setup a Zerg dance by following the "Art of Graceful Reloading", and could not get it working reliably out of the box when the number of processes is >1.
The problem is that the documentation instructs you to send "1" to the "new.fifo", but when the master is still booting up the workers the "new.fifo" may not be present yet. Example output:
A proper run would like like this (here, the workers have all been booted an the write to new.fifo succeeds):
Apparently, more people have been running into this:
The workaround based on the spinningfifo works for me:
... it was stated that:
It would be nice if this were tackled -- it would have saved me a lot of time.