phase2 / rig

Outrigger command line tool
MIT License
11 stars 8 forks source link

Automatically restart broken unison processes #164

Open grayside opened 6 years ago

grayside commented 6 years ago

Goal

147 notes that Unison crashes without warning. https://github.com/EugenMayer/docker-sync/issues/497 notes that there are cases where filesystem/sync stress leads to runaway CPU usage which will lead to a crash. If we detect that runaway state and restart the unison process, the bootstrapping process will take a clean look at the files on both sides of the sync and general grind through the sync instead of getting trapped in thrashing.

How can we handle the restart?

Notes

A few bits of research around this: