Jeff Longland

Relax, don't worry – have a home brew!

#OSCON – One tiny daemon to harvest your server statistics (and more)

leave a comment »

  • Presenter: Brandon Philips, Rackspace
  • External monitoring: ping, nmap, curl. Lest we forget nagios, ganglia, cacti, zenoss, noitd
  • Internal monitoring: scripts gathering stats, pushing to a monitoring server
  • Beware cron’d monitoring agents – not going to help you much during panic conditions.  Whereas a daemon, you might be able to communicate with it.
  • Overview: agent runs in the cloud, with TLS connection to a stud in each datacentre
  • Rackspace’s monitoring agent is Virgo
    • Designed for low memory usage
    • Simple secure ‘proxyable’ protocol
    • High level scripting language
    • Designed to be statically linked
    • Avoided C++, used Lua instead (JavaScript’s long lost Brazilian cousin)
    • SSL + JSON newline delimitted + JSONRPC-esque
    • libuv
    • luvit
    • luajit
    • Lua code lives in a single zip file. Makes it easy to do upgrades and reduces presence on a client’s host.
    • Sigar for gathering system metrics.
  • Virgo agent uses ~5mb memory, less than python (~9mb), ruby (~15mb) or c++ (~20mb)
  • Slides posted here

Written by jlongland

July 20, 2012 at 12:27 pm

Posted in OSCON 2012

Tagged with

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: