Re: "Could not publish health statistic: requests in flight" when enabling DEBUG logs for common package

2015-11-13 Thread Rajkumar Rajaratnam
This is fixed in ec1fe233e68012e6941202ab335a39997f11ac23 On Fri, Nov 13, 2015 at 6:40 PM, Rajkumar Rajaratnam wrote: > Hi Devs, > > The following error happens when enabling DEBUG logs for common package. > > [2015-11-13 18:32:02,488] ERROR > {org.apache.stratos.mock.iaas.statistics.publisher.M

Re: AutoscalerHealthStatEventReceiver is sleeping for 15s at startup?

2015-11-13 Thread Rajkumar Rajaratnam
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, Ra

Jenkins build became unstable: Stratos-41x-Nightly-Build #49

2015-11-13 Thread Apache Jenkins Server
See

Jenkins build became unstable: Stratos-41x-Nightly-Build » Apache Stratos - Integration Tests #49

2015-11-13 Thread Apache Jenkins Server
See

[jira] [Resolved] (STRATOS-1614) Issues with cartridge-config.properties file

2015-11-13 Thread Rajkumar Rajaratnam (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-1614?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rajkumar Rajaratnam resolved STRATOS-1614. -- Resolution: Fixed > Issues with cartridge-config.properties file > ---

Re: [Stratos 4.1.5] [Blocker] Monitors are not created on Stratos restart

2015-11-13 Thread Rajkumar Rajaratnam
Fixed in 5c63e93026c580b373dbb513c1ae1c On Fri, Nov 13, 2015 at 10:53 AM, Isuru Haththotuwa wrote: > > > On Fri, Nov 13, 2015 at 10:46 AM, Akila Ravihansa Perera < > raviha...@wso2.com> wrote: > >> Nice catch Raj! >> >> I think better to wait until contexts/policies are loaded from registry >> b

[jira] [Resolved] (STRATOS-1615) Monitors are not created on Stratos restart

2015-11-13 Thread Rajkumar Rajaratnam (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-1615?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rajkumar Rajaratnam resolved STRATOS-1615. -- Resolution: Fixed > Monitors are not created on Stratos restart >

Re: [Stratos 4.1.5] [Blocker] Issues with cartridge-config.properties file

2015-11-13 Thread Rajkumar Rajaratnam
Fixed in 5c63e93026c580b373dbb513c1ae1c On Fri, Nov 13, 2015 at 5:30 PM, Rajkumar Rajaratnam wrote: > Had an offline discussion with Akila, Sajith & Gayan. > > It is not a good idea to introduce new configuration files in a minor > release. > > So we are going to read the same cartridge-config.p

[jira] [Commented] (STRATOS-1615) Monitors are not created on Stratos restart

2015-11-13 Thread Rajkumar Rajaratnam (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-1615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15004014#comment-15004014 ] Rajkumar Rajaratnam commented on STRATOS-1615: -- Fixed in 5c63e93026c580b373

[jira] [Commented] (STRATOS-1614) Issues with cartridge-config.properties file

2015-11-13 Thread Rajkumar Rajaratnam (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-1614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15004012#comment-15004012 ] Rajkumar Rajaratnam commented on STRATOS-1614: -- Fixed in 5c63e93026c580b373

"Could not publish health statistic: requests in flight" when enabling DEBUG logs for common package

2015-11-13 Thread Rajkumar Rajaratnam
Hi Devs, The following error happens when enabling DEBUG logs for common package. [2015-11-13 18:32:02,488] ERROR {org.apache.stratos.mock.iaas.statistics.publisher.MockHealthStatisticsNotifier} - Could not publish health statistic: requests in flight java.util.IllegalFormatConversionException:

Re: [Stratos 4.1.5] [Blocker] Issues with cartridge-config.properties file

2015-11-13 Thread Rajkumar Rajaratnam
Had an offline discussion with Akila, Sajith & Gayan. It is not a good idea to introduce new configuration files in a minor release. So we are going to read the same cartridge-config.properties fie from AS. For that, we are moving CartridgeConfigFileReader class from SM to Common package and call

Re: [Stratos 4.1.5] [Blocker] Issues with cartridge-config.properties file

2015-11-13 Thread Rajkumar Rajaratnam
On Fri, Nov 13, 2015 at 4:54 PM, Sajith Kariyawasam wrote: > From which component do we read puppet.* values? > ​AS. ​ > > On Fri, Nov 13, 2015 at 4:19 PM, Rajkumar Rajaratnam > wrote: > >> Akila, +1. >> >> @All, What do you think about the following structure for >> stratos-manager.xml? It i

Re: [Stratos 4.1.5] [Blocker] Issues with cartridge-config.properties file

2015-11-13 Thread Sajith Kariyawasam
>From which component do we read puppet.* values? On Fri, Nov 13, 2015 at 4:19 PM, Rajkumar Rajaratnam wrote: > Akila, +1. > > @All, What do you think about the following structure for > stratos-manager.xml? It is similar to autoscaler.xml. > > > > > localhost >

Re: Updates done to CC configuration does not get reflected in spinning new instances

2015-11-13 Thread Isuru Haththotuwa
Hi Akila, On Fri, Nov 13, 2015 at 4:04 PM, Akila Ravihansa Perera wrote: > Hi Isuru, > > Yes, this has been a troublesome experience for users when updating CC > configs. I've few concerns; > > - What if cartridge definition is updated after caching the built > IaaSProvider object? > - Is the

Re: [Stratos 4.1.5] [Blocker] Issues with cartridge-config.properties file

2015-11-13 Thread Rajkumar Rajaratnam
Akila, +1. @All, What do you think about the following structure for stratos-manager.xml? It is similar to autoscaler.xml. localhost 9443 services/CloudControllerService 30 localhost

Re: Updates done to CC configuration does not get reflected in spinning new instances

2015-11-13 Thread Akila Ravihansa Perera
Hi Isuru, Yes, this has been a troublesome experience for users when updating CC configs. I've few concerns; - What if cartridge definition is updated after caching the built IaaSProvider object? - Is the cache is getting invalidated if cartridge definition is updated? - Is the whole cache re-

Re: Where is stratos-config.xml?

2015-11-13 Thread Akila Ravihansa Perera
On Fri, Nov 13, 2015 at 3:54 PM, Rajkumar Rajaratnam wrote: > > What if we make them configurable via autoscaler.xml, stratos-manager.xml > and cloud-controller.xml respectively? Better to avoid creating new config > files. wdyt? > +1 Created a JIRA [1] to track this. [1] https://issues.apache.

[jira] [Created] (STRATOS-1616) Make CC,AS,SM components' thread pool sizes configurable

2015-11-13 Thread Akila (JIRA)
Akila created STRATOS-1616: -- Summary: Make CC,AS,SM components' thread pool sizes configurable Key: STRATOS-1616 URL: https://issues.apache.org/jira/browse/STRATOS-1616 Project: Stratos Issue Type:

Re: Where is stratos-config.xml?

2015-11-13 Thread Rajkumar Rajaratnam
Hi Akila, We need to make other component's thread pool sizes also configurable. It is hard coded to 10 in CC and 20 in SM. What if we make them configurable via autoscaler.xml, stratos-manager.xml and cloud-controller.xml respectively? Better to avoid creating new config files. wdyt? Thanks, Ra

Re: [Stratos 4.1.5] [Blocker] Issues with cartridge-config.properties file

2015-11-13 Thread Akila Ravihansa Perera
Hi, I'd prefer not to use System variables to pass service URLs. Any component which needs those can read from the file right? Thanks. On Fri, Nov 13, 2015 at 3:15 PM, Rajkumar Rajaratnam wrote: > Hi All, > > Thanks for your thoughts. > > Will do the following. > > 1) Lets remove service URLs

Re: Where is stratos-config.xml?

2015-11-13 Thread Akila Ravihansa Perera
Hi, I'll work on this. I couldn't see any code changes required for this. Only adding this config file and documenting it ryt? Thanks. On Fri, Nov 13, 2015 at 3:17 PM, Rajkumar Rajaratnam wrote: > Thanks Gayan. > > Can someone own this task? I am currently working on STRATOS-1614 & > STRATOS-1

Re: Where is stratos-config.xml?

2015-11-13 Thread Rajkumar Rajaratnam
Thanks Gayan. Can someone own this task? I am currently working on STRATOS-1614 & STRATOS-1615. Thanks, Raj. On Fri, Nov 13, 2015 at 2:18 PM, Gayan Gunarathne wrote: > Hi Raj, > > Ideally we need to read from the thread pool information from the > configuration. Then we can have a control over

Re: [Stratos 4.1.5] [Blocker] Issues with cartridge-config.properties file

2015-11-13 Thread Rajkumar Rajaratnam
Hi All, Thanks for your thoughts. Will do the following. 1) Lets remove service URLs (AS, SM, CC & DAS) from cartridge-config.properties file 2) Lets included these service URLs in stratos-manager.xml (new) and autoscaler.xml. CC doesn't need these URLs. 3) Configuration file (stratos-manager.xm

Re: [Stratos 4.1.5] [Blocker] Issues with cartridge-config.properties file

2015-11-13 Thread Sajith Kariyawasam
What if we keep stratos-manger.xml, cloud-controller.xml (already have) and autoscaler.xml (already have) file and move only the relevant configs to each of those files? For eg, the values need to be read by SM should only be in stratos-manager.xml. I think cartridge-config.properties file was mean

Re: Where is stratos-config.xml?

2015-11-13 Thread Gayan Gunarathne
Hi Raj, Ideally we need to read from the thread pool information from the configuration. Then we can have a control over the threads size that each component is using. But current code base , seems it is getting from the default value. I think we need to include the this thread information in con

Updates done to CC configuration does not get reflected in spinning new instances

2015-11-13 Thread Isuru Haththotuwa
Hi Devs, $subject. This is happening because after initial information model is built (IaasProvider object), it does not get re-built to detect any changes. The mail thread [1] also describes a similar issue, where if we do not specify image id in cloud-controller.xml, the instance not spawning i

Where is stratos-config.xml?

2015-11-13 Thread Rajkumar Rajaratnam
Hi Devs, By looking at the code [1], this file supposed to be having thread pools information. But where is stratos-config.xml file? :) Since this file is not there, it also implies that we can't configure thread pool sizes. Any thoughts? [1] https://github.com/apache/stratos/blob/stratos-4.1.x

Re: [Stratos 4.1.5] [Blocker] Issues with cartridge-config.properties file

2015-11-13 Thread Thanuja Uruththirakodeeswaran
On Fri, Nov 13, 2015 at 12:53 PM, Gayan Gunarathne wrote: > Hi, > > On Fri, Nov 13, 2015 at 12:42 PM, Rajkumar Rajaratnam > wrote: > >> Hi Devs, >> >> This file content is as below. >> >> >> >> >> >> >> >> >> >> *autoscaler.service.url=https://localhost:9443/services/AutoscalerService/ >>

Re: [Stratos 4.1.5] [Blocker] Issues with cartridge-config.properties file

2015-11-13 Thread Isuru Haththotuwa
Additionally, IMO we can rename this configuration file to have a generic name (stratos.xml/stratos.properties). wdyt? On Fri, Nov 13, 2015 at 12:53 PM, Gayan Gunarathne wrote: > Hi, > > On Fri, Nov 13, 2015 at 12:42 PM, Rajkumar Rajaratnam > wrote: > >> Hi Devs, >> >> This file content is as b

[jira] [Created] (STRATOS-1615) Monitors are not created on Stratos restart

2015-11-13 Thread Rajkumar Rajaratnam (JIRA)
Rajkumar Rajaratnam created STRATOS-1615: Summary: Monitors are not created on Stratos restart Key: STRATOS-1615 URL: https://issues.apache.org/jira/browse/STRATOS-1615 Project: Stratos

[jira] [Created] (STRATOS-1614) Issues with cartridge-config.properties file

2015-11-13 Thread Rajkumar Rajaratnam (JIRA)
Rajkumar Rajaratnam created STRATOS-1614: Summary: Issues with cartridge-config.properties file Key: STRATOS-1614 URL: https://issues.apache.org/jira/browse/STRATOS-1614 Project: Stratos