Return-Path: X-Original-To: apmail-stratos-dev-archive@minotaur.apache.org Delivered-To: apmail-stratos-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1B741185AC for ; Sat, 14 Nov 2015 03:19:50 +0000 (UTC) Received: (qmail 97038 invoked by uid 500); 14 Nov 2015 03:19:49 -0000 Delivered-To: apmail-stratos-dev-archive@stratos.apache.org Received: (qmail 96978 invoked by uid 500); 14 Nov 2015 03:19:49 -0000 Mailing-List: contact dev-help@stratos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stratos.apache.org Delivered-To: mailing list dev@stratos.apache.org Received: (qmail 96968 invoked by uid 99); 14 Nov 2015 03:19:49 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Nov 2015 03:19:49 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 1822DC0052 for ; Sat, 14 Nov 2015 03:19:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.91 X-Spam-Level: *** X-Spam-Status: No, score=3.91 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, KAM_LIVE=1, SPF_PASS=-0.001, T_FILL_THIS_FORM_SHORT=0.01, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=wso2.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 9OrCTJcQzRfC for ; Sat, 14 Nov 2015 03:19:37 +0000 (UTC) Received: from mail-yk0-f179.google.com (mail-yk0-f179.google.com [209.85.160.179]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id A31DE20CF5 for ; Sat, 14 Nov 2015 03:19:36 +0000 (UTC) Received: by ykba77 with SMTP id a77so176687047ykb.2 for ; Fri, 13 Nov 2015 19:19:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wso2.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=+WYPLL2Q6w+Bxe7Jo/RhCy94RwU4+Ar3EM40hlUXpS4=; b=ay8eY9iWdYWOsDWkueXZk0CnLBWrNBqwPb/vXvi2DG8hihdW1HxMh09MekQT27S39O LrF56RQ5m+SUZDyIk/7PDscyuWL+El7SxIt1rFaVv90ImflHDvyw+fdkJZOfuNkZlsud /If0ohlMqfMSGrLpf2PSwwuvhxr5PC6IlPOr4= 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:date :message-id:subject:from:to:cc:content-type; bh=+WYPLL2Q6w+Bxe7Jo/RhCy94RwU4+Ar3EM40hlUXpS4=; b=C0zqceT68D+1hH5oawF8afJxlsdCBJGFmzBvBo3IDkIsECymwTWPjEhu9rCuJoqUSW 8uAfrhp4frTN0nZAvGqO2XBfKBap9f4DBDBmlRhKizTvZSTWmzf4CffiDDJEiOTfrsmK TQZhXdMVqtIKuOQrgHBPoN3k4VhoQIbSPlogFdrJeAkwSEDvkFGs1zmxu+Kb8vw+1xJd CsyBqVjP4Ti/J63ZRPpfvXIyg0SMqaHwSRSHDRgBEKMi7CWJ3PrUjb3rfaqNrrSlH6RM hkLU9DNNuCkCCQvsCr2fhAMrXsANVgzfDExyR2rqsjhJnPlCe10BsDc3sKN0Z4cfGyrf Vw5w== X-Gm-Message-State: ALoCoQm+tGrecdUAEStVsS4g6qiJruCwyVPKo1TPaIXQb5Dh5n2pYE+TcYgyrnwAcNjzkdewy939 MIME-Version: 1.0 X-Received: by 10.13.206.193 with SMTP id q184mr24718936ywd.290.1447471175541; Fri, 13 Nov 2015 19:19:35 -0800 (PST) Received: by 10.37.214.195 with HTTP; Fri, 13 Nov 2015 19:19:35 -0800 (PST) In-Reply-To: References: Date: Sat, 14 Nov 2015 08:49:35 +0530 Message-ID: Subject: Re: AutoscalerHealthStatEventReceiver is sleeping for 15s at startup? From: Rajkumar Rajaratnam To: Reka Thirunavukkarasu Cc: Akila Ravihansa Perera , Isuru Haththotuwa , dev , Imesh Gunaratne , Gayan Gunarathne Content-Type: multipart/alternative; boundary=001a114e4f483de29c052477a582 --001a114e4f483de29c052477a582 Content-Type: text/plain; charset=UTF-8 I have removed this unnecessary thread sleep in commit 26f0c4e0a80b773733aff2b37f5458. I have tested with mock and k8s and found no issues. Thanks, Raj. On Fri, Nov 13, 2015 at 11:12 AM, Reka Thirunavukkarasu wrote: > +1. fine then..:) > > Thanks, > Reka > > On Fri, Nov 13, 2015 at 11:09 AM, Rajkumar Rajaratnam > wrote: > >> Hi Reka, >> >> Yes, that's what we are going to do. We are going to start event receiver >> threads after syncing the registry with in-memory model. >> >> Thanks, >> Raj. >> >> On Fri, Nov 13, 2015 at 11:06 AM, Reka Thirunavukkarasu >> wrote: >> >>> In that case, can't we simply start these Receiver threads atlast after >>> done with all the registry loading the component activation? >>> >>> >>> Thanks, >>> Reka >>> >>> On Fri, Nov 13, 2015 at 11:05 AM, Rajkumar Rajaratnam < >>> rajkumarr@wso2.com> wrote: >>> >>>> Akila, sure - will fix it. >>>> >>>> On Fri, Nov 13, 2015 at 11:02 AM, Akila Ravihansa Perera < >>>> ravihansa@wso2.com> wrote: >>>> >>>>> Thanks for the clarification Isuru! >>>>> >>>>> @Raj: will you be able to fix this as part of the fix that you are >>>>> doing to AS related to topology receiver? >>>>> >>>>> Thanks. >>>>> >>>>> On Fri, Nov 13, 2015 at 10:58 AM, Isuru Haththotuwa >>>> > wrote: >>>>> >>>>>> This can be similar to the issue Raj has explained in thread [1]. The >>>>>> HealthStat receiver is started before the information is loaded from the >>>>>> registry. We should start the HealthStat and Topology threads after loading >>>>>> the information from the registry. That might be the reason why we are >>>>>> waiting 15s till all information is loaded to the memory. >>>>>> >>>>>> >>>>>> [1]. [Stratos 4.1.5] [Blocker] Monitors are not created on Stratos >>>>>> restart >>>>>> >>>>>> On Fri, Nov 13, 2015 at 10:47 AM, Akila Ravihansa Perera < >>>>>> ravihansa@wso2.com> wrote: >>>>>> >>>>>>> Any thoughts please? >>>>>>> >>>>>>> On Wed, Nov 11, 2015 at 11:26 PM, Akila Ravihansa Perera < >>>>>>> ravihansa@wso2.com> wrote: >>>>>>> >>>>>>>> Hi devs, >>>>>>>> >>>>>>>> I noticed $subject in [1]. Is there any reason for this? As per a >>>>>>>> comment it is waiting for Autoscaler deployer to be activated. Anyone has >>>>>>>> an idea what this is about? >>>>>>>> >>>>>>>> 15s delay at the server startup is a significant amount of delay. >>>>>>>> If this is actually needed we need to fix this properly. >>>>>>>> >>>>>>>> [1] >>>>>>>> https://github.com/apache/stratos/blob/stratos-4.1.x/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/event/receiver/health/AutoscalerHealthStatEventReceiver.java#L55 >>>>>>>> >>>>>>>> >>>>>>>> Thanks. >>>>>>>> >>>>>>>> -- >>>>>>>> Akila Ravihansa Perera >>>>>>>> WSO2 Inc.; http://wso2.com/ >>>>>>>> >>>>>>>> Blog: http://ravihansa3000.blogspot.com >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Akila Ravihansa Perera >>>>>>> WSO2 Inc.; http://wso2.com/ >>>>>>> >>>>>>> Blog: http://ravihansa3000.blogspot.com >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Thanks and Regards, >>>>>> >>>>>> Isuru H. >>>>>> +94 716 358 048* * >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Akila Ravihansa Perera >>>>> WSO2 Inc.; http://wso2.com/ >>>>> >>>>> Blog: http://ravihansa3000.blogspot.com >>>>> >>>> >>>> >>>> >>>> -- >>>> Rajkumar Rajaratnam >>>> Committer & PMC Member, Apache Stratos >>>> Software Engineer, WSO2 >>>> >>>> Mobile : +94777568639 >>>> Blog : rajkumarr.com >>>> >>> >>> >>> >>> -- >>> Reka Thirunavukkarasu >>> Senior Software Engineer, >>> WSO2, Inc.:http://wso2.com, >>> Mobile: +94776442007 >>> >>> >>> >> >> >> -- >> Rajkumar Rajaratnam >> Committer & PMC Member, Apache Stratos >> Software Engineer, WSO2 >> >> Mobile : +94777568639 >> Blog : rajkumarr.com >> > > > > -- > Reka Thirunavukkarasu > Senior Software Engineer, > WSO2, Inc.:http://wso2.com, > Mobile: +94776442007 > > > -- Rajkumar Rajaratnam Committer & PMC Member, Apache Stratos Software Engineer, WSO2 Mobile : +94777568639 Blog : rajkumarr.com --001a114e4f483de29c052477a582 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I have removed this unnecessary thread sleep in = commit 26f0c4e0a80b773733aff2b37f5458. I have tested with mock and k8s and = found no issues.

