From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-3.0 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, URIBL_BLOCKED shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: unicorn-public@bogomips.org Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id DF23B200EB; Wed, 2 Sep 2015 16:48:32 +0000 (UTC) Date: Wed, 2 Sep 2015 16:48:32 +0000 From: Eric Wong To: Christian Pedersen Cc: unicorn-public@bogomips.org Subject: Re: Monitoring active/idle unicorn process stats Message-ID: <20150902164832.GA28081@dcvr.yhbt.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: Christian Pedersen wrote: > Is it possible to query the number of busy/idle unicorn workers? What Carl said. You can also use Raindrops::Linux.tcp_listener_stats for TCP for a similar effect. Raindrops also includes a different module, Raindrops::Watcher, to be used as a Rack endpoint to show the number of active/queued connections. You can see a demo of this at: http://raindrops-demo.bogomips.org:8080/ (It also works for Unix sockets, but I only have TCP sockets configured)