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 1D278200C70 for ; Thu, 4 May 2017 10:49:00 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1BC2A160BC4; Thu, 4 May 2017 08:49:00 +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 3CF23160B9F for ; Thu, 4 May 2017 10:48:59 +0200 (CEST) Received: (qmail 30828 invoked by uid 500); 4 May 2017 08:48:55 -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 29948 invoked by uid 99); 4 May 2017 08:48:55 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 May 2017 08:48:55 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id F3F251A0903 for ; Thu, 4 May 2017 08:48:54 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.8 X-Spam-Level: X-Spam-Status: No, score=0.8 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, KAM_NUMSUBJECT=0.5, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id NSDwEqaNTuRu for ; Thu, 4 May 2017 08:48:52 +0000 (UTC) Received: from se03-out.mail.pcextreme.nl (se03-out.mail.pcextreme.nl [185.107.224.100]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 18B615FB29 for ; Thu, 4 May 2017 08:48:52 +0000 (UTC) Received: from router05.route25.eu ([185.66.251.132]) by se03.mail.pcextreme.nl with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.86) (envelope-from ) id 1d6CRG-0005sL-WD; Thu, 04 May 2017 10:48:46 +0200 Received: from ox.pcextreme.nl (ox01.pcextreme.nl [109.72.87.221]) (Authenticated sender: wido@widodh.nl) by router05.route25.eu (Postfix) with ESMTPSA id C7D2A160142; Thu, 4 May 2017 10:48:42 +0200 (CEST) Date: Thu, 4 May 2017 10:48:42 +0200 (CEST) From: Wido den Hollander To: Daan Hoogland , dev@cloudstack.apache.org Message-ID: <1327248679.3490.1493887722616@ox.pcextreme.nl> In-Reply-To: References: <2032837791.3395.1493747829105@ox.pcextreme.nl> <8E18DC0D-BC0A-4EB2-878A-607AA0EE664F@schubergphilis.com> Subject: Re: Very slow Virtual Router provisioning with 4.9.2.0 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.2-Rev12 X-Originating-Client: open-xchange-appsuite X-Originating-IP: 185.66.251.132 X-SpamExperts-Domain: out.pcextreme.nl X-SpamExperts-Username: 185.66.251.132 Authentication-Results: mail.pcextreme.nl; auth=pass smtp.auth=185.66.251.132@out.pcextreme.nl X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.03) X-Recommended-Action: accept X-Filter-ID: s0sct1PQhAABKnZB5plbITMBeUk8//EspfOcHisil/vtkq11CRzstCbbrK5adCnU68oOmJAJyVu4 /QFXpdDi3d8+c62bzz3ZxfOP13SdAI/qrGdJzMcHDAxBj0pQ/FkhlcgBsAed4ioeaSCUaF81OaCT Gb2R7UyjrIebnRF0B4HJzIOwx6BfEOybqdUlTuS9KJfJEe0zuRoa4O/x9CS+olz1pRXWhjh9fdbl 44I0Df1pmjz3oX6fRXJoRK0lEtYAxBhGqEn+7Zk1XFk9vbgsch297yTqkK2+EGJrF3QEAokKC70c D/r0ycMhIzA1GP8uUVitpGY8euSdtG7mw1R97X6m+UeFXprlCOm3BAEbJtDtnacAN/jGaak/7iU/ BfDLN9kPRwkPkcQHhWp08kqOnRsBP9tMYzd6qlJFAHFmeiE5CLqMQUV/XeFlVa+WJfJXlvDAWA+B 4d90dJiKF0jai3WcKqwg/M4U8OLdwWsxGlCAdnDtU06FkUB8dxnUnm2pPxdmJEuk4prc8/FOPUga jXpDsH5KTKlaUn3BWpeMsAGFbWsQaXnnOzKexKCGQW4ffITr1ZOm5+ytFLVuYjO2RNtXAeSCOAbk 3L0b00fsmZsdoZlp/xT52yL7r+dSFHsUesDDSzRoWU0PVbVIfHlEORqZR3KVQgqF/fPYYAfEfsiL QHZuWUd3HvbND3AVBZuo6UkDSaipMfuT8vZKty5VtrqxsExKRbZ22htg/hVMHNY56gruA6p7K6u4 zOtmf+rdSmmQv4idSboZmr5T2ZlROmsnJ395jBJAgljEd2a/UHQOAul+zArVj3KHWY19aucOzgk8 yjOD+NLWyLltCESZbT9+Y+i2gmMMq9a6DiyjQUP/bYDWdYN3+RrbTdAJL/7v8DkRXsL3VoUaVRpW uueNdykS0oIJSi/HEAuwisM72es= X-Report-Abuse-To: spam@semaster01.mail.pcextreme.nl archived-at: Thu, 04 May 2017 08:49:00 -0000 Thanks Daan, Remi. I found a additional bug where it seems that 'network.dns.basiczone.updates= ' isn't read when sending DHCP settings in Basic Networking. This means that the VR gets all DHCP setting for the whole zone instead of = just for that POD. In this case some VRs we have get ~2k of DHCP offerings send to them which = causes a large slowdown. Wido > Op 3 mei 2017 om 14:49 schreef Daan Hoogland : >=20 >=20 > Happy to pick this up, Remi. I'm travelling now but will look at both on > Friday. >=20 > Biligual auto correct use. Read at your own risico >=20 > On 3 May 2017 2:25 pm, "Remi Bergsma" wrote= : >=20 > > Always happy to share, but I won=E2=80=99t have time to work on porting= this to > > CloudStack any time soon. > > > > Regards, Remi > > > > > > On 03/05/2017, 13:44, "Rohit Yadav" wrote: > > > > Hi Remi, thanks for sharing. We would love to have those changes (f= or > > 4.9+), looking forward to your pull requests. > > > > > > Regards. > > > > ________________________________ > > From: Remi Bergsma > > Sent: 03 May 2017 16:58:18 > > To: dev@cloudstack.apache.org > > Subject: Re: Very slow Virtual Router provisioning with 4.9.2.0 > > > > Hi, > > > > The patches I talked about: > > > > 1) Iptables speed improvement > > https://github.com/apache/cloudstack/pull/1482 > > Was reverted due to a licensing issue. > > > > 2) Passwd speed improvement > > https://github.com/MissionCriticalCloudOldRepos/cosmic-core/pull/13= 8 > > > > By now, these are rather old patches so they need some work before > > they apply to CloudStack again. > > > > Regards, Remi > > > > > > > > On 03/05/2017, 12:49, "Jeff Hair" wrote: > > > > Hi Remi, > > > > Do you have a link to the PR that was reverted? And also possib= ly > > the code > > that makes the password updating more efficient? > > > > Jeff > > > > On Wed, May 3, 2017 at 10:36 AM, Remi Bergsma < > > RBergsma@schubergphilis.com> > > wrote: > > > > > Hi Wido, > > > > > > When we had similar issues last year, we found that for examp= le > > comparing > > > the iptables rules one-by-one is 1000x slower than simply > > loading them all > > > at once. Boris rewrote this part in our Cosmic fork, may be > > worth looking > > > into this again. The PR to CloudStack was merged, but reverte= d > > later, can't > > > remember why. We run it in production ever since. Also feedin= g > > passwords to > > > the passwd server is very inefficient (it operates like a > > snowball and gets > > > slower once you have more VMs). That we also fixed in Cosmic, > > not sure if > > > that patch made it upstream. Wrote it about a year ago alread= y. > > > > > > We tested applying 10K iptables rules in just a couple of > > seconds. 1000 > > > VMs takes a few minutes to deploy. > > > > > > Generally speaking I'd suggest looking at the logs to find wh= at > > takes long > > > or is executed a lot of times. Iptables and passwd are two to > > look at. > > > > > > If you want I can lookup the patches. Not handy on my phone n= ow > > ;-) > > > > > > Regards, Remi > > > ________________________________ > > > From: Wido den Hollander > > > Sent: Tuesday, May 2, 2017 7:57:08 PM > > > To: dev@cloudstack.apache.org > > > Subject: Very slow Virtual Router provisioning with 4.9.2.0 > > > > > > Hi, > > > > > > Last night I upgraded a CloudStack 4.5.2 setup to 4.9.2.0. Al= l > > went well, > > > but the VR provisioning is terribly slow which causes all kin= ds > > of problems. > > > > > > The vr_cfg.sh and update_config.py scripts start to run. Rest= art > > dnsmasq, > > > add metadata, etc. > > > > > > But for just 1800 hosts this can take up to 2 hours and that > > causes > > > timeouts in the management server and other problems. > > > > > > 2 hours is just very, very slow. So I am starting to wonder i= f > > something > > > is wrong here. > > > > > > Did anybody else see this? > > > > > > Running Basic Networking with CloudStack 4.9.2.0 > > > > > > Wido > > > > > > > > > > > > > rohit.yadav@shapeblue.com > > www.shapeblue.com > > 53 Chandos Place, Covent Garden, London WC2N 4HSUK > > @shapeblue > > > > > > > > > > > >