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: AS15169 209.85.128.0/17 X-Spam-Status: No, score=-0.6 required=3.0 tests=AWL,BAYES_00, RCVD_IN_DNSWL_LOW,URIBL_BLOCKED shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: unicorn-public@bogomips.org Received: from mail-yk0-f176.google.com (mail-yk0-f176.google.com [209.85.160.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id A1A70200EB for ; Wed, 2 Sep 2015 15:49:35 +0000 (UTC) Received: by ykei199 with SMTP id i199so14141680yke.0 for ; Wed, 02 Sep 2015 08:49:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=xsLhZsOKrqzBQ3+W/Twu5UMnJEcWWeG66BHO7QIMeis=; b=IGsTKrzimT1VhwQ9UM40wLSzSFYDNuh0fGhlkcG2hXrwK3oRKvLvVW9UYX/ALX09tG nIh8IJhlDqlIPlL/MQ6qIyCCqikBvm0I+w2w+T+QIq0xVJ2bYjbZfGQLXm4Wt0rFoYuh jPW9a1nDuQc0+m7zQkKwyMIv74KNH0uYFfY8XUhMl5EkblaztIjvGV9vIBiI6JgqvlxV 3zGsNR38BQZ4mUM7SI4PwQ3PcjV7MzUpKGPVOmbKkkDmtCbcNJMM2F0YsRHgyw+aLO2X ILVetV4D4HWRJ5A2aiC7jb/LptaT8XEGe8Cdlg+CD8EsciXBbb7r8OIAjuYdSzZKK2pt OLeQ== X-Gm-Message-State: ALoCoQmhzayKlH7CGtfC0169l1D55hLmlItKsORl1DoPpPhVELSwCQAoYfqF6N21oWvWgdBW472v MIME-Version: 1.0 X-Received: by 10.13.196.129 with SMTP id g123mr34371784ywd.157.1441208975008; Wed, 02 Sep 2015 08:49:35 -0700 (PDT) Received: by 10.37.5.66 with HTTP; Wed, 2 Sep 2015 08:49:34 -0700 (PDT) Date: Wed, 2 Sep 2015 08:49:34 -0700 Message-ID: Subject: Monitoring active/idle unicorn process stats From: Christian Pedersen To: unicorn-public@bogomips.org Content-Type: text/plain; charset=UTF-8 List-Id: 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