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=-1.9 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 9194D1FEC7; Thu, 3 Jul 2014 19:28:43 +0000 (UTC) Date: Thu, 3 Jul 2014 19:28:43 +0000 From: Eric Wong To: unicorn-public@bogomips.org Cc: Cedric Maion Subject: [PATCH] FAQ: add entry for Rails autoflush_log Message-ID: <20140703192843.GA26819@dcvr.yhbt.net> References: <20140703144048.GA6674@cedric-maion.com> <20140703172410.GA17685@dcvr.yhbt.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140703172410.GA17685@dcvr.yhbt.net> List-Id: Thanks to Cedric Maion for bringing this up on the mailing list: http://bogomips.org/unicorn-public/m/20140703144048.GA6674@cedric-maion.com --- This updates http://unicorn.bogomips.org/FAQ.html FAQ | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/FAQ b/FAQ index c84a8af..66f1a09 100644 --- a/FAQ +++ b/FAQ @@ -1,6 +1,14 @@ = Frequently Asked Questions about Unicorn -=== I've installed Rack 1.1.x, why can't Unicorn load Rails (2.3.5)? +=== Why aren't my Rails log files rotated when I use SIGUSR1? + +The Rails autoflush_log option must remain disabled with multiprocess +servers such as unicorn. Buffering in userspace may cause lines to be +partially written and lead to corruption in the presence of multiple +processes. With reasonable amounts of logging, the performance impact +of autoflush_log should be negligible on Linux and other modern kernels. + +=== I've installed Rack 1.1.x, why can't Unicorn load Rails (2.3.5)? Rails 2.3.5 is not compatible with Rack 1.1.x. Unicorn is compatible with both Rack 1.1.x and Rack 1.0.x, and RubyGems will load the latest -- EW