rdoc: 100% documentation coverage!
[raindrops.git] / README
blob074722fd3e61d8c8f0e2e0c58b8e8d4606e233c1
1 = raindrops - real-time stats for preforking Rack servers
3 Raindrops is a real-time stats toolkit to show statistics for Rack HTTP
4 servers.  It is designed for preforking servers such as Rainbows! and
5 Unicorn, but should support any Rack HTTP server under Ruby 1.9, 1.8 and
6 Rubinius on platforms supporting POSIX shared memory.  It may also be
7 used as a generic scoreboard for sharing atomic counters across multiple
8 processes.
10 == Features
12 * counters are shared across all forked children and lock-free
14 * counters are kept on separate cache lines to reduce contention under SMP
16 * may expose server statistics as a Rack Middleware endpoint
17   (default: "/_raindrops")
19 * middleware displays the number of actively processing and writing
20   clients from a single request regardless of which worker process
21   it hits.
23 == Linux-only Extra Features!
25 * Middleware response includes extra stats for bound TCP and
26   Unix domain sockets (configurable, it can include stats from
27   other TCP or UNIX domain socket servers).
29 * TCP socket stats use efficient inet_diag facilities via netlink
30   instead of parsing /proc/net/tcp to minimize overhead.
31   This was fun to discover and write.
33 Users of older Linux kernels need to ensure that the the "inet_diag"
34 and "tcp_diag" kernel modules are loaded as they do not autoload correctly
36 == Install
38 We recommend GCC 4+ (or compatible) to support the
39 {atomic builtins}[http://gcc.gnu.org/onlinedocs/gcc/Atomic-Builtins.html]
40 (__sync_{add,sub}_and_fetch()).  For non-GCC 4+ users, we also support
41 compilation with the
42 {libatomic_ops}[http://www.hpl.hp.com/research/linux/atomic_ops/]
43 package starting with Raindrops 0.4.0.
45 If you're using a packaged Ruby distribution, make sure you have a C
46 compiler and the matching Ruby development libraries and headers.
48 If you use RubyGems:
50     gem install raindrops
52 Otherwise grab the latest tarball from:
54 http://raindrops.bogomips.org/files/
56 Unpack it, and run "ruby setup.rb"
58 == Usage
60 See Raindrops::Middleware and Raindrops::LastDataRecv documentation for
61 use Rack servers.  The entire library is fully-documented and we are
62 responsive on the mailing list (mailto:raindrops@librelist.com) if you
63 have any questions or comments.
65 == Development
67 You can get the latest source via git from the following locations:
69   git://bogomips.org/raindrops.git
70   git://repo.or.cz/raindrops.git (mirror)
72 You may browse the code from the web and download the latest snapshot
73 tarballs here:
75 * http://bogomips.org/raindrops.git (cgit)
76 * http://repo.or.cz/w/raindrops.git (gitweb)
78 Inline patches (from "git format-patch") to the mailing list are
79 preferred because they allow code review and comments in the reply to
80 the patch.
82 We will adhere to mostly the same conventions for patch submissions as
83 git itself.  See the Documentation/SubmittingPatches document
84 distributed with git on on patch submission guidelines to follow.  Just
85 don't email the git mailing list or maintainer with raindrops patches.
87 raindrops is currently dual-licensed under the LGPLv2.1 and LGPLv3.  To
88 allow for a transition to future versions of the LGPL, contributors are
89 required to sign-off changes allowing allowing the project leader to
90 relicense raindrops under newer versions of the LGPL (which should be
91 similar in spirit to the existing LGPL).
93 == Contact
95 All feedback (bug reports, user/development discussion, patches, pull
96 requests) go to the mailing list: mailto:raindrops@librelist.com
98 The mailing list is mirrored to Gmane, all information about the
99 group is here:
101 http://gmane.org/info.php?group=gmane.comp.lang.ruby.raindrops.general
103 Mailing list archives in mbox format may be downloaded here:
105 http://raindrops.bogomips.org/archives/