What I have:
- 5 Raspberry PI running the same software software stack
- each one has a priority (lower number is higher priority) index and monitors the other 4 via udp
- One lan
- all 5 pis ping the rest every minute
- each pi has an arduino+ethernet shield connected to it
- each arduino monitors the gpio ports of each pi and when no response is received for more than 3 checks a udp message is sent over the network
- after 5 minutes of no gpio response, the arduino force resets the pi
What I want: * If the lowest priority PI fails, the second one should take it's place on the network and act as the server * when the first one is booted back it takes the next largest priority number
I assume there is something that does this already in the linux software stack, but I lack the name for it.
Thank you for your advice