raindrops 0.15.0 - non-glibc compat fix on Linux
[raindrops.git] / README
blob905c44c685c8df114fe1c3e627d39c4c72722947
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 unicorn, but
5 should support any Rack HTTP server on platforms supporting POSIX shared
6 memory.  It may also be used as a generic scoreboard for sharing atomic
7 counters across multiple processes.
9 == Features
11 * counters are shared across all forked children and lock-free
13 * counters are kept on separate cache lines to reduce contention under SMP
15 * may expose server statistics as a Rack Middleware endpoint
16   (default: "/_raindrops")
18 * middleware displays the number of actively processing and writing
19   clients from a single request regardless of which worker process
20   it hits.
22 == Linux-only Extra Features!
24 * Middleware response includes extra stats for bound TCP and
25   Unix domain sockets (configurable, it can include stats from
26   other TCP or UNIX domain socket servers).
28 * TCP socket stats use efficient inet_diag facilities via netlink
29   instead of parsing /proc/net/tcp to minimize overhead.
30   This was fun to discover and write.
32 * TCP_Info reporting may be used to check stat for every accepted client
33   on TCP servers
35 Users of older Linux kernels need to ensure that the the "inet_diag"
36 and "tcp_diag" kernel modules are loaded as they do not autoload correctly
38 == Install
40 We recommend GCC 4+ (or compatible) to support the
41 {atomic builtins}[http://gcc.gnu.org/onlinedocs/gcc/Atomic-Builtins.html]
42 (__sync_{add,sub}_and_fetch()).  For non-GCC 4+ users, we also support
43 compilation with the
44 {libatomic_ops}[http://www.hpl.hp.com/research/linux/atomic_ops/]
45 package starting with Raindrops 0.4.0.
47 If you're using a packaged Ruby distribution, make sure you have a C
48 compiler and the matching Ruby development libraries and headers.
50 If you use RubyGems:
52     gem install raindrops
54 Otherwise grab the latest tarball from:
56 http://raindrops.bogomips.org/files/
58 Unpack it, and run "ruby setup.rb"
60 == Usage
62 See Raindrops::Middleware and Raindrops::LastDataRecv documentation for
63 use Rack servers.  The entire library is fully-documented and we are
64 responsive on the mailing list (mailto:raindrops-public@bogomips.org) if
65 you have any questions or comments.
67 == Development
69 You can get the latest source via git from the following locations:
71   git://bogomips.org/raindrops.git
72   git://repo.or.cz/raindrops.git (mirror)
74 You may browse the code from the web and download the latest snapshot
75 tarballs here:
77 * http://bogomips.org/raindrops.git (cgit)
78 * http://repo.or.cz/w/raindrops.git (gitweb)
80 Inline patches (from "git format-patch") to the mailing list are
81 preferred because they allow code review and comments in the reply to
82 the patch.
84 We will adhere to mostly the same conventions for patch submissions as
85 git itself.  See the Documentation/SubmittingPatches document
86 distributed with git on on patch submission guidelines to follow.  Just
87 don't email the git mailing list or maintainer with raindrops patches.
89 raindrops is licensed under the LGPL+2.1 or later:
91 == Contact
93 All feedback (bug reports, user/development discussion, patches, pull
94 requests) go to the mailing list: mailto:raindrops-public@bogomips.org
96 Mailing list archives are available here:
98 http://bogomips.org/raindrops-public/