raindrops RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / 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
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.
> > 0.0.0.0:8080)  So you would need to point linux-tcp-listener-stats.rb
> > to "0.0.0.0:8080" and not "127.0.0.1:8080" (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
0.0.0.0:#{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 127.0.0.1, but the
> server connections on 0.0.0.0.

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

-- 
Eric Wong

      reply index

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-29  0:26 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 publically 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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://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 \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

raindrops RubyGem user+dev discussion/patches/pulls/bugs/help

Archives are clonable:
	git clone --mirror https://yhbt.net/raindrops-public
	git clone --mirror http://ou63pmih66umazou.onion/raindrops-public

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.lang.ruby.raindrops
	nntp://ou63pmih66umazou.onion/inbox.comp.lang.ruby.raindrops

 note: .onion URLs require Tor: https://www.torproject.org/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git