From: Ian Campbell Subject: Re: [PATCH v4 01/15] xenstore: add support for a retry open limit on xenstored Date: Mon, 12 May 2014 15:18:27 +0100 Message-ID: <1399904307.4428.26.camel@kazak.uk.xensource.com> References: <1398820328-15132-1-git-send-email-mcgrof@do-not-panic.com> <1398820328-15132-2-git-send-email-mcgrof@do-not-panic.com> <21360.53650.72671.315763@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Wjr45-0002TB-SQ for xen-devel@lists.xenproject.org; Mon, 12 May 2014 14:18:50 +0000 In-Reply-To: <21360.53650.72671.315763@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson Cc: Stefano Stabellini , "Luis R. Rodriguez" , Jan =?UTF-8?Q?R=C4=99korajski?= , Jacek Konieczny , M A Young , xen-devel@lists.xenproject.org, "Luis R. Rodriguez" List-Id: xen-devel@lists.xenproject.org On Mon, 2014-05-12 at 14:50 +0100, Ian Jackson wrote: > Luis R. Rodriguez writes ("[PATCH v4 01/15] xenstore: add support for a retry open limit on xenstored"): > > This adds support for a customizable retry limit on trying to open > > the xenstored unix domain socket, each retry is separated by 1 second. > > This should allow us to simplify both our LSB init scripts. For systemd > > we'll use socket activation. > > I'm afraid I fundamentally disagree with this timeout/polling based > approach. It already exists, all the first two patches in this series are doing is moving it from /etc/init.d/xencommons into the client utility. > Why is it necessary ? If xenstored has failed to start for some reason then the xenstore-write in the initscript would potentially block forever without a timeout. As for the retry -- I suppose xenstored forks before it is really ready? Ian.