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 052A4CF9B for ; Sun, 14 Dec 2014 04:38:35 +0000 (UTC) Received: (qmail 58572 invoked by uid 500); 14 Dec 2014 04:38:34 -0000 Delivered-To: apmail-stratos-dev-archive@stratos.apache.org Received: (qmail 58521 invoked by uid 500); 14 Dec 2014 04:38:34 -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 58509 invoked by uid 99); 14 Dec 2014 04:38:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Dec 2014 04:38:33 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of reka@wso2.com designates 209.85.216.48 as permitted sender) Received: from [209.85.216.48] (HELO mail-qa0-f48.google.com) (209.85.216.48) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Dec 2014 04:38:29 +0000 Received: by mail-qa0-f48.google.com with SMTP id v10so6895373qac.35 for ; Sat, 13 Dec 2014 20:38:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wso2.com; s=google; h=mime-version:from:date:message-id:subject:to:cc:content-type; bh=ze0XyQ7yEZBHvM6I1Tjx9ODabRLJd+tWbZyVfQk0l08=; b=IXz+2w/P5kjGgiUWJ5BFWOUi5xdhUmTeip1NL+FP/KKaS7Ix/Kvgn/jgk1thruRm3L W3OoXys9EX/9EPCVzWPBHG4V4hAMjB22CTddYCZ/+39gZ75RaB2BZirnfB9RSwSjyPsA zrpww+kr+mkbOYsKdiT+FQOQmlmBbzVV7oSMs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc :content-type; bh=ze0XyQ7yEZBHvM6I1Tjx9ODabRLJd+tWbZyVfQk0l08=; b=lZcFqlGUKXKmjN1KjM0aA+IUWk1KUhJNtA+IarNF1Xh3Wya2oK+hAR/GrW3tQu2IlN WuzPWejMMMOT+z88jV3+cca+AcPi5nfitx8ZMYNKtwA6lL6Q0VXhMfhWyyGwNozrXIKP ue6c1HpMqjUVivl7tiHgN7L9f5zWdE4RL9inGiBdQSTRJmrX1rQODJNRqq0xUC/rq7/x P6kt3SNIHD5r9FEDFQvjjDbDqBQAfOSvoQirTDhASh9Wt/Ugn3fWnEh9AO65fxfNTjSK nxPuFpz0tzDqqsnnfFTe9XAZZzU3BpOTEvqgkY8Sc0jJurDNGH8cvoPKVpZEhLWaKH3g 2KvQ== X-Gm-Message-State: ALoCoQlxrIXRjOOUjmePMahT79XhPKAwfDYCZK5NgSEHerDkCW+cWKvGalOug23sRu3twgJ3i4nG X-Received: by 10.140.43.195 with SMTP id e61mr29618238qga.13.1418531887842; Sat, 13 Dec 2014 20:38:07 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.179.7 with HTTP; Sat, 13 Dec 2014 20:37:47 -0800 (PST) From: Reka Thirunavukkarasu Date: Sun, 14 Dec 2014 10:07:47 +0530 Message-ID: Subject: Executing cluster monitor periodically as well as on demand To: dev Cc: Lakmal Warusawithana , Nirmal Fernando , Lahiru Sandaruwan , Imesh Gunaratne Content-Type: multipart/alternative; boundary=001a113a74ea471f9f050a25b18b X-Virus-Checked: Checked by ClamAV on apache.org --001a113a74ea471f9f050a25b18b Content-Type: text/plain; charset=UTF-8 Hi All, As we now support adding cluster instances dynamically, we will have to wait for next one minute to get the members started in that particular cluster instance which will delay other dependencies startup when it comes to scaling or terminate and start again. Also, after adding the members in obsolete member list when terminating a cluster, we will again have to wait for one minute to get the members terminated. This will delay the action based on the termination specially when it comes to terminate-dependent or terminate-all scenarios. Can we do $subject by introducing locking support for the cluster monitor? So that whenever needed, we can directly execute the cluster monitor by taking lock to take decision only for min check and obsolete check. Let Cluster monitor periodically execute to take decision like min check, obsolete check and scaling. Because, AFAIK for scaling we will have to wait minimum one minute to get all the latest stats. Thanks, Reka -- Reka Thirunavukkarasu Senior Software Engineer, WSO2, Inc.:http://wso2.com, Mobile: +94776442007 --001a113a74ea471f9f050a25b18b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi All,

As we now support adding cluste= r instances dynamically, we will have to wait for next one minute to get th= e members started in that particular cluster instance which will delay othe= r dependencies startup when it comes to scaling or terminate and start agai= n. Also, after adding the members in obsolete member list when terminating = a cluster, we will again have to wait for one minute to get the members ter= minated. This will delay the action based on the termination specially when= it comes to terminate-dependent or terminate-all scenarios.

=
Can we do $subject by introducing locking support for the cluste= r monitor? So that whenever needed, we can directly execute the cluster mon= itor by taking lock to take decision only for min check and obsolete check.= Let Cluster monitor periodically execute to take decision like min check, = obsolete check and scaling. Because, AFAIK for scaling we will have to wait= minimum one minute to get all the latest stats.

T= hanks,
Reka

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


--001a113a74ea471f9f050a25b18b--