Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 85C0320049E for ; Thu, 10 Aug 2017 17:24:18 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8460616B8D1; Thu, 10 Aug 2017 15:24:18 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id CA51A16B8CD for ; Thu, 10 Aug 2017 17:24:17 +0200 (CEST) Received: (qmail 80756 invoked by uid 500); 10 Aug 2017 15:24:16 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 80715 invoked by uid 99); 10 Aug 2017 15:24:15 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Aug 2017 15:24:15 +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 3C970C1798; Thu, 10 Aug 2017 15:24:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1 X-Spam-Level: * X-Spam-Status: No, score=1 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id lu7TJ6F-xBwa; Thu, 10 Aug 2017 15:24:12 +0000 (UTC) Received: from se05-out.mail.pcextreme.nl (se05-out.mail.pcextreme.nl [185.87.186.230]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 493D95FE64; Thu, 10 Aug 2017 15:24:12 +0000 (UTC) Date: Thu, 10 Aug 2017 17:23:59 +0200 (CEST) From: Wido den Hollander To: Rohit Yadav , dev@cloudstack.apache.org Cc: users@cloudstack.apache.org Message-ID: <735563560.246.1502378639567@ox.pcextreme.nl> In-Reply-To: References: Subject: Re: [DISCUSS] Moving to embedded Jetty and fatjar CloudStack MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.8.3-Rev22 X-Originating-Client: open-xchange-appsuite X-Originating-IP: 185.87.184.57 X-SpamExperts-Domain: out.pcextreme.nl X-SpamExperts-Username: 185.87.184.57 Authentication-Results: mail.pcextreme.nl; auth=pass smtp.auth=185.87.184.57@out.pcextreme.nl X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.08) X-Recommended-Action: accept X-Filter-ID: PqwsvolAWURa0gwxuN3S5YEa3T7JuZT23fGO2rGt3Zjqi4tIO0VkgTgCljFuEYn/xi39tSM6hrup NxhXAJrikqgGEm1jm9M2+EDEqKAergQPpOpYJ5j2uH0RpwEAtX6IhBf0Ryzd4WeyZQseNuI/iTrH T8rMhagko90WxUyiRufLXkvIWyl93Sosuafnrda0imgdyUxWe1hVdV3g9EySj2GJNPB0GR0ixojy GPZc8CmQN6sROXA7PuwIt7rEciYSKZGKZkoWZC3ARH3ny9WdUNUMSy3tIfhmacSZp0lltc266Mhs qYMd+DfypzprDRd1aaBZ7XV1CHHn3sMPKS1qYq+24chqqEyCFkMDAMgcMBX1H/aAwarQpYDOYx/6 JtUOOw+yko7MtQ5y2zmbwdX4VOmPuACWWB0jBgkrN3P0c8hxRfGH/DcaoAYUT2JgjpVXhWW7XpBA jcTcIXy6kYv1SEqFwM0j6Im4VrIzW8UBSSG+IoC4zW84O5QNgEE6ee0i6mdQKirAiP0QBV4zat6e tVXmv0RKqZgkVCEECCijVwoDMpAAmjZ60dWTmbKorBxQoFFDVUKukCpT38zJbUSLMLEpOD0NwY1o BoipCNsfk+sAHE4R1R4O+9Wty42gR4nvTXsjLlfoojPgZwEvG8CyYdm3NNvMzcejpj5xzjLFJ+T7 4O4hBSz/kkmPgL+fgIguBn+xoX5+lSIVDElerlSz/QMWxvlb1ICpdPrH4+uPgsRGaAT6Po228pvg 9CfI7tSkiYhm45pw46L2AZGSfz8eB1wducC0QHIZPBGaNCnTHQZgA50JoyuKT9fohs4ylwTLnzoY xwcgncWLUQoB8Cknv9SyMgNPmQSugHj+5QRaiY+EmNKQP+vHmyw5FQAF2w2CIxw/MvyHHFFBZSlQ G+1Wn9FlrwDaYoheE7y62BqJBM2a9rmCx5Z+PMOPxmG+NigHE71V+c61kfODBeTbqGNnXXO6U9yl AuP2kF8DzXUu/YI= X-Report-Abuse-To: spam@semaster01.mail.pcextreme.nl archived-at: Thu, 10 Aug 2017 15:24:18 -0000 > Op 10 augustus 2017 om 14:09 schreef Rohit Yadav : >=20 >=20 > All, >=20 >=20 > Distro provided tomcat6/7/* has caused production issues for few users in= the past. Due to this, the ACS deployments are inconsistent with the versi= on/jars of tomcat in use. By allowing exploded war to be shipped, can allow= admins to sometimes overwrite cloudstack jars causing production issues. I= think moving to a CloudStack uber/fat jar will make it easier to deploy Cl= oudStack in environments and write custom init/systemd scripts and fix clou= dstack setup databases/management scripts without assuming the distro we're= on. >=20 Yes, I agree. A flat jar makes things a lot easier. >=20 > With this discussion thread, I would like to engage with the community if= they've any reservations from moving away from tomcat to embedded jetty + = fat/uber jar based packaging. Please share your thoughts and comments. >=20 >=20 > On very high level the packaging will provide the following: >=20 > - A ServerDaemon class that can accept custom location of UI (webapp dire= ctory), logging, and other environment options, part of the fatjar. >=20 > - A config file (xml/yml or otherwise) where you can configure keystore/S= SL-certificates, paths (/client), ports, logging etc. >=20 > - Default libraries/plugin path at /usr/share/cloudstack-management/lib, = UI path at /usr/share/cloudstack-management/webapp >=20 > - A default file (available at /etc/default/cloudstack-management or syml= ink at /etc/sysconfig etc) where you can specific custom variables, java op= tions, classpath etc. >=20 > - Refactored init.d/systemd scripts to be commonly used b/w rpm/deb build= scripts >=20 > - A new/improve logrotate file >=20 > - Logging will be handled by log4j (the same xml/config file you normally= use) >=20 > - Currently we're using jsvc to handle mgmt server process, however we ma= y move to java+systemd completely >=20 I suggest that we only use init.d on RHEL 6 and Ubuntu 14.04, but on RHEL 7= and Ubuntu 16.04 (any distro that runs with systemd) we should try to avoi= d using jsvc. That way we don't have to daemonize the MGMT server and keep it attached to= systemd. Also makes it easy to just print logs to stdout and have journalc= tl take care of them. >=20 > Marc-Aur=C3=A8le (ExoScale) and I have collaborated on this problem and w= e finally have a PR (not complete) where we can show this actually works, p= lease have a look: Awesome work! >=20 > https://github.com/apache/cloudstack/pull/2226 >=20 >=20 > Once the PR is accepted, we can include a topic page in the 4.11/future r= elease notes docs about upgrading in-place and setting up ssl certs etc. >=20 >=20 > Regards. >=20 > rohit.yadav@shapeblue.com=20 > www.shapeblue.com > 53 Chandos Place, Covent Garden, London WC2N 4HSUK > @shapeblue > =20 > =20 >