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.
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
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
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
40 We recommend GCC 4+ (or compatible) to support the __sync builtins
41 (__sync_{add,sub}_and_fetch()):
43 https://gcc.gnu.org/onlinedocs/gcc/_005f_005fsync-Builtins.html
45 For non-GCC 4+ users, we also support compilation with the libatomic_ops
46 package starting with Raindrops 0.4.0:
48 https://github.com/ivmai/libatomic_ops
50 If you're using a packaged Ruby distribution, make sure you have a C
51 compiler and the matching Ruby development libraries and headers.
59 See Raindrops::Middleware and Raindrops::LastDataRecv documentation for
60 use Rack servers. The entire library is fully-documented and we are
61 responsive on the publically archived mailing list
62 (mailto:raindrops-public@bogomips.org) if
63 you have any questions or comments.
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
75 * https://bogomips.org/raindrops.git
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
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 licensed under the LGPL-2.1+
91 All feedback (bug reports, user/development discussion, patches, pull
92 requests) go to the publically archived mailing list:
93 mailto:raindrops-public@bogomips.org
95 Mailing list archives are available over HTTPS and NNTP:
97 * https://bogomips.org/raindrops-public/
98 * nntp://news.public-inbox.org/inbox.comp.lang.ruby.raindrops
100 Since archives are public, scrub sensitive information and
101 use anonymity tools such as Tor or Mixmaster if you deem necessary.