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 E2FBA18B42 for ; Thu, 3 Dec 2015 08:32:24 +0000 (UTC) Received: (qmail 71153 invoked by uid 500); 3 Dec 2015 08:32:22 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 71093 invoked by uid 500); 3 Dec 2015 08:32:21 -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 71082 invoked by uid 99); 3 Dec 2015 08:32:21 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Dec 2015 08:32:21 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 42765C73E5 for ; Thu, 3 Dec 2015 08:32:21 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.901 X-Spam-Level: ** X-Spam-Status: No, score=2.901 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=visual-meta.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id pgIAOMVlN9Rz for ; Thu, 3 Dec 2015 08:32:15 +0000 (UTC) Received: from mail-ig0-f173.google.com (mail-ig0-f173.google.com [209.85.213.173]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id EF36542AD4 for ; Thu, 3 Dec 2015 08:32:14 +0000 (UTC) Received: by igcto18 with SMTP id to18so6935081igc.0 for ; Thu, 03 Dec 2015 00:32:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=visual-meta.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=yZKuYw5enEH08tlThBkLnfv0xCc/kCl/iZ9VvPf4yVk=; b=MRlHZbVAFzeB660hk0n+GUNIBC+aRKzoi266sFSmNoBv8HXcoA+0XyGZTp3+Byspwo 8IkN/kltqc3petjgkrHNB8apmEg1XfZuBc7wjZp/PiuWxL8f4GuMiK15682FtlgnKIWM dcbrO5RNgOx+CbjvSCmk2M9wBU+WXwBVXzvHk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=yZKuYw5enEH08tlThBkLnfv0xCc/kCl/iZ9VvPf4yVk=; b=l8iHvKe1IDtdG8Ga4xm0BXXIigvtZy68U6z+3z0R9JYVk+M9fRj6Zq/1KRG8rOBsv4 vd2MtmGyeFiGYHi19wgt8uoye/L+ygKsllo4mHVotayA43LzEaoWzHOYboJT8uvm5UWz vVLxfRPAbLDMckX4IxT21fBu7pi/1NgtpoOpSy7QhEX8lQuOPhblh6k/7iVhoXMNU4O+ lXm0sb2VL8NuLpFDGvkH3lSrbgvYVveCIafdc4Ln48AM2LKy51VM3gRskivOWRgQCDf7 nSPb++19pRnx3beSsYQcDzTvfcoqv9taGxR7zYspU60BRgrN0xvIRBkurfrjXB6GbcU4 2q4g== X-Gm-Message-State: ALoCoQlMLtx0EgW53bw4qYm0j7+RQxu/j8uiQs6fTcKpXL0aznrzBv21iCzr9EajA0uQHwAaQ3C7 X-Received: by 10.50.112.168 with SMTP id ir8mr7471719igb.30.1449131534588; Thu, 03 Dec 2015 00:32:14 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.11.143 with HTTP; Thu, 3 Dec 2015 00:31:55 -0800 (PST) In-Reply-To: References: <565F77F9.2020009@christopherschultz.net> From: Neill Lima Date: Thu, 3 Dec 2015 09:31:55 +0100 Message-ID: Subject: Re: Zero downtime deployments To: Tomcat Users List Content-Type: multipart/alternative; boundary=089e013c68d65a2fc00525fa3aa1 --089e013c68d65a2fc00525fa3aa1 Content-Type: text/plain; charset=UTF-8 Hello Jason, This approach of using httpd in front of 2+ Tomcats via AJP works well in my company. There is a bit of config necessary at httpd level so httpd is aware of all the Tomcats and also Tomcat config needs to be set to listen to AJP port instead of default port but it is not rocket science. This facilitates the deployment of nodes sequentially with no downtime. Of course, there is a shared session server to take care the sessions are not lost when Tomcats flip up and down. Reply in pvt if you need help setting up this. Thanks, Neill On Thu, Dec 3, 2015 at 12:08 AM, Jason Britton wrote: > Thank you Christopher, reading now and we'll see if I can swing the > conference :) > > On Wed, Dec 2, 2015 at 4:00 PM, Christopher Schultz < > chris@christopherschultz.net> wrote: > > > Jason, > > > > On 12/2/15 4:07 PM, Jason Britton wrote: > > > I was looking for information for how those on the list achieve zero > > > downtime deployments of their tomcat hosted web applications. I > imagine > > > this can be achieved in a variety of ways, but would love to hear what > > > works for you. In our current environment we front multiple tomcat > > > instances with apache httpd, each tomcat instance hosting one or more > > > unique web apps. In order to support this effort we do have the > > resources > > > where we could spin up multiple tomcat instances to serve requests for > a > > > single application. I know there is mod_proxy_balancer available for > > > httpd, and I understand starting with tomcat 7 there is support for > > > parallel deployment of versioned wars, and tomcat also supports > > > clustering. I'm just unsure of what approach I should start digging > into > > > and would very much appreciate any of your experiences. The servers > > we'll > > > be rolling out will be using the latest versions of tomcat 8 and apache > > > httpd 2.4. Thanks for any insights! > > > > Check this out: > > > > > http://people.apache.org/~schultz/ApacheCon%20NA%202015/Load-balancing%20Tomcat%20with%20mod_jk.pdf > > > > Start on slide/page 41. > > > > Then come to ApacheCon NA 2016 and discuss it! > > > > -chris > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > > For additional commands, e-mail: users-help@tomcat.apache.org > > > > > --089e013c68d65a2fc00525fa3aa1--