Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2476192E8 for ; Thu, 19 Apr 2012 07:35:14 +0000 (UTC) Received: (qmail 95489 invoked by uid 500); 19 Apr 2012 07:35:10 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 95314 invoked by uid 500); 19 Apr 2012 07:35:10 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 95296 invoked by uid 99); 19 Apr 2012 07:35:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Apr 2012 07:35:09 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of pid@pidster.com designates 209.85.160.45 as permitted sender) Received: from [209.85.160.45] (HELO mail-pb0-f45.google.com) (209.85.160.45) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Apr 2012 07:35:02 +0000 Received: by pbcuo5 with SMTP id uo5so10698727pbc.18 for ; Thu, 19 Apr 2012 00:34:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pidster.com; s=google; h=references:from:in-reply-to:mime-version:date:message-id:subject:to :content-type; bh=HAsCmfq4qV2tab+yN187ipry+xlm7DuiTXH5HBs3iJc=; b=ha8aL9tbbXC9gXtaeFp3xFSANyDm2QoqE8i0W/8cpIWM74qmmAoqzTfChF+8cUxODQ /0A1+nTqHCexm6uh/IkloMxnb9EQXkTtYyTzp29Ug1yN1yXlH7e/yRaJ3qVzViPald3z 0eJro/9V/OW0I57m5gSHJHEGYsKTFkejYj2pU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=references:from:in-reply-to:mime-version:date:message-id:subject:to :content-type:x-gm-message-state; bh=HAsCmfq4qV2tab+yN187ipry+xlm7DuiTXH5HBs3iJc=; b=CtlYmF/UrMTbMC9PzZlQvkfyhwZo+LwHZBkfJbEIfG5Np9qwiO6PGsg/f5Oc6elZ1F EH9KnJhnwC+hheUhL2T6mnsxzZhTMVmK9p7Ve0jQa8nyiFUlerRoHILcgOUfyKL2u/UI 3wKx8h+ZYM3waXY3WVnz1Xz3fwIgyrOYmiuR8I96mK56Gfh5baxOMNmkS6MwVY5wA1uE 2OeYlTFp8AArwryh/U3XRJPmQu5PzeJYfW35D1Vo8PzFOQpNh1uenNzM2DtjrytbO6Do AnThPfVRTWyPbIpSKlhCRz0m/72vligLhLgjQR/kTqCn0GZy490NUv/UFm1fBi8kU3fn PpcA== Received: by 10.68.223.234 with SMTP id qx10mr2888678pbc.154.1334820881042; Thu, 19 Apr 2012 00:34:41 -0700 (PDT) References: <15D3435601304A49A5E13D0825711B6128CC5706@EXCHANGE07.webde.local> <15D3435601304A49A5E13D0825711B6128CC570C@EXCHANGE07.webde.local> <15D3435601304A49A5E13D0825711B6128CC5740@EXCHANGE07.webde.local> <2be74d4f-f0ca-42e2-850a-b856def1449c@email.android.com> From: "Pid *" In-Reply-To: <2be74d4f-f0ca-42e2-850a-b856def1449c@email.android.com> Mime-Version: 1.0 (1.0) Date: Thu, 19 Apr 2012 08:35:16 +0100 Message-ID: <-7644235873111289499@unknownmsgid> Subject: Re: parallel deployment activation of new version To: Tomcat Users List Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQmmfkkWxHQUJnOdYaSeX3H1CLSHCtn2bpzHwk+ub2UWr63lHM0aHNBk3ij9/+cprs1CJGxu On 19 Apr 2012, at 08:07, "markt@apache.org" wrote: > Christoph Maser wrote: > >> Am Donnerstag, den 12.04.2012, 14:02 +0100 schrieb markt@apache.org: >>> Christoph Maser wrote: >>> >>>> Do you see any chance a request for feature in that direction would >> be >>>> accpeted? >>> >>> Right now, no. I don't see a requirement that isn't met by the >> existing implementation. If there was a use case that wasn't completely >> off the wall that couldn't be met then it would get looked at. Actual >> implementation would depend on an assessment of benefit against >> complexity. >>> >>> Mark >>> >> >> Well the idea is to have additional saftey measures that check if the >> webapp is in the desired state after the context is started. This is >> done by sending queries against the webapp for standard pages or >> debug/health-status pages that the webapp provides. > > There is a logic problem with that requirement. Requests without sessions can't be sent to the app until after the health checks are complete and some switch flicked but the health checks are requests without sessions. > >> A reason to do not let the context startup fail in a case where the >> webapp is in a non desired state is that you loose access to those >> debug/healt-status pages the webapp provides and you end up searching >> for the causes in the logfiles. > > However, this is probably the simplest solution. Put whatever info is in those pages in your error message on failure. > >> Antoher point are loadbalancers. Often loadbalancers have the >> possibiity >> to check if a "real Server" is "alive" by sending a request to a >> defined >> URL. So as enother safty maesure one might check this URL too before >> switching. This one should of course never happen, thats what proper >> testing is for, but in real life strangest things happen. > > I can see what you are trying to do but the logic problem needs resolving. > > One possible solution: > - add a flag to a context that enables/disables it for parallel deployment > - provide a mechanism (tbd) to change this flag > - deploy apps with this flag enabled by default > - fake the session ID to route the health check to the new app > > I haven't looked at the mapper to see how complex this might be and what the performance impact is. Compared to a better error message when startup fails, my initial impression is that this feature wouldn't be worth implementing. Especially when: ROOT/myapp1/healthcheck <- always reports app load failure ROOT/myapp2/healthcheck ROOT/myapp3/healthcheck /myapp1/healthcheck /myapp2/healthcheck /myapp3/healthcheck would achieve the same. A Filter in ROOT on /*/healthcheck would also work. Better than both is to use the JMX API where you can see the presence and state of each component. p > > Mark > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org