Thanks,
Raj.

On F= ri, Nov 13, 2015 at 11:12 AM, Reka Thirunavukkarasu <<= a href=3D"mailto:reka@wso2.com" target=3D"_blank">reka@wso2.com> wrote:
+1.= fine then..:)

Thanks,
Reka

On Fri, Nov 13, 2015 at 11:09 AM, Rajkumar Rajaratnam <rajkumarr@w= so2.com> wrote:
Hi Reka,

Yes, that's what we = are going to do. We are going to start event receiver threads after syncing= the registry with in-memory model.

Thanks,
Raj.

On Fri, Nov 13, 2015 at 11:06 AM, Reka Thirunavukk= arasu <reka@wso2.com> wrote:
<= div dir=3D"ltr">
In that case, can't we simply start these Rec= eiver threads=20 atlast after done with all the registry loading the component=20 activation?


Thanks,
Reka

On Fri, Nov 13= , 2015 at 11:05 AM, Rajkumar Rajaratnam <rajkumarr@wso2.com> wrote:
Akila= , sure - will fix it.
=
On Fri, Nov 13, 2015 at 11:02 AM, Akila Ravi= hansa Perera <ravihansa@wso2.com> wrote:
Thanks for the clarification Isuru!
@Raj: will you be able to fix this as part of the fix that you= are doing to AS related to topology receiver?

Tha= nks.

On Fri, Nov 13, 2015 at 10:58 AM, Isuru Haththotuwa <isuruh@apach= e.org> wrote:
This can be similar to the issue Raj has explained in thread [1]. The H= ealthStat receiver is started before the information is loaded from the reg= istry. We should start the HealthStat and Topology threads after loading th= e information from the registry. That might be the reason why we are waitin= g 15s till all information is loaded to the memory.


[1]. [Strato= s 4.1.5] [Blocker] Monitors are not created on Stratos restart

On Fri, Nov 13= , 2015 at 10:47 AM, Akila Ravihansa Perera <ravihansa@wso2.com> wrote:
Any thoughts= please?

On Wed, Nov 11, 2015 at 11:26 PM, Akila Ravihansa Perera <raviha= nsa@wso2.com> wrote:
Hi devs,

I noticed $subject in [1]. Is there = any reason for this? As per a comment it is waiting for Autoscaler deployer= to be activated. Anyone has an idea what this is about?=C2=A0
15s delay at the server startup is a significant amount of del= ay. If this is actually needed we need to fix this properly.

=



--
Akila Ravihansa Perera
WSO2 Inc.;=C2=A0=C2= =A0http://wso2.com/

Blog:= http://rav= ihansa3000.blogspot.com



= --
Thanks and Regard= s,

Isuru H.



--
Akila Ravihansa Perera
WSO2 Inc.;=C2=A0=C2= =A0http://wso2.com/

Blog:= http://rav= ihansa3000.blogspot.com



= --
=
Rajkumar Rajaratnam
Committer &= amp; PMC Member, Apache Stratos
Software Enginee= r, WSO2

Mobile : +94777568639
<= /div>



--
Reka Thirunavukkarasu
Sen= ior Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007





--
<= div>
Rajkumar Rajaratnam
=
Committer & PMC Member, Apache Stratos
Software Engineer, WSO2

= Blog : rajkumarr.com



--
Reka Thirunavukkarasu
Senior Software Engineer,
WSO2,= Inc.:http://wso2.com,
Mobile: +94776442007





--
=
Rajkumar Rajaratnam
Committer & PMC Memb= er, Apache Stratos
Software Engineer, WSO2
Mobile : +94777568639
= Blog : rajkumarr.com=
=
--001a114e4f483de29c052477a582--