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: AS33070 50.56.128.0/17 X-Spam-Status: No, score=0.0 required=5.0 tests=none shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: archivist@yhbt.net Delivered-To: archivist@dcvr.yhbt.net Received: from rubyforge.org (50-56-192-79.static.cloud-ips.com [50.56.192.79]) by dcvr.yhbt.net (Postfix) with ESMTP id 7EA6D1F6E0 for ; Thu, 29 Nov 2012 20:57:58 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 29DFA2E081; Thu, 29 Nov 2012 20:57:59 +0000 (UTC) X-Original-To: mongrel-unicorn@rubyforge.org Delivered-To: mongrel-unicorn@rubyforge.org Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by rubyforge.org (Postfix) with ESMTP id 7C6F02E07D for ; Thu, 29 Nov 2012 20:57:50 +0000 (UTC) Received: by mail-wi0-f182.google.com with SMTP id cb5so4843499wib.5 for ; Thu, 29 Nov 2012 12:57:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=W78d4TN11Cgbph2qKdXMo7hNll4onYA2scFf+5KBP9Y=; b=OipKiTQJD+DcZ/ilBFkPiugEtBtDqTArZpYvWDDiNGp9wrkQK8Zl6rmsdL0jyZB4wd pPgc4W7JLT00XRN1iqqPpLnatKYhyb0f33ksvSWCFRfNIhAdO5pDSpq4w0bHHDauGFvp 8M4H/JWyNoW3eQtr3SmdHJtIQD3JWpl68bK0xXtGjSZhXsHGsH8snPP4fpvpjOFpeZJr 7iBIQNCAzMkSchRDPMzoLMl3vDuuuRVJuEzAaB2fGHcar0VR2llR4KxBqDCKKvxqG9U3 mZNgjxiNkxbgP/Y08H/e2guID2PjvomtzlgsYOsUtz9Inv+yGl3aB+c5ojXqTuKn3Bw0 V7HQ== MIME-Version: 1.0 Received: by 10.180.102.40 with SMTP id fl8mr3139430wib.22.1354222668423; Thu, 29 Nov 2012 12:57:48 -0800 (PST) Received: by 10.216.237.134 with HTTP; Thu, 29 Nov 2012 12:57:48 -0800 (PST) In-Reply-To: References: <20121029184549.GA9690@dcvr.yhbt.net> <20121029215312.GA29353@dcvr.yhbt.net> <20121030213719.GA6701@dcvr.yhbt.net> <20121102193803.GA17916@dcvr.yhbt.net> <20121105114850.GA15932@dcvr.yhbt.net> <20121106212338.GA4018@dcvr.yhbt.net> Date: Thu, 29 Nov 2012 15:57:48 -0500 Message-ID: Subject: Re: Combating nginx 499 HTTP responses during flash traffic scenario From: Tom Burns To: unicorn list X-Gm-Message-State: ALoCoQkgXoPiv16nKb9hP29GUnKKcwk1/lC/Mz1FZH3OlbNS7WKfJ0XZOp0EA4QYptXDVpuj6TBo X-BeenThere: mongrel-unicorn@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: mongrel-unicorn-bounces@rubyforge.org Errors-To: mongrel-unicorn-bounces@rubyforge.org On Thu, Nov 29, 2012 at 3:41 PM, Eric Wong wrote: > I fixed up some minor line-wrapping, signed-off, and added your > quote above to the commit message. Pushed as > commit 5c700fc2cf398848ddcf71a2aa3f0f2a6563e87b > to git://bogomips.org/unicorn.git > > I'll tag and push a 4.5.0.preview1 gem soon Excellent news :) On Thu, Nov 29, 2012 at 3:30 PM, Lawrence Pit wrote: > we haven't tested it with older browsers > such as IE6 (we do not have that requirement) nor with all of the API > clients we see (java, python, etc., we do have that requirement). With nginx and proxy_pass you can buffer the entire request/response from the rails application, so clients will not notice any difference. > > Hopefully we're bringing that patch into our production environment within > the next couple of weeks, and then we should see results later that week. > > > Tom Burns wrote: >> >> Unexpectedly the patch also helped us ward off a DoS attack where the >> attackers were disconnecting immediately after making a request. > > > Awesome! > > The only thing that worries me is that Eric calls this a "nasty/crazy > solution". :p Not sure why. Seems to me it's a rather smart solution that > perhaps in the future would deserve to be the default. > > A related question: is it possible to get insight in what's in the unicorn > queue and for how long requests have been queued there? We use New Relic for response queue monitoring. https://newrelic.com/docs/features/tracking-front-end-time Cheers, Tom _______________________________________________ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote signatures (like this one) or top post when replying