-
Notifications
You must be signed in to change notification settings - Fork 163
Watcher Agent
You were probably directed here because you tried to run noah-agent
and it failed.
If you're attempting to run the watcher daemon under JRuby, sorry. It won't work for now because of the hiredis requirement. I'm working on it. Otherwise, read on.
gem install eventmachine --pre
gem install em-http-request --pre
gem install em-hiredis
When I starting working on the watcher agent, I wanted to go with the best fastest libraries possible. In the case of redis interaction, that would be hiredis. Obviously for the watchers, since I was using EventMachine I needed an EM-compatible version. That was em-hiredis
.
Testing and support. I had various issues with pub/sub on one or two of those libraries and I didn't want to go down that rabbit hole just yet. em-hiredis worked out of the box so I used it for testing.
I think I'll do one of two things:
- Code my own use-specific library (pure ruby)
- Switch to an alternate library
Honestly the only requirement is that it support redis pubsub and event machine.
If anyone has any other ideas or library suggestions for mixing EventMachine and Redis, I'm all ears. Just hit me up on twitter or an issue.