unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / Atom feed
From: Christian Pedersen <christian@onelogin.com>
To: unicorn-public@bogomips.org
Subject: Monitoring active/idle unicorn process stats
Date: Wed, 2 Sep 2015 08:49:34 -0700
Message-ID: <CAE2Ar51tfuR8mJ99KmDj75p-JJOTAgYbOAwNaC-5b4-Pw__XTg@mail.gmail.com> (raw)

Hi!

Is it possible to query the number of busy/idle unicorn workers? For
scaling purposes, I would like to be able to see the utilisation of
the unicorn workers, so I will know if I need to deploy more servers
in peak hours or not. Currently the only measure I have is when
machines top out and start serving 502's. I am not interested in
queueing up requests, as the approach is to instead spin up additional
capacity when needed.

I notice on http://demo.nginx.com/status.html that one of the metrics
under 'demoupstreams' is the number of active connections. I wonder if
that metric is exposed by nginx somehow, or if this is something only
available in nginx plus. Suggestions for alternative approaches to
this is appreciated. Ideally, I would like a metric that I can consume
and pump into our monitoring tools with a fairly high resolution.

Cheers,
Christian

-- 
christian b pedersen | cto | christian@onelogin.com | +1 310-383-0809

Join us at OneLogin Connect: Our International User Group Tour

             reply index

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-02 15:49 Christian Pedersen [this message]
2015-09-02 16:31 ` Carl Brasic
2015-09-02 16:48 ` Eric Wong

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://bogomips.org/unicorn/

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

  git send-email \
    --in-reply-to=CAE2Ar51tfuR8mJ99KmDj75p-JJOTAgYbOAwNaC-5b4-Pw__XTg@mail.gmail.com \
    --to=christian@onelogin.com \
    --cc=unicorn-public@bogomips.org \
    /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

unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help

Archives are clonable:
	git clone --mirror https://bogomips.org/unicorn-public
	git clone --mirror http://ou63pmih66umazou.onion/unicorn-public

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

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

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