raindrops RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: Eric Wong <normalperson@yhbt.net>
To: raindrops@librelist.com
Subject: Re: queued is always 0
Date: Thu, 1 Jul 2010 19:51:44 -0700	[thread overview]
Message-ID: <20100702025144.GA22762@dcvr.yhbt.net> (raw)
In-Reply-To: AANLkTinP5fBfcRa6Y3-MrMzDqjRRrgEOIunvn_h7q2WS@mail.gmail.com

Ryan King <ryan@twitter.com> wrote:
> On Thu, Jul 1, 2010 at 3:18 AM, Eric Wong <normalperson@yhbt.net> wrote:
> > Now that I think about it, it could be possible you're making a small
> > mistake in your linux-tcp-listener-stats invocation.
> >
> > Unicorn listens to all interfaces on a specified port by default (e.g.
> >  So you would need to point linux-tcp-listener-stats.rb
> > to "" and not "" (which may provide you
> > with a list of _client_ sockets, not server ones).
> God, you're right. This is the problem. When I switch the invocation
> it works as expected.

Awesome.  I've just pushed out a patch to raindrops.git to have
linux-tcp-listener-stats warn if it detects a listener on{port} but was passed an address of 127.X.Y.Z:#{port}.

Hopefully it's less confusing for future users.

I didn't want to make (currently) invalid addresses raise an exception,
since sometimes I run the script before starting the server or leave
it running when I shut the server down.

> > It looks like raindrops may double count localhost connections
> > because the client and server address are on the same host, and
> > I seem to recall tcpdiag not providing a way to filter those...
> > (It is very late at night for me, so I'll look at this again
> > sometime tomorrow.)
> In this test, its counting the ab connections on, but the
> server connections on

Yup, the counts look correct to each address.  I was tired last
night :x

Eric Wong

      reply	other threads:[~2010-07-02  2:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-29  0:26 queued is always 0 Ryan King
2010-06-29  0:50 ` Eric Wong
2010-06-30  1:12   ` Ryan King
2010-06-30  2:45     ` Eric Wong
2010-06-30 18:51       ` Ryan King
2010-06-30 23:18         ` Ryan King
2010-07-01 10:18         ` Eric Wong
2010-07-01 18:37           ` Ryan King
2010-07-02  2:51             ` Eric Wong [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: http://yhbt.net/raindrops/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100702025144.GA22762@dcvr.yhbt.net \
    --to=normalperson@yhbt.net \
    --cc=raindrops@librelist.com \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).