airbnb/synapse — pull request #53 by ryotarai (2014-03-26 15:31:49+00:00)
Title: Add FileWatcher watching a file containing server list.

I added a new watcher, FileWatcher, which watches a server-list file. Because this watcher uses Listen gem, changes of the file will be detected immediately with something like inotify.

### Why I implemented this
I wrote this watcher for using with Serf. Serf can get join event and leave event. If a event handler of Serf adds (or removes) a server from the file, synapse will adds (or removes) the backend server to haproxy.cfg.
Of course, this works well without Serf too.