From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ryan Dahl Newsgroups: gmane.comp.lang.ruby.mongrel.devel Subject: Re: [ANN] Unicorn: UNIX+localhost/LAN-only Mongrel fork Date: Thu, 12 Feb 2009 02:08:51 +0100 Message-ID: <21ee31950902111708m370f6a28s477b2d2fb4af960b@mail.gmail.com> References: <20090211230457.GB22926@dcvr.yhbt.net> <21ee31950902111632y6df95e9h1f9dd642bcc55baf@mail.gmail.com> <20090212005932.GB26706@dcvr.yhbt.net> Reply-To: mongrel-development-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1234404779 9316 80.91.229.12 (12 Feb 2009 02:12:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Feb 2009 02:12:59 +0000 (UTC) To: mongrel-development-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Original-X-From: mongrel-development-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Thu Feb 12 03:14:14 2009 Return-path: Envelope-to: gclrmd-mongrel-development@m.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=jf0mWoiuAPu5nMnifSFWotWsorn/OEyOKsK30kDuANI=; b=l9P+cuz8U7COa3h1+yD7keQ0acfILrI2B7icbNssz6Dww0jPaJ0mkiraxvBqsLJukW +sQQc9c3F0i4I2iAwWaefScltBdKSTOBvaNOTIeyir205ct615FwE4oesKYpobDSAffG sOB5YQ+kcLMNXQkvFCoP3ptgGlXEMgl0OxgfA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=Kk87mLV+LoT0+lYVt5GmUUOmCeClXswjpdDqUjT380xe+GhD1a9qd/9NwazYd9dOtK ymNOs8LDPhPqODOcbFuJdAtn96pnctBBcEdCds1cBZwMMPkIZ6qwYVHTDaotDORJFpt4 /VvvTA277vxSAYE5j0BmFzrBiSwTZ1RzO/zxs= In-Reply-To: <20090212005932.GB26706-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org> X-Google-Sender-Auth: 6d22675c6cc665b2 X-BeenThere: mongrel-development-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: mongrel-development-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Errors-To: mongrel-development-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Xref: news.gmane.org gmane.comp.lang.ruby.mongrel.devel:87 Archived-At: Received: from rubyforge.org ([205.234.109.19]) by lo.gmane.org with esmtp (Exim 4.50) id 1LXR5h-0004xE-1D for gclrmd-mongrel-development@m.gmane.org; Thu, 12 Feb 2009 03:14:13 +0100 Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id BB38B15B802C; Wed, 11 Feb 2009 21:12:49 -0500 (EST) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.29]) by rubyforge.org (Postfix) with ESMTP id 04BCE15B802D for ; Wed, 11 Feb 2009 20:08:51 -0500 (EST) Received: by yw-out-2324.google.com with SMTP id 5so300772ywh.59 for ; Wed, 11 Feb 2009 17:08:51 -0800 (PST) Received: by 10.142.162.9 with SMTP id k9mr136344wfe.282.1234400931323; Wed, 11 Feb 2009 17:08:51 -0800 (PST) List-Post: > The master process already notices when timeout is expired and sends > SIGKILL to workers. I could add a :soft_timeout config and have it send > SIGQUIT to workers if a lower timeout is reached. yes - i just saw that. is that working well for you? > Something like this should already be doable via various means > > Workers already process SIGQUIT to gracefully stop; so I'd rather not > reinvent that part even with a very simple protocol. requires finding the pid of workers - but yes - that would work too