Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Watcher Agent

John E. Vincent edited this page Mar 19, 2011 · 5 revisions

You were probably directed here because you tried to run noah-agent and it failed.

tl;dr requirements:

Step 1

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

The long version

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.

So why not go with em-redis/suprfeedr-em-redis/em-redislite/eventmachine-redis?

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.

Do you plan on switching?

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.