Re: [Dev] Update - Provide runtime environment for jaggery apps in AS6

2016-07-15 Thread Kalpa Welivitigoda
Hi Maheshika,

It seems the job is not yet set up, would you please do the needful?


On Thu, Jul 7, 2016 at 11:11 AM, Kishanthan Thangarajah  wrote:

> Hi Maheshika,
>
> Can we add a jenkins build job for this branch?
>
> On Thu, Jun 30, 2016 at 7:17 AM, Nisala Nanayakkara 
> wrote:
>
>> Hi all,
>>
>> Please find the branch here.
>>
>> [1] - https://github.com/wso2/jaggery/tree/tomcat-8.0.x-jaggery
>>
>> Thanks,
>> Nisala
>>
>> On Thu, Jun 30, 2016 at 7:12 AM, Nisala Nanayakkara 
>> wrote:
>>
>>> Hi all,
>>>
>>> We have created a seperate branch[1] with the changes required for
>>> providing runtime environment for jaggery apps in AS6. Currently there is
>>> no jenkins builder setup for this, Please get the 1.0.0-SNAPSHOT version by
>>> building the branch in local repo. Please inform me if there are any issues.
>>>
>>> Thanks,
>>> Nisala
>>>
>>> --
>>> *Nisala Niroshana Nanayakkara,*
>>> Software Engineer
>>> Mobile:(+94)717600022
>>> WSO2 Inc., http://wso2.com/
>>>
>>
>>
>>
>> --
>> *Nisala Niroshana Nanayakkara,*
>> Software Engineer
>> Mobile:(+94)717600022
>> WSO2 Inc., http://wso2.com/
>>
>
>
>
> --
> *Kishanthan Thangarajah*
> Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com *
> Twitter - *http://twitter.com/kishanthan *
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Best Regards,

Kalpa Welivitigoda
Senior Software Engineer, WSO2 Inc. http://wso2.com
Email: kal...@wso2.com
Mobile: +94776509215

[image: http://wso2.com/signature] 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [VOTE] WSO2 App Manager 1.2.0 RC1

2016-07-15 Thread Thilini Shanika
Hi Devs,

This is the 1st Release Candidate of the WSO2 App Manager 1.2.0

Please download, test the product and vote. Vote will be open for 72 hours
or as needed.
Refer to github readme for guides.

The distribution is available to download at [1]

[1] :
https://github.com/wso2/product-app-manager/releases/download/v1.2.0-RC1/wso2appm-1.2.0.zip

Fixed Issue in [2], known issues [3], tag to be vote upon [4]

[2] : https://wso2.org/jira/issues/?filter=13104
[3] : https://wso2.org/jira/browse/WSFRUBY-72?filter=13140
[4] : https://github.com/wso2/carbon-appmgt/tree/v1.2.0-RC1

Please vote as follows.
[+] Stable - go ahead and release
[-]  Broken - do not release (please explain why)

Thanks,
App Manager Team

-- 
Thilini Shanika
Senior Software Engineer
WSO2, Inc.; http://wso2.com
20, Palmgrove Avenue, Colombo 3

E-mail: tgtshan...@gmail.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [VOTE] Release WSO2 API Manager 2.0.0 RC1

2016-07-15 Thread Abimaran Kugathasan
Hi Devs,

*WSO2 API Manager 2.0.0-RC1 Released*

This is the 1st Release Candidate of the WSO2 API Manager 2.0.0

Please download, test the product and vote. Vote will be open for 72 hours
or as needed.
Refer to github readme for guides.

The distribution is available to download at [1]

[1] : https://github.com/wso2/product-apim/releases/tag/v2.0.0-rc1

*WSO2 **API Manager Analytics 2.0.0 RC1** Released*

Please download, test the product and vote. Vote will be open for 72 hours
or as needed.
Refer to github readme for guides.

The distribution is available to download  [2]

Fixed Issue in [3], known issues [4]

[2] :
https://github.com/wso2/analytics-apim/releases/download/v2.0.0-rc1/wso2am-analytics-2.0.0.zip
[3] : https://wso2.org/jira/issues/?filter=13138
[4] : https://wso2.org/jira/issues/?filter=13139





-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer

Email : abima...@wso2.com
Mobile : +94 773922820


  
  
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 ESB 5.0.0-BETA2 Released!

2016-07-15 Thread Jagath Sisirakumara Ariyarathne
*WSO2 ESB 5.0.0-BETA2 Released*

ESB Team is pleased to announce the WSO2 ESB 5.0.0 - BETA2 release.

The distribution is available to download at [1]. It contains improvements
and bug fixes [2].

[1] - https://github.com/wso2/product-esb/releases/tag/v5.0.0-BETA2
[2] -
https://wso2.org/jira/secure/ReleaseNote.jspa?projectId=10023=12362


*WSO2 **ESB Tooling 5.0.0**-BETA2 Released*

The distribution is available to download at [3]. It contains improvements
and bug fixes [4].

[3] -
https://github.com/wso2/devstudio-tooling-esb/releases/tag/v5.0.0-BETA2
[4] -
https://wso2.org/jira/secure/ReleaseNote.jspa?projectId=11003=12389


*WSO2 **ESB Analytics 5.0.0**-BETA2 Released*

The distribution is available to download at [5]. It contains improvements
and bug fixes [6].

[5] - https://github.com/wso2/analytics-esb/releases/tag/v5.0.0-beta2
[6] -
https://wso2.org/jira/secure/ReleaseNote.jspa?projectId=11002=12390


- WSO2 ESB Team -
-- 
Jagath Ariyarathne
Technical Lead
WSO2 Inc.  http://wso2.com/
Email: jaga...@wso2.com
Mob  : +94 77 386 7048
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Add a default theme for gadgets in DS/DAS

2016-07-15 Thread Chamila De Alwis
On Fri, Jul 15, 2016 at 9:25 AM, Sachith Withana  wrote:

> We do write a lot of custom gadgets in analytics. Is there a way to
> incorporate the solution above to those as well? So that devs writing
> custom gadgets don't have to worry about their theme not syncing with other
> gadgets (generated/precooked).
>

+1

If styling hasn't been drifted too far in the custom gadgets, this should
be the case IMO.


Regards,
Chamila de Alwis
Committer and PMC Member - Apache Stratos
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Clarification regarding the validating input using IdentityValidationUtil class

2016-07-15 Thread Farasath Ahamed
Hi,

I am trying to validate input using the  IdentityValidationUtil[1] class.
>From my current understanding in order to validate an input using the util
class for a regex, we need to first register it as a pattern in
IdentityValidationConfig and then use the registered key as below,

String regex = "^[A-Za-z0-9]+$";
String input = "thisismainput";


// add pattern to IdentityValidationConfig
IdentityValidationUtil.addPattern("my-regex", regex);
String validInput =
IdentityValidationUtil.getValidInputOverWhiteListPatterns(input,
"my-regex");


When many of the components start using the util class there is a
possibility of the same key being registered for two different regexes
resulting in an exception thrown according to [2]. Wouldn't it be better if
we allow the users to directly provide the regex for validation instead of
having to register it with a key and use for validation.

So if  you want to use one of the pre-defined regexes you can use the
relevant key (something like ALPHABETIC_ONLY) defined in class[1]. Or If
you want to use his own regex you can simply provide it as a whitelist
pattern.

In the code, we can first check if the provided value is a predefined key,
if so fetch the regex and validate. If the key is not found then we have
given the regex directly, so we can use it directly to validate. This
approach is used it the JavaScript util class we have written[3].

WDYT?


[1]
https://github.com/wso2/carbon-identity-framework/blob/master/components/identity-core/org.wso2.carbon.identity.base/src/main/java/org/wso2/carbon/identity/base/IdentityValidationUtil.java
[2]
https://github.com/wso2/carbon-identity-framework/blob/master/components/identity-core/org.wso2.carbon.identity.base/src/main/java/org/wso2/carbon/identity/base/IdentityValidatorConfig.java#L58
[3]
https://github.com/wso2/carbon-identity-framework/blob/master/components/identity-core/org.wso2.carbon.identity.core.ui/src/main/resources/web/identity/validation/js/identity-validate.js

Farasath Ahamed
Software Engineer, WSO2 Inc.; http://wso2.com
Mobile: +94777603866
Blog: blog.farazath.com
Twitter: @farazath619 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Add a default theme for gadgets in DS/DAS

2016-07-15 Thread Sachith Withana
Hi Jerad,

   And also this should apply to the gadgets that are generated by the
Gadget Create Wizard. Then generated gadgets will have a default theme and
gadget generator(user) does not has to worry about the styling of it,

We do write a lot of custom gadgets in analytics. Is there a way to
incorporate the solution above to those as well? So that devs writing
custom gadgets don't have to worry about their theme not syncing with other
gadgets (generated/precooked).

Regards,
Sachith

On Fri, Jul 15, 2016 at 12:44 AM, Jerad Rutnam  wrote:

> Hi Sinthuja,
>
>
> Just summarizing the offline discussion we had yesterday,
>
> So the basic idea is that, since we ship a default theme with the
> Dashboard Server. We should also add a default theme for precooked gadgets,
> that we ship with the Dashboard Server.
>
> And also this should apply to the gadgets that are generated by the Gadget
> Create Wizard. Then generated gadgets will have a default theme and gadget
> generator(user) does not has to worry about the styling of it, unless
> he/she wants a fully customized UI. We can have a configuration to disable
> this theme if anyone wants.
>
> If the default theme is enabled on gadgets, it should apply the default
> stylesheet for the gadgets along with the chart template core styles.
>
> Also there should be a gadget extension stylesheet available for the theme
> developers. So he/she can overwrite the default gadget styling + theme
> styling (e.g. "gadget.css", just like we have for dashboard and portal).
>
>
> Let me know the thought.
>
>
> Cheers!
> --
> *Jerad Rutnam*
> *Software Engineer*
>
> WSO2 Inc.
> lean | enterprise | middleware
> M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
>



-- 
Sachith Withana
Software Engineer; WSO2 Inc.; http://wso2.com
E-mail: sachith AT wso2.com
M: +94715518127
Linked-In: https://lk.linkedin.com/in/sachithwithana
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS-Analytics] Tenant domain of a login event using SaaS applicatioin.

2016-07-15 Thread Johann Nallathamby
I also think it is good to publish to two tenants. However we need to
validate if there are any security concerns.

E.g. let's say user John belonging to foo.com logs into travelocity.com
registered in bar.com. Tenant admin of foo.com should see it as a login
attempt in his dashboard, by one of his users for an application outside
his domain, and tenant admin of bar.com also should see it in his
dashboard, as a login attempt from a user outside his domain to one of his
apps.

On Fri, Jul 15, 2016 at 5:47 PM, Darshana Gunawardana 
wrote:

>
>
> On Fri, Jul 15, 2016 at 3:47 PM, Hasintha Indrajee 
> wrote:
>
>> Hi All,
>>
>> For SaaS application what is the tenant domain related to a login event ?
>> Is that the tenant domain which the SP is registered or is that the logged
>> in user's tenant domain ?.
>>
>> If we consider sending out tenant domain as just a record, it's fine to
>> add either (reasonable). But the problem is we need a specific tenant
>> domain to publish this event. According to the current way of event
>> publishing to the DAS, we need to start a tenant flow before publishing. In
>> this case we need a specific tenant domain to publish this event. Or else
>> do we need to publish this event to both tenant domains (starting two
>> tenant flows) in a case of SaaS app ?.
>>
>
> +1
>
>>
>>
>>
>> --
>> Hasintha Indrajee
>> WSO2, Inc.
>> Mobile:+94 771892453
>>
>>
>
>
> --
> Regards,
>
>
> *Darshana Gunawardana*Associate Technical Lead
> WSO2 Inc.; http://wso2.com
>
> *E-mail: darsh...@wso2.com *
> *Mobile: +94718566859 <%2B94718566859>*Lean . Enterprise . Middleware
>



-- 
Thanks & Regards,

*Johann Dilantha Nallathamby*
Technical Lead & Product Lead of WSO2 Identity Server
Governance Technologies Team
WSO2, Inc.
lean.enterprise.middleware

Mobile - *+9476950*
Blog - *http://nallaa.wordpress.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Controlling access to jaggery pages by permissions

2016-07-15 Thread Thanuja Jayasinghe
On Fri, Jul 15, 2016 at 3:56 PM, Rajkumar Rajaratnam 
wrote:

> Hi,
>
> I have a jaggery app with some pages and secured them via SAML SSO with
> WSO2 IS. So the authentication is implemented, now I have to implement the
> authorization. I need to control access to these jaggery pages by
> roles/permissions of the loggedin user. Here is the approach I have
> followed and I need to validate whether it is okay or there are better
> ways.
>
>1. Created custom permissions under my application service provider
>(one permission per one feature in my jaggery app)
>2. When a user access a feature in the jaggery app, I am calling "
>*isUserAuthorized*" method of "*RemoteAuthorizationManagerService*"
>admin service to check whether the logged in user is authorized to access
>the page. I think "isUserAuthorized" method checks whether the given user
>has any roles with the given permission. So, if it returns true, then I
>allow the user to access the page.
>3. I am calling the admin service with basic authentication. Is there
>any issues with this approach? Do I need to obtain a session cookie and
>call the admin service using session cookie instead of username/password?
>What is the recommended approach?
>
> Any issues with this approach?
>
Since "isUserAuthorized" method of "RemoteAuthorizationManagerService"
requires "/permission/admin/configure/security" permission, a user without
this permission will not able to access this service using his session
cookie. So your current approach is correct.

> Thanks,
> Raj.
>
> --
> Rajkumar Rajaratnam
> Committer & PMC Member, Apache Stratos
> Senior Software Engineer, WSO2
>
> Mobile : +94777568639
>

Thanks,

-- 
*Thanuja Lakmal*
Senior Software Engineer
WSO2 Inc. http://wso2.com/
*lean.enterprise.middleware*
Mobile: +94715979891 +94758009992
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 MSF4J 2.0.0 RC3

2016-07-15 Thread Lakmal Warusawithana
+1.

I have build from v2.0.0-rc3 and tested petstore sample (with analytics)
and found no issues.

thanks

On Fri, Jul 15, 2016 at 6:53 PM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi Devs,
>
> This is the 3rd Release Candidate of the WSO2 MSF4J (Microservices
> Framework for Java) 2.0.0.
>
> Please download, test the framework and vote. Vote will be open for 72
> hours or as needed.
> Refer to github readme for guides.
>
> *​Source and binary distribution files:*
> *https://github.com/wso2/msf4j/releases/tag/v2.0.0-rc3
> *
>
> *Maven staging repository:*
> *https://maven.wso2.org/nexus/content/repositories/orgwso2msf4j-1004
> *
>
> *The tag to be voted upon:*
> *https://github.com/wso2/msf4j/tree/v2.0.0-rc3
> *
>
>
>
> [ ] Broken - Do not release (explain why)
> [ ] Stable  - Go ahead and release
>
> Thank you,
> WSO2 MSF4J Team
>
>
> --
> Thusitha Dayaratne
> Software Engineer
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> Mobile  +94712756809
> Blog  alokayasoya.blogspot.com
> Abouthttp://about.me/thusithathilina
>
>
>


-- 
Lakmal Warusawithana
Director - Cloud Architecture; WSO2 Inc.
Mobile : +94714289692
Blog : http://lakmalsview.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [VOTE] Release WSO2 MSF4J 2.0.0 RC3

2016-07-15 Thread Thusitha Thilina Dayaratne
Hi Devs,

This is the 3rd Release Candidate of the WSO2 MSF4J (Microservices
Framework for Java) 2.0.0.

Please download, test the framework and vote. Vote will be open for 72
hours or as needed.
Refer to github readme for guides.

*​Source and binary distribution files:*
*https://github.com/wso2/msf4j/releases/tag/v2.0.0-rc3
*

*Maven staging repository:*
*https://maven.wso2.org/nexus/content/repositories/orgwso2msf4j-1004
*

*The tag to be voted upon:*
*https://github.com/wso2/msf4j/tree/v2.0.0-rc3
*



[ ] Broken - Do not release (explain why)
[ ] Stable  - Go ahead and release

Thank you,
WSO2 MSF4J Team


-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EMM] "Mobile Signal Strength" attribute is not viewable in the UI

2016-07-15 Thread Prabath Abeysekera
The piece of code that should have ideally persisted mobile signal strength
appears to have been commented out. No sign of it in the database schema
shipped with the pack either.

Folks, we need this fixed urgently.

Created a L1 at [1].

[1] https://wso2.org/jira/browse/EMM-1470

Cheers,
Prabath

On Thu, Jul 14, 2016 at 5:25 PM, Geeth Munasinghe  wrote:

> Hi Prabath,
>
> "Mobile Signal Strength" should go to the database if device is sending
> it according to [1] line 445 and 446.
>
> [1]
> https://github.com/wso2/carbon-device-mgt-plugins/blob/master/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/java/org/wso2/carbon/mdm/services/android/util/AndroidAPIUtils.java
>
>
> *G. K. S. Munasinghe*
> *Senior Software Engineer,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: ge...@wso2.com
> phone:(+94) 777911226
>
> On Thu, Jul 14, 2016 at 3:03 AM, Prabath Abeysekera 
> wrote:
>
>> Guys,
>>
>> Noticed $Subject while I was testing "device view" of an enrolled device.
>> When I dug deep into the code, figured out that the retrieval of the
>> "Mobile Signal Strength" attribute is commented out. No sign of it in the
>> underlying database schema as well.
>>
>> Can someone explain the reason why this was commented out?
>>
>> Cheers,
>> Prabath
>> --
>> Prabath Abeysekara
>> Technical Lead
>> WSO2 Inc.
>> Email: praba...@wso2.com
>> Mobile: +94774171471
>>
>
>


-- 
Prabath Abeysekara
Technical Lead
WSO2 Inc.
Email: praba...@wso2.com
Mobile: +94774171471
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES] Too many mysql connections when starting ES instances

2016-07-15 Thread Udara Liyanage
On Fri, Jul 15, 2016 at 5:39 AM, Thushara Ranawaka 
wrote:

> Hi Chanaka,
>
> On Fri, Jul 15, 2016 at 2:42 PM, Chanaka Fernando 
> wrote:
>
>> Hi Thushara,
>>
>> Increase the mysql active connections to 350. Please note that this is
>> bounded to server specs.
>> Now start 2 servers at a time. Wait 10 mins before starting the other 2
>> WSO2 servers.
>> Or else you can always start 1 server at a time every 10 mins. Therefore
>> it will take 30 mins to start all 4 nodes.
>>
>> Do you think we can tell something like this in front of a customer?
>> Normally customers want to start the servers within seconds and they want
>> to start an entire cluster within minutes (maximum). Please provide a
>> recommendation which makes sense in a real world. We need a proper way to
>> handle this.
>>
>
> This recommendation is for ES not for ESB and specially not for customers
> since we can automate this using config. ES uses governance features
> therefore ES need to have solr enabled. Therefore please disable[3] solr in
> all ESB nodes. Further more I understand they will start all the servers
> straightaway but for ES initial start(database with data) there is a heavy
> indexing process is happening in the background to have a smooth ride
> afterward. Since there is 4 nodes either user have to increase database
> connections from DB side or start servers one by one with a delay. We can
> automate this using indexingConfiguration[4] in registry.xml. This is just
> a one time thing, you can change it back to default values after the first
> startup.
>
> [4] - {Different values in each nodes with 10 mins
> different.}
> 3
> 
> 50
> 
> 10
>
> Thanks,
> Thushara.
>
>
In a different thought, this kind of work arounds will cause products  to
hard to be run in a cloud environment where
you can not guarantee product startup order since containers/vm come
and go due to various reasons
Manually changing configurations also not possible in a automated
deployment environment.
So it is better if we can have a solid solution.

>
>
On Fri, Jul 15, 2016 at 1:25 PM, Thushara Ranawaka 
>> wrote:
>>
>>> Hi Dilini,
>>>
>>>
>>> On Thu, Jul 14, 2016 at 2:31 PM, Dilini Gunatilake 
>>> wrote:
>>>
 Hi,

 @Thushara,
 Thanks for the info. Any recommended number of max_connections to
 configure considering indexing with a high load etc? Then we can add those
 details in the docs to avoid future issues.

>>>
>>> My personal recommendation,
>>> Increase the mysql active connections to 350. Please note that this is
>>> bounded to server specs.
>>> Now start 2 servers at a time. Wait 10 mins before starting the other 2
>>> WSO2 servers.
>>> Or else you can always start 1 server at a time every 10 mins. Therefore
>>> it will take 30 mins to start all 4 nodes.
>>>
>>> Thanks,
>>> Thushara.
>>>
>>>

 @Sumedha,
 I was able to start all the nodes because the number of connections
 reduces after some time.

 As Rajith mentioned, the concern is having that number of connections
 created just for a server startup having less than 25 assets.

 Thanks,
 Dilini


 On Thu, Jul 14, 2016 at 12:53 PM, Rajith Vitharana 
 wrote:

> Hi,
>
> On Thu, Jul 14, 2016 at 12:44 PM, Sumedha Rubasinghe  > wrote:
>
>> Guys,
>> Some food for thought.
>>
>> 1. A single MySQL Server has a globally defined max_connections
>> figure (151 as Dilini mentioned)
>>
>> So on a clustered setup, when you point to a single MySQL Server from
>> various WSO2 products, depending on no of keep alive connections 
>> specified,
>> you will at some point will hit too many connections from server side @
>> some point.
>>
> Yeah totally agree, but that much(395) is bit high AFAIU when just
> starting up a server(without any load in 4 servers, and when it stabilize,
> it only consumes less than 20 connections without load)
>
> @Thushara, Thanks for the info, will check what you have mentioned.
>
> Thanks,
>
>>
>> So you have to rethink the deployment and use a different database
>> server.
>>
>> 2. If ES has a tendency to perform too many database calls @ startup,
>> - You can temporally eliminate that by controlling node start up order
>>
>>
>> On Thu, Jul 14, 2016 at 12:04 PM, Rajith Vitharana 
>> wrote:
>>
>>> Hi,
>>>
>>> We faced the same issue in ESB latest when clustering enabled, with
>>> 4 node cluster, number of connections goes to around 395 and gradually
>>> comes down to 20 or less, even with the exception happened(mysql having
>>> default max connections 151), it seems it gets stable to 20 or less
>>> connections after some time. Created a public jira to 

Re: [Dev] [ES] Too many mysql connections when starting ES instances

2016-07-15 Thread Rajith Vitharana
Hi Thushara,



On Fri, Jul 15, 2016 at 6:03 PM, Thushara Ranawaka 
wrote:

> Hi Rajith,
>
> Are you using governance aspects of registry?
>
I'm not exactly sure what you meant by this, I just tried to search an
artifact with registry browser. (with "true"
it shows correct results, with the value "false" it doesn't show any
results)

> Kindly share the pack with reproducing steps, Will have a look.
>
It's just a ESB pack with registry mounts. Pack link is [1] which I have
shared with you, (you need to create relevant databases and users to start
the pack)

Noticed that it(single server startup) creates around 103 mysql connections
each time server starts and gradually reducing to smaller number(less than
10)

[1] -
https://drive.google.com/a/wso2.com/file/d/0B11-M0E-tbv5VFNEZ0JQd3dGems/view?usp=sharing

Thanks,

>
> Thanks,
> Thushara.
>
> On Fri, Jul 15, 2016 at 3:41 PM, Rajith Vitharana 
> wrote:
>
>> Hi All,
>>
>> As advised by Thushara, tried removing solr indexing in ESB using [1],
>> but in that case searching the registry with newly added resources fails(it
>> doesn't show any results). So is it ok to do this change to ESB?
>>
>> [1] - registry.xml  false
>>
>> Thanks,
>>
>> On Fri, Jul 15, 2016 at 3:09 PM, Thushara Ranawaka 
>> wrote:
>>
>>> Hi Chanaka,
>>>
>>> On Fri, Jul 15, 2016 at 2:42 PM, Chanaka Fernando 
>>> wrote:
>>>
 Hi Thushara,

 Increase the mysql active connections to 350. Please note that this is
 bounded to server specs.
 Now start 2 servers at a time. Wait 10 mins before starting the other 2
 WSO2 servers.
 Or else you can always start 1 server at a time every 10 mins.
 Therefore it will take 30 mins to start all 4 nodes.

 Do you think we can tell something like this in front of a customer?
 Normally customers want to start the servers within seconds and they want
 to start an entire cluster within minutes (maximum). Please provide a
 recommendation which makes sense in a real world. We need a proper way to
 handle this.

>>>
>>> This recommendation is for ES not for ESB and specially not for
>>> customers since we can automate this using config. ES uses governance
>>> features therefore ES need to have solr enabled. Therefore please
>>> disable[3] solr in all ESB nodes. Further more I understand they will start
>>> all the servers straightaway but for ES initial start(database with data)
>>> there is a heavy indexing process is happening in the background to have a
>>> smooth ride afterward. Since there is 4 nodes either user have to increase
>>> database connections from DB side or start servers one by one with a delay.
>>> We can automate this using indexingConfiguration[4] in registry.xml. This
>>> is just a one time thing, you can change it back to default values after
>>> the first startup.
>>>
>>> [4] - {Different values in each nodes with 10
>>> mins different.}
>>> 3
>>> 
>>> 50
>>> 
>>> 10
>>>
>>> Thanks,
>>> Thushara.
>>>
>>>
 On Fri, Jul 15, 2016 at 1:25 PM, Thushara Ranawaka 
 wrote:

> Hi Dilini,
>
>
> On Thu, Jul 14, 2016 at 2:31 PM, Dilini Gunatilake 
> wrote:
>
>> Hi,
>>
>> @Thushara,
>> Thanks for the info. Any recommended number of max_connections to
>> configure considering indexing with a high load etc? Then we can add 
>> those
>> details in the docs to avoid future issues.
>>
>
> My personal recommendation,
> Increase the mysql active connections to 350. Please note that this is
> bounded to server specs.
> Now start 2 servers at a time. Wait 10 mins before starting the other
> 2 WSO2 servers.
> Or else you can always start 1 server at a time every 10 mins.
> Therefore it will take 30 mins to start all 4 nodes.
>
> Thanks,
> Thushara.
>
>
>>
>> @Sumedha,
>> I was able to start all the nodes because the number of connections
>> reduces after some time.
>>
>> As Rajith mentioned, the concern is having that number of connections
>> created just for a server startup having less than 25 assets.
>>
>> Thanks,
>> Dilini
>>
>>
>> On Thu, Jul 14, 2016 at 12:53 PM, Rajith Vitharana 
>> wrote:
>>
>>> Hi,
>>>
>>> On Thu, Jul 14, 2016 at 12:44 PM, Sumedha Rubasinghe <
>>> sume...@wso2.com> wrote:
>>>
 Guys,
 Some food for thought.

 1. A single MySQL Server has a globally defined max_connections
 figure (151 as Dilini mentioned)

 So on a clustered setup, when you point to a single MySQL Server
 from various WSO2 products, depending on no of keep alive connections
 specified, you will at some point will hit too many connections from 
 server
 side @ some 

Re: [Dev] [ES] Too many mysql connections when starting ES instances

2016-07-15 Thread Thushara Ranawaka
Hi Rajith,

Are you using governance aspects of registry?
Kindly share the pack with reproducing steps, Will have a look.

Thanks,
Thushara.

On Fri, Jul 15, 2016 at 3:41 PM, Rajith Vitharana  wrote:

> Hi All,
>
> As advised by Thushara, tried removing solr indexing in ESB using [1], but
> in that case searching the registry with newly added resources fails(it
> doesn't show any results). So is it ok to do this change to ESB?
>
> [1] - registry.xml  false
>
> Thanks,
>
> On Fri, Jul 15, 2016 at 3:09 PM, Thushara Ranawaka 
> wrote:
>
>> Hi Chanaka,
>>
>> On Fri, Jul 15, 2016 at 2:42 PM, Chanaka Fernando 
>> wrote:
>>
>>> Hi Thushara,
>>>
>>> Increase the mysql active connections to 350. Please note that this is
>>> bounded to server specs.
>>> Now start 2 servers at a time. Wait 10 mins before starting the other 2
>>> WSO2 servers.
>>> Or else you can always start 1 server at a time every 10 mins. Therefore
>>> it will take 30 mins to start all 4 nodes.
>>>
>>> Do you think we can tell something like this in front of a customer?
>>> Normally customers want to start the servers within seconds and they want
>>> to start an entire cluster within minutes (maximum). Please provide a
>>> recommendation which makes sense in a real world. We need a proper way to
>>> handle this.
>>>
>>
>> This recommendation is for ES not for ESB and specially not for customers
>> since we can automate this using config. ES uses governance features
>> therefore ES need to have solr enabled. Therefore please disable[3] solr in
>> all ESB nodes. Further more I understand they will start all the servers
>> straightaway but for ES initial start(database with data) there is a heavy
>> indexing process is happening in the background to have a smooth ride
>> afterward. Since there is 4 nodes either user have to increase database
>> connections from DB side or start servers one by one with a delay. We can
>> automate this using indexingConfiguration[4] in registry.xml. This is just
>> a one time thing, you can change it back to default values after the first
>> startup.
>>
>> [4] - {Different values in each nodes with 10
>> mins different.}
>> 3
>> 
>> 50
>> 
>> 10
>>
>> Thanks,
>> Thushara.
>>
>>
>>> On Fri, Jul 15, 2016 at 1:25 PM, Thushara Ranawaka 
>>> wrote:
>>>
 Hi Dilini,


 On Thu, Jul 14, 2016 at 2:31 PM, Dilini Gunatilake 
 wrote:

> Hi,
>
> @Thushara,
> Thanks for the info. Any recommended number of max_connections to
> configure considering indexing with a high load etc? Then we can add those
> details in the docs to avoid future issues.
>

 My personal recommendation,
 Increase the mysql active connections to 350. Please note that this is
 bounded to server specs.
 Now start 2 servers at a time. Wait 10 mins before starting the other 2
 WSO2 servers.
 Or else you can always start 1 server at a time every 10 mins.
 Therefore it will take 30 mins to start all 4 nodes.

 Thanks,
 Thushara.


>
> @Sumedha,
> I was able to start all the nodes because the number of connections
> reduces after some time.
>
> As Rajith mentioned, the concern is having that number of connections
> created just for a server startup having less than 25 assets.
>
> Thanks,
> Dilini
>
>
> On Thu, Jul 14, 2016 at 12:53 PM, Rajith Vitharana 
> wrote:
>
>> Hi,
>>
>> On Thu, Jul 14, 2016 at 12:44 PM, Sumedha Rubasinghe <
>> sume...@wso2.com> wrote:
>>
>>> Guys,
>>> Some food for thought.
>>>
>>> 1. A single MySQL Server has a globally defined max_connections
>>> figure (151 as Dilini mentioned)
>>>
>>> So on a clustered setup, when you point to a single MySQL Server
>>> from various WSO2 products, depending on no of keep alive connections
>>> specified, you will at some point will hit too many connections from 
>>> server
>>> side @ some point.
>>>
>> Yeah totally agree, but that much(395) is bit high AFAIU when just
>> starting up a server(without any load in 4 servers, and when it 
>> stabilize,
>> it only consumes less than 20 connections without load)
>>
>> @Thushara, Thanks for the info, will check what you have mentioned.
>>
>> Thanks,
>>
>>>
>>> So you have to rethink the deployment and use a different database
>>> server.
>>>
>>> 2. If ES has a tendency to perform too many database calls @
>>> startup,
>>> - You can temporally eliminate that by controlling node start up
>>> order
>>>
>>>
>>> On Thu, Jul 14, 2016 at 12:04 PM, Rajith Vitharana >> > wrote:
>>>
 Hi,

 We faced the same issue in ESB latest when clustering enabled, with
 4 

Re: [Dev] [IS-Analytics] Tenant domain of a login event using SaaS applicatioin.

2016-07-15 Thread Darshana Gunawardana
On Fri, Jul 15, 2016 at 3:47 PM, Hasintha Indrajee 
wrote:

> Hi All,
>
> For SaaS application what is the tenant domain related to a login event ?
> Is that the tenant domain which the SP is registered or is that the logged
> in user's tenant domain ?.
>
> If we consider sending out tenant domain as just a record, it's fine to
> add either (reasonable). But the problem is we need a specific tenant
> domain to publish this event. According to the current way of event
> publishing to the DAS, we need to start a tenant flow before publishing. In
> this case we need a specific tenant domain to publish this event. Or else
> do we need to publish this event to both tenant domains (starting two
> tenant flows) in a case of SaaS app ?.
>

+1

>
>
>
> --
> Hasintha Indrajee
> WSO2, Inc.
> Mobile:+94 771892453
>
>


-- 
Regards,


*Darshana Gunawardana*Associate Technical Lead
WSO2 Inc.; http://wso2.com

*E-mail: darsh...@wso2.com *
*Mobile: +94718566859*Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [BPS] BPS processes can't access when start the worker node with -DworkerNode=true

2016-07-15 Thread Gayan Gunarathne
On Fri, Jul 15, 2016 at 4:40 PM, Hasitha Aravinda  wrote:

> For BPS, we are not recommending to use -DworkerNode=true in cluster,
> because when server starts as a worker node, it will disable all the admin
> services. But there are some user services exposed as Admin Services ( i.e
> HumanTask client API, BPMN Admin services etc. ).
>
> It seems like doc is misleading. will correct this doc.
>

Yeah.Then we need to correct the documentation.

>
> Thanks,
> Hasitha.
>
> On Fri, Jul 15, 2016 at 4:32 PM, Gayan Gunarathne  wrote:
>
>> I won't be able to access the processes in bpmn-explorer of worker node
>> when worker node start with -DworkerNode=true in BPS cluster[1]. It will
>> redirect to the login page.But if I start the worker node
>> without -DworkerNode=true, I can access and start the processes with out a
>> issue.
>>
>> Added a JIRA[2] with steps.
>>
>> [1]
>> https://docs.wso2.com/display/CLUSTER44x/Clustering+Business+Process+Server+3.5.0+and+3.5.1
>> [2]https://wso2.org/jira/browse/BPS-1090
>>
>> Thanks,
>> Gayan
>>
>> --
>>
>> Gayan Gunarathne
>> Technical Lead, WSO2 Inc. (http://wso2.com)
>> Committer & PMC Member, Apache Stratos
>> email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
>>
>>
>>
>
>
>
> --
> --
> Hasitha Aravinda,
> Associate Technical Lead,
> WSO2 Inc.
> Email: hasi...@wso2.com
> Mobile : +94 718 210 200
>



-- 

Gayan Gunarathne
Technical Lead, WSO2 Inc. (http://wso2.com)
Committer & PMC Member, Apache Stratos
email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [BPS] BPS processes can't access when start the worker node with -DworkerNode=true

2016-07-15 Thread Hasitha Aravinda
For BPS, we are not recommending to use -DworkerNode=true in cluster,
because when server starts as a worker node, it will disable all the admin
services. But there are some user services exposed as Admin Services ( i.e
HumanTask client API, BPMN Admin services etc. ).

It seems like doc is misleading. will correct this doc.

Thanks,
Hasitha.

On Fri, Jul 15, 2016 at 4:32 PM, Gayan Gunarathne  wrote:

> I won't be able to access the processes in bpmn-explorer of worker node
> when worker node start with -DworkerNode=true in BPS cluster[1]. It will
> redirect to the login page.But if I start the worker node
> without -DworkerNode=true, I can access and start the processes with out a
> issue.
>
> Added a JIRA[2] with steps.
>
> [1]
> https://docs.wso2.com/display/CLUSTER44x/Clustering+Business+Process+Server+3.5.0+and+3.5.1
> [2]https://wso2.org/jira/browse/BPS-1090
>
> Thanks,
> Gayan
>
> --
>
> Gayan Gunarathne
> Technical Lead, WSO2 Inc. (http://wso2.com)
> Committer & PMC Member, Apache Stratos
> email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
>
>
>



-- 
--
Hasitha Aravinda,
Associate Technical Lead,
WSO2 Inc.
Email: hasi...@wso2.com
Mobile : +94 718 210 200
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [BPS] BPS processes can't access when start the worker node with -DworkerNode=true

2016-07-15 Thread Gayan Gunarathne
I won't be able to access the processes in bpmn-explorer of worker node
when worker node start with -DworkerNode=true in BPS cluster[1]. It will
redirect to the login page.But if I start the worker node
without -DworkerNode=true, I can access and start the processes with out a
issue.

Added a JIRA[2] with steps.

[1]
https://docs.wso2.com/display/CLUSTER44x/Clustering+Business+Process+Server+3.5.0+and+3.5.1
[2]https://wso2.org/jira/browse/BPS-1090

Thanks,
Gayan

-- 

Gayan Gunarathne
Technical Lead, WSO2 Inc. (http://wso2.com)
Committer & PMC Member, Apache Stratos
email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting Developer Studio kernel updates for 4.1.0

2016-07-15 Thread Kavith Lokuhewage
Hi Sohani,

Sure, will do it.

Thanks

On 15 Jul 2016 4:02 p.m., "Sohani Weerasinghe"  wrote:

> Hi Kavith,
>
> I have tested and the issue is fixed now.  I have verified the timestamp
> in the updated jar as well.
>
> Can you please publish this to product dist?
>
> Thanks,
> Sohani
>
> Sohani Weerasinghe
> Senior Software Engineer
> WSO2, Inc: http://wso2.com
>
> Mobile  : +94 716439774
> Blog :http://christinetechtips.blogspot.com/
> Twitter  : https://twitter.com/sohanichristine
>
> On Fri, Jul 15, 2016 at 1:41 PM, Kavith Lokuhewage 
> wrote:
>
>> Furthermore, please verify the tag.
>>
>> https://github.com/wso2/developer-studio/tree/kernel.update_4.1.0.201607150652
>>
>> Thanks,
>>
>> *Kavith Lokuhewage*
>> Senior Software Engineer
>> WSO2 Inc. - http://wso2.com
>> lean . enterprise . middleware
>> Mobile - +94779145123
>> Linkedin 
>> Twitter 
>>
>> On Fri, Jul 15, 2016 at 1:31 PM, Kavith Lokuhewage 
>> wrote:
>>
>>> Hi Viraj,
>>>
>>> Kernel update is temporally published at [1]. Please verify. After
>>> verification, we will publish this to product dist location for updates[ 2].
>>>
>>> Thanks,
>>>
>>> [1]
>>> http://builder1.us1.wso2.org/~developerstudio/developer-studio-kernel/4.1.0/kernel/updates/
>>> [2]
>>> http://product-dist.wso2.com/p2/developer-studio-kernel/4.1.0/kernel/updates/
>>>
>>> *Kavith Lokuhewage*
>>> Senior Software Engineer
>>> WSO2 Inc. - http://wso2.com
>>> lean . enterprise . middleware
>>> Mobile - +94779145123
>>> Linkedin 
>>> Twitter 
>>>
>>> On Fri, Jul 15, 2016 at 10:56 AM, Viraj Rajaguru  wrote:
>>>
 Thanks Kavith !

 On Fri, Jul 15, 2016 at 10:53 AM, Kavith Lokuhewage 
 wrote:

> Hi Viraj,
>
> We are currently creating the updates and facing some issues with the
> builder. I will update you once the updates are successfully published.
>
> Thanks,
>
> *Kavith Lokuhewage*
> Senior Software Engineer
> WSO2 Inc. - http://wso2.com
> lean . enterprise . middleware
> Mobile - +94779145123
> Linkedin 
> Twitter 
>
> On Fri, Jul 15, 2016 at 10:43 AM, Viraj Rajaguru 
> wrote:
>
>> Hi DevS kernel team,
>>
>> We are in the process of releasing ESB Tools 5.0.0-BETA-2. Can we
>> have updates for DevS Kernel 4.1.0 with the fixes[1][2] for
>> the DEVTOOLESB-57[3] ?
>>
>> Thanks,
>> Viraj.
>>
>> [1] -
>> https://github.com/wso2/developer-studio/commit/cd4ffb8ac54845b551136595939bc32879e31b10
>> [2] -
>> https://github.com/wso2/developer-studio/commit/24c28ffccaca3ab4019101d778cbd71dc9aaa48a
>> [3] - https://wso2.org/jira/browse/DEVTOOLESB-576
>>
>> --
>> Viraj Rajaguru
>> Associate Technical Lead
>> WSO2 Inc. : http://wso2.com
>>
>> Mobile: +94 77 3683068
>>
>>
>>
>>
>


 --
 Viraj Rajaguru
 Associate Technical Lead
 WSO2 Inc. : http://wso2.com

 Mobile: +94 77 3683068




>>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSOC 16] Initial Project Progress

2016-07-15 Thread Isuru Haththotuwa
Hi Osura,

Can you send a detailed updated on the current status? Shall we have a
meeting on Monday to review the progress.

On Tue, Jul 12, 2016 at 2:03 PM, Osura Rathnayake 
wrote:

> Hi Imesh,
>
> About dynamically adding members to the load balancer, I will cross check
> it with auto-scaling. I couldn't look into that from auto-scaling end since
> I couldn't test it yet.
>
> about monitoring, yes we can do a POC on that.
>
> thanks,
>
> On Tue, Jul 12, 2016 at 12:53 PM, Imesh Gunaratne  wrote:
>
>> On Tue, Jul 12, 2016 at 12:09 PM, Osura Rathnayake 
>> wrote:
>>
>>> Hi Imesh,
>>>
>>> About centralized logging, I'm trying to get logs to the Log Analytics
>>> using few methods supported in azure. We can either parse logs in to
>>> syslogs and send to the Log Analytics or create custom logs specifying the
>>> logs location. As you said, logs shouldn't be in .txt extension, I got it
>>> clarified from a azure blog. Will update you soon after I could resolve it.
>>>
>>> ​Right, thanks for the update!​
>>
>>
>>> No you can't dynamically add VMs to the load balancer. Backend pool,
>>> where all the VMs reside, should be predefined.
>>>
>>
>> ​Technically that capability should be there. Otherwise we would not be
>> able to autoscale a server cluster dynamically.
>> ​
>>
>>
>>> you can auto-scale using scale sets(I'm still researching about it),
>>> that's the equivalent of AWS auto scaling group . also you can scale up or
>>> down a VM if it exceeds a certain parameter like CPU usage, using
>>> monitoring rules.
>>>
>>> *Monitoring *
>>>
>>>
>>> Azure has a native monitoring tool which involves collecting and
>>> tracking metrics, analyzing log files, defining custom metrics and logging
>>> generated by specific applications or workloads running in Virtual
>>> Machines. Azure represents monitored data in a graphical manner using
>>> charts. Monitoring also facilitates triggering alarms when certain
>>> conditions are met and also it can be configured to take actions on the met
>>> conditions. Monitoring is done by the Diagnostic Extension and it has
>>> following capabilities.
>>>
>>> · Collects and uploads the system performance information from
>>> the Linux VM to the user's storage table, including diagnostic and syslog
>>> information.
>>>
>>> · Enables users to customize the data metrics that will be
>>> collected and uploaded.
>>>
>>> · Enables users to upload specified log files to a designated
>>> storage table.
>>>
>>> Note: Azure storage tables are a non-relational, key-value-pair, storage
>>> system suitable for storing massive amounts of unstructured data.
>>>
>>>
>>> We can add monitor rules so that when an alert triggers it notifies the
>>> admins via email. Furthermore we can set to take automated actions. Azure
>>> automate actions by running runbooks. A runbook is a set of tasks that
>>> perform some automated process in Azure Automation. We can create our own
>>> runbooks as well. Available runbooks include,
>>>
>>> · Restart VM
>>>
>>> · Stop VM
>>>
>>> · Remove VM
>>>
>>> · Scale up VM
>>>
>>> · Scale down VM
>>>
>>> When scaling up it sets the virtual machine to the next larger size
>>> within the size group and when scaling down it sets the virtual machine to
>>> the next smaller size within the size group.
>>>
>>> More about runbooks and automation [1]
>>>
>>
>> ​Sounds good, will us be able to do a POC on this?​
>>
>>
>>>
>>> *Auto scaling *
>>>
>>>
>>> Auto-scaling is the process of dynamically allocating the resources
>>> required by an application to match performance requirements. Virtual
>>> machine scale sets are an Azure Compute resource you can use to deploy and
>>> manage a set of identical VMs. With all VMs configured the same, VM scale
>>> sets are designed to support true auto-scale  no pre-provisioning of VMs is
>>> required – and as such makes it easier to build large-scale services
>>> targeting big compute, big data, and containerized workloads [2].
>>>
>>>
>>> Note: I couldn’t practically do this as my azure free account lets me
>>> have only 4 cores and I have used all of them on my current deployment. I’m
>>> getting a new azure account from one of my friends in a day so hopefully I
>>> will do this on it and update you.
>>>
>>
>> ​Great! Thanks!​
>>
>>
>>>
>>> [1]
>>> https://azure.microsoft.com/en-us/documentation/articles/automation-intro/
>>>
>>> [2]
>>> https://azure.microsoft.com/en-us/documentation/articles/virtual-machine-scale-sets-overview/
>>>
>>>
>>> thanks,
>>>
>>>
>>> On Mon, Jul 11, 2016 at 9:54 AM, Imesh Gunaratne  wrote:
>>>
 On Thu, Jul 7, 2016 at 7:11 PM, Osura Rathnayake 
 wrote:

> Hi Mentors,
>
>
> In addition to refining the membership scheme code, I looked into
> following features of Azure.
> ​
>
 ​Good findings Osura, please find few questions 

Re: [Dev] Getting Developer Studio kernel updates for 4.1.0

2016-07-15 Thread Sohani Weerasinghe
Hi Kavith,

I have tested and the issue is fixed now.  I have verified the timestamp in
the updated jar as well.

Can you please publish this to product dist?

Thanks,
Sohani

Sohani Weerasinghe
Senior Software Engineer
WSO2, Inc: http://wso2.com

Mobile  : +94 716439774
Blog :http://christinetechtips.blogspot.com/
Twitter  : https://twitter.com/sohanichristine

On Fri, Jul 15, 2016 at 1:41 PM, Kavith Lokuhewage  wrote:

> Furthermore, please verify the tag.
>
> https://github.com/wso2/developer-studio/tree/kernel.update_4.1.0.201607150652
>
> Thanks,
>
> *Kavith Lokuhewage*
> Senior Software Engineer
> WSO2 Inc. - http://wso2.com
> lean . enterprise . middleware
> Mobile - +94779145123
> Linkedin 
> Twitter 
>
> On Fri, Jul 15, 2016 at 1:31 PM, Kavith Lokuhewage 
> wrote:
>
>> Hi Viraj,
>>
>> Kernel update is temporally published at [1]. Please verify. After
>> verification, we will publish this to product dist location for updates[ 2].
>>
>> Thanks,
>>
>> [1]
>> http://builder1.us1.wso2.org/~developerstudio/developer-studio-kernel/4.1.0/kernel/updates/
>> [2]
>> http://product-dist.wso2.com/p2/developer-studio-kernel/4.1.0/kernel/updates/
>>
>> *Kavith Lokuhewage*
>> Senior Software Engineer
>> WSO2 Inc. - http://wso2.com
>> lean . enterprise . middleware
>> Mobile - +94779145123
>> Linkedin 
>> Twitter 
>>
>> On Fri, Jul 15, 2016 at 10:56 AM, Viraj Rajaguru  wrote:
>>
>>> Thanks Kavith !
>>>
>>> On Fri, Jul 15, 2016 at 10:53 AM, Kavith Lokuhewage 
>>> wrote:
>>>
 Hi Viraj,

 We are currently creating the updates and facing some issues with the
 builder. I will update you once the updates are successfully published.

 Thanks,

 *Kavith Lokuhewage*
 Senior Software Engineer
 WSO2 Inc. - http://wso2.com
 lean . enterprise . middleware
 Mobile - +94779145123
 Linkedin 
 Twitter 

 On Fri, Jul 15, 2016 at 10:43 AM, Viraj Rajaguru 
 wrote:

> Hi DevS kernel team,
>
> We are in the process of releasing ESB Tools 5.0.0-BETA-2. Can we have
> updates for DevS Kernel 4.1.0 with the fixes[1][2] for the 
> DEVTOOLESB-57[3]
> ?
>
> Thanks,
> Viraj.
>
> [1] -
> https://github.com/wso2/developer-studio/commit/cd4ffb8ac54845b551136595939bc32879e31b10
> [2] -
> https://github.com/wso2/developer-studio/commit/24c28ffccaca3ab4019101d778cbd71dc9aaa48a
> [3] - https://wso2.org/jira/browse/DEVTOOLESB-576
>
> --
> Viraj Rajaguru
> Associate Technical Lead
> WSO2 Inc. : http://wso2.com
>
> Mobile: +94 77 3683068
>
>
>
>

>>>
>>>
>>> --
>>> Viraj Rajaguru
>>> Associate Technical Lead
>>> WSO2 Inc. : http://wso2.com
>>>
>>> Mobile: +94 77 3683068
>>>
>>>
>>>
>>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Controlling access to jaggery pages by permissions

2016-07-15 Thread Rajkumar Rajaratnam
Hi,

I have a jaggery app with some pages and secured them via SAML SSO with
WSO2 IS. So the authentication is implemented, now I have to implement the
authorization. I need to control access to these jaggery pages by
roles/permissions of the loggedin user. Here is the approach I have
followed and I need to validate whether it is okay or there are better
ways.

   1. Created custom permissions under my application service provider (one
   permission per one feature in my jaggery app)
   2. When a user access a feature in the jaggery app, I am calling "
   *isUserAuthorized*" method of "*RemoteAuthorizationManagerService*"
   admin service to check whether the logged in user is authorized to access
   the page. I think "isUserAuthorized" method checks whether the given user
   has any roles with the given permission. So, if it returns true, then I
   allow the user to access the page.
   3. I am calling the admin service with basic authentication. Is there
   any issues with this approach? Do I need to obtain a session cookie and
   call the admin service using session cookie instead of username/password?
   What is the recommended approach?

Any issues with this approach?
Thanks,
Raj.

-- 
Rajkumar Rajaratnam
Committer & PMC Member, Apache Stratos
Senior Software Engineer, WSO2

Mobile : +94777568639
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS-Analytics] Tenant domain of a login event using SaaS applicatioin.

2016-07-15 Thread Hasintha Indrajee
Hi All,

For SaaS application what is the tenant domain related to a login event ?
Is that the tenant domain which the SP is registered or is that the logged
in user's tenant domain ?.

If we consider sending out tenant domain as just a record, it's fine to add
either (reasonable). But the problem is we need a specific tenant domain to
publish this event. According to the current way of event publishing to the
DAS, we need to start a tenant flow before publishing. In this case we need
a specific tenant domain to publish this event. Or else do we need to
publish this event to both tenant domains (starting two tenant flows) in a
case of SaaS app ?.



-- 
Hasintha Indrajee
WSO2, Inc.
Mobile:+94 771892453
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 MSF4J 2.0.0 RC2

2016-07-15 Thread Thusitha Thilina Dayaratne
Hi All,

We are calling off this vote due to a versioning issue of a sample. We will
do a RC3 as soon as possible

Thanks
Thusitha

On Fri, Jul 15, 2016 at 11:49 AM, Lakmal Warusawithana 
wrote:

> +1.
>
> I have build from v2.0.0-rc2 and tested petstore sample (without
> analytics) and found no issues.
>
> thanks
>
> On Thu, Jul 14, 2016 at 6:26 PM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi Devs,
>>
>> This is the 2nd Release Candidate of  the WSO2 MSF4J (Microservices
>> Framework for Java) 2.0.0.
>>
>> Please download, test the framework and vote. Vote will be open for 72
>> hours or as needed.
>> Refer to github readme for guides.
>>
>> *​Source and binary distribution files:*
>> *https://github.com/wso2/msf4j/releases/tag/v2.0.0-rc2
>> *
>>
>> *Maven staging repository:*
>> https://maven.wso2.org/nexus/content/repositories/orgwso2msf4j-1002
>>
>> *The tag to be voted upon:*
>> *https://github.com/wso2/msf4j/tree/v2.0.0-rc2
>> *
>>
>>
>>
>> [ ] Broken - Do not release (explain why)
>> [ ] Stable  - Go ahead and release
>>
>> Thank you,
>> AS/Carbon Team
>>
>> --
>> Thusitha Dayaratne
>> Software Engineer
>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>
>> Mobile  +94712756809
>> Blog  alokayasoya.blogspot.com
>> Abouthttp://about.me/thusithathilina
>>
>>
>
>
> --
> Lakmal Warusawithana
> Director - Cloud Architecture; WSO2 Inc.
> Mobile : +94714289692
> Blog : http://lakmalsview.blogspot.com/
>
>


-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES] Too many mysql connections when starting ES instances

2016-07-15 Thread Rajith Vitharana
Hi All,

As advised by Thushara, tried removing solr indexing in ESB using [1], but
in that case searching the registry with newly added resources fails(it
doesn't show any results). So is it ok to do this change to ESB?

[1] - registry.xml  false

Thanks,

On Fri, Jul 15, 2016 at 3:09 PM, Thushara Ranawaka 
wrote:

> Hi Chanaka,
>
> On Fri, Jul 15, 2016 at 2:42 PM, Chanaka Fernando 
> wrote:
>
>> Hi Thushara,
>>
>> Increase the mysql active connections to 350. Please note that this is
>> bounded to server specs.
>> Now start 2 servers at a time. Wait 10 mins before starting the other 2
>> WSO2 servers.
>> Or else you can always start 1 server at a time every 10 mins. Therefore
>> it will take 30 mins to start all 4 nodes.
>>
>> Do you think we can tell something like this in front of a customer?
>> Normally customers want to start the servers within seconds and they want
>> to start an entire cluster within minutes (maximum). Please provide a
>> recommendation which makes sense in a real world. We need a proper way to
>> handle this.
>>
>
> This recommendation is for ES not for ESB and specially not for customers
> since we can automate this using config. ES uses governance features
> therefore ES need to have solr enabled. Therefore please disable[3] solr in
> all ESB nodes. Further more I understand they will start all the servers
> straightaway but for ES initial start(database with data) there is a heavy
> indexing process is happening in the background to have a smooth ride
> afterward. Since there is 4 nodes either user have to increase database
> connections from DB side or start servers one by one with a delay. We can
> automate this using indexingConfiguration[4] in registry.xml. This is just
> a one time thing, you can change it back to default values after the first
> startup.
>
> [4] - {Different values in each nodes with 10 mins
> different.}
> 3
> 
> 50
> 
> 10
>
> Thanks,
> Thushara.
>
>
>> On Fri, Jul 15, 2016 at 1:25 PM, Thushara Ranawaka 
>> wrote:
>>
>>> Hi Dilini,
>>>
>>>
>>> On Thu, Jul 14, 2016 at 2:31 PM, Dilini Gunatilake 
>>> wrote:
>>>
 Hi,

 @Thushara,
 Thanks for the info. Any recommended number of max_connections to
 configure considering indexing with a high load etc? Then we can add those
 details in the docs to avoid future issues.

>>>
>>> My personal recommendation,
>>> Increase the mysql active connections to 350. Please note that this is
>>> bounded to server specs.
>>> Now start 2 servers at a time. Wait 10 mins before starting the other 2
>>> WSO2 servers.
>>> Or else you can always start 1 server at a time every 10 mins. Therefore
>>> it will take 30 mins to start all 4 nodes.
>>>
>>> Thanks,
>>> Thushara.
>>>
>>>

 @Sumedha,
 I was able to start all the nodes because the number of connections
 reduces after some time.

 As Rajith mentioned, the concern is having that number of connections
 created just for a server startup having less than 25 assets.

 Thanks,
 Dilini


 On Thu, Jul 14, 2016 at 12:53 PM, Rajith Vitharana 
 wrote:

> Hi,
>
> On Thu, Jul 14, 2016 at 12:44 PM, Sumedha Rubasinghe  > wrote:
>
>> Guys,
>> Some food for thought.
>>
>> 1. A single MySQL Server has a globally defined max_connections
>> figure (151 as Dilini mentioned)
>>
>> So on a clustered setup, when you point to a single MySQL Server from
>> various WSO2 products, depending on no of keep alive connections 
>> specified,
>> you will at some point will hit too many connections from server side @
>> some point.
>>
> Yeah totally agree, but that much(395) is bit high AFAIU when just
> starting up a server(without any load in 4 servers, and when it stabilize,
> it only consumes less than 20 connections without load)
>
> @Thushara, Thanks for the info, will check what you have mentioned.
>
> Thanks,
>
>>
>> So you have to rethink the deployment and use a different database
>> server.
>>
>> 2. If ES has a tendency to perform too many database calls @ startup,
>> - You can temporally eliminate that by controlling node start up order
>>
>>
>> On Thu, Jul 14, 2016 at 12:04 PM, Rajith Vitharana 
>> wrote:
>>
>>> Hi,
>>>
>>> We faced the same issue in ESB latest when clustering enabled, with
>>> 4 node cluster, number of connections goes to around 395 and gradually
>>> comes down to 20 or less, even with the exception happened(mysql having
>>> default max connections 151), it seems it gets stable to 20 or less
>>> connections after some time. Created a public jira to track this issue 
>>> at
>>> [1]
>>>
>>> [1] - https://wso2.org/jira/browse/REGISTRY-3771

Re: [Dev] Add a default theme for gadgets in DS/DAS

2016-07-15 Thread Udara Rathnayake
are we going to inherit DS theme across gadgets?


On Fri, Jul 15, 2016 at 11:14 AM, Jerad Rutnam  wrote:

> Hi Sinthuja,
>
>
> Just summarizing the offline discussion we had yesterday,
>
> So the basic idea is that, since we ship a default theme with the
> Dashboard Server. We should also add a default theme for precooked gadgets,
> that we ship with the Dashboard Server.
>
> And also this should apply to the gadgets that are generated by the Gadget
> Create Wizard. Then generated gadgets will have a default theme and gadget
> generator(user) does not has to worry about the styling of it, unless
> he/she wants a fully customized UI. We can have a configuration to disable
> this theme if anyone wants.
>
> If the default theme is enabled on gadgets, it should apply the default
> stylesheet for the gadgets along with the chart template core styles.
>
> Also there should be a gadget extension stylesheet available for the theme
> developers. So he/she can overwrite the default gadget styling + theme
> styling (e.g. "gadget.css", just like we have for dashboard and portal).
>
>
> Let me know the thought.
>
>
> Cheers!
> --
> *Jerad Rutnam*
> *Software Engineer*
>
> WSO2 Inc.
> lean | enterprise | middleware
> M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
>



-- 
Regards,
UdaraR
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES] Too many mysql connections when starting ES instances

2016-07-15 Thread Thushara Ranawaka
Hi Chanaka,

On Fri, Jul 15, 2016 at 2:42 PM, Chanaka Fernando  wrote:

> Hi Thushara,
>
> Increase the mysql active connections to 350. Please note that this is
> bounded to server specs.
> Now start 2 servers at a time. Wait 10 mins before starting the other 2
> WSO2 servers.
> Or else you can always start 1 server at a time every 10 mins. Therefore
> it will take 30 mins to start all 4 nodes.
>
> Do you think we can tell something like this in front of a customer?
> Normally customers want to start the servers within seconds and they want
> to start an entire cluster within minutes (maximum). Please provide a
> recommendation which makes sense in a real world. We need a proper way to
> handle this.
>

This recommendation is for ES not for ESB and specially not for customers
since we can automate this using config. ES uses governance features
therefore ES need to have solr enabled. Therefore please disable[3] solr in
all ESB nodes. Further more I understand they will start all the servers
straightaway but for ES initial start(database with data) there is a heavy
indexing process is happening in the background to have a smooth ride
afterward. Since there is 4 nodes either user have to increase database
connections from DB side or start servers one by one with a delay. We can
automate this using indexingConfiguration[4] in registry.xml. This is just
a one time thing, you can change it back to default values after the first
startup.

[4] - {Different values in each nodes with 10 mins
different.}
3

50

10

Thanks,
Thushara.


> On Fri, Jul 15, 2016 at 1:25 PM, Thushara Ranawaka 
> wrote:
>
>> Hi Dilini,
>>
>>
>> On Thu, Jul 14, 2016 at 2:31 PM, Dilini Gunatilake 
>> wrote:
>>
>>> Hi,
>>>
>>> @Thushara,
>>> Thanks for the info. Any recommended number of max_connections to
>>> configure considering indexing with a high load etc? Then we can add those
>>> details in the docs to avoid future issues.
>>>
>>
>> My personal recommendation,
>> Increase the mysql active connections to 350. Please note that this is
>> bounded to server specs.
>> Now start 2 servers at a time. Wait 10 mins before starting the other 2
>> WSO2 servers.
>> Or else you can always start 1 server at a time every 10 mins. Therefore
>> it will take 30 mins to start all 4 nodes.
>>
>> Thanks,
>> Thushara.
>>
>>
>>>
>>> @Sumedha,
>>> I was able to start all the nodes because the number of connections
>>> reduces after some time.
>>>
>>> As Rajith mentioned, the concern is having that number of connections
>>> created just for a server startup having less than 25 assets.
>>>
>>> Thanks,
>>> Dilini
>>>
>>>
>>> On Thu, Jul 14, 2016 at 12:53 PM, Rajith Vitharana 
>>> wrote:
>>>
 Hi,

 On Thu, Jul 14, 2016 at 12:44 PM, Sumedha Rubasinghe 
 wrote:

> Guys,
> Some food for thought.
>
> 1. A single MySQL Server has a globally defined max_connections figure
> (151 as Dilini mentioned)
>
> So on a clustered setup, when you point to a single MySQL Server from
> various WSO2 products, depending on no of keep alive connections 
> specified,
> you will at some point will hit too many connections from server side @
> some point.
>
 Yeah totally agree, but that much(395) is bit high AFAIU when just
 starting up a server(without any load in 4 servers, and when it stabilize,
 it only consumes less than 20 connections without load)

 @Thushara, Thanks for the info, will check what you have mentioned.

 Thanks,

>
> So you have to rethink the deployment and use a different database
> server.
>
> 2. If ES has a tendency to perform too many database calls @ startup,
> - You can temporally eliminate that by controlling node start up order
>
>
> On Thu, Jul 14, 2016 at 12:04 PM, Rajith Vitharana 
> wrote:
>
>> Hi,
>>
>> We faced the same issue in ESB latest when clustering enabled, with 4
>> node cluster, number of connections goes to around 395 and gradually 
>> comes
>> down to 20 or less, even with the exception happened(mysql having default
>> max connections 151), it seems it gets stable to 20 or less connections
>> after some time. Created a public jira to track this issue at [1]
>>
>> [1] - https://wso2.org/jira/browse/REGISTRY-3771
>>
>> Thanks,
>>
>> On Wed, Jul 13, 2016 at 4:42 PM, Dilini Gunatilake 
>> wrote:
>>
>>> Hi All,
>>>
>>> I have set up a 4 node cluster for ES 2.1.0 Alpha2 pack with mysql
>>> 5.7. When I started one store node I got an error [3].
>>>
>>> Then, I checked the connections in the mysql server and found that
>>> the default number of max_connections (151) have been exceeded while the
>>> store node is starting. But initially without 

Re: [Dev] Add a default theme for gadgets in DS/DAS

2016-07-15 Thread Sriskandarajah Suhothayan
I think we should have a shindig feature to get the current theme name,
such that gadget can dynamically load the .css.
Will this work ?

Regards
Suho

On Fri, Jul 15, 2016 at 2:15 PM, Jerad Rutnam  wrote:

> Hi Udara,
>
> Good point. Is there anyway we can look for the path
> "portal\store\carbon.super\fs\theme\\css\gadget.css"
> dynamically? Does shindig has any feature to achieve this?
>
> Cheers!
>
> On Fri, Jul 15, 2016 at 1:54 PM, Udara Rathnayake  wrote:
>
>> Hi Jerad,
>>
>> One more thing, considering gadget generation as a one-time thing, how we
>> are going to support dashboard view theme update functionality. As I
>> remember we have a functionality to do this right now. So in that case
>> gadgets need to aware of the current theme and update dynamically.
>>
>> On Fri, Jul 15, 2016 at 1:12 PM, Jerad Rutnam  wrote:
>>
>>> Hi Udara,
>>>
>>> Not the entire DS theme. But a theme for gadgets that will have a
>>> consistent UI to match the default DS theme. So users can generate gadgets
>>> without worrying about the look and feel of it.
>>>
>>> Because currently users have to style the gadget from the scratch once
>>> they generate it using the Gadget Generate Wizard.
>>>
>>> Cheers!
>>> Jerad
>>>
>>> On Fri, Jul 15, 2016 at 12:07 PM, Udara Rathnayake 
>>> wrote:
>>>
 are we going to inherit DS theme across gadgets?


 On Fri, Jul 15, 2016 at 11:14 AM, Jerad Rutnam  wrote:

> Hi Sinthuja,
>
>
> Just summarizing the offline discussion we had yesterday,
>
> So the basic idea is that, since we ship a default theme with the
> Dashboard Server. We should also add a default theme for precooked 
> gadgets,
> that we ship with the Dashboard Server.
>
> And also this should apply to the gadgets that are generated by the
> Gadget Create Wizard. Then generated gadgets will have a default theme and
> gadget generator(user) does not has to worry about the styling of it,
> unless he/she wants a fully customized UI. We can have a configuration to
> disable this theme if anyone wants.
>
> If the default theme is enabled on gadgets, it should apply the
> default stylesheet for the gadgets along with the chart template core
> styles.
>
> Also there should be a gadget extension stylesheet available for the
> theme developers. So he/she can overwrite the default gadget styling +
> theme styling (e.g. "gadget.css", just like we have for dashboard and
> portal).
>
>
> Let me know the thought.
>
>
> Cheers!
> --
> *Jerad Rutnam*
> *Software Engineer*
>
> WSO2 Inc.
> lean | enterprise | middleware
> M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
>



 --
 Regards,
 UdaraR

>>>
>>
>>
>> --
>> Regards,
>> UdaraR
>>
>
>


-- 

*S. Suhothayan*
Technical Lead & Team Lead of WSO2 Complex Event Processor
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES] Too many mysql connections when starting ES instances

2016-07-15 Thread Chanaka Fernando
Hi Thushara,

Increase the mysql active connections to 350. Please note that this is
bounded to server specs.
Now start 2 servers at a time. Wait 10 mins before starting the other 2
WSO2 servers.
Or else you can always start 1 server at a time every 10 mins. Therefore it
will take 30 mins to start all 4 nodes.

Do you think we can tell something like this in front of a customer?
Normally customers want to start the servers within seconds and they want
to start an entire cluster within minutes (maximum). Please provide a
recommendation which makes sense in a real world. We need a proper way to
handle this.

On Fri, Jul 15, 2016 at 1:25 PM, Thushara Ranawaka 
wrote:

> Hi Dilini,
>
>
> On Thu, Jul 14, 2016 at 2:31 PM, Dilini Gunatilake 
> wrote:
>
>> Hi,
>>
>> @Thushara,
>> Thanks for the info. Any recommended number of max_connections to
>> configure considering indexing with a high load etc? Then we can add those
>> details in the docs to avoid future issues.
>>
>
> My personal recommendation,
> Increase the mysql active connections to 350. Please note that this is
> bounded to server specs.
> Now start 2 servers at a time. Wait 10 mins before starting the other 2
> WSO2 servers.
> Or else you can always start 1 server at a time every 10 mins. Therefore
> it will take 30 mins to start all 4 nodes.
>
> Thanks,
> Thushara.
>
>
>>
>> @Sumedha,
>> I was able to start all the nodes because the number of connections
>> reduces after some time.
>>
>> As Rajith mentioned, the concern is having that number of connections
>> created just for a server startup having less than 25 assets.
>>
>> Thanks,
>> Dilini
>>
>>
>> On Thu, Jul 14, 2016 at 12:53 PM, Rajith Vitharana 
>> wrote:
>>
>>> Hi,
>>>
>>> On Thu, Jul 14, 2016 at 12:44 PM, Sumedha Rubasinghe 
>>> wrote:
>>>
 Guys,
 Some food for thought.

 1. A single MySQL Server has a globally defined max_connections figure
 (151 as Dilini mentioned)

 So on a clustered setup, when you point to a single MySQL Server from
 various WSO2 products, depending on no of keep alive connections specified,
 you will at some point will hit too many connections from server side @
 some point.

>>> Yeah totally agree, but that much(395) is bit high AFAIU when just
>>> starting up a server(without any load in 4 servers, and when it stabilize,
>>> it only consumes less than 20 connections without load)
>>>
>>> @Thushara, Thanks for the info, will check what you have mentioned.
>>>
>>> Thanks,
>>>

 So you have to rethink the deployment and use a different database
 server.

 2. If ES has a tendency to perform too many database calls @ startup,
 - You can temporally eliminate that by controlling node start up order


 On Thu, Jul 14, 2016 at 12:04 PM, Rajith Vitharana 
 wrote:

> Hi,
>
> We faced the same issue in ESB latest when clustering enabled, with 4
> node cluster, number of connections goes to around 395 and gradually comes
> down to 20 or less, even with the exception happened(mysql having default
> max connections 151), it seems it gets stable to 20 or less connections
> after some time. Created a public jira to track this issue at [1]
>
> [1] - https://wso2.org/jira/browse/REGISTRY-3771
>
> Thanks,
>
> On Wed, Jul 13, 2016 at 4:42 PM, Dilini Gunatilake 
> wrote:
>
>> Hi All,
>>
>> I have set up a 4 node cluster for ES 2.1.0 Alpha2 pack with mysql
>> 5.7. When I started one store node I got an error [3].
>>
>> Then, I checked the connections in the mysql server and found that
>> the default number of max_connections (151) have been exceeded while the
>> store node is starting. But initially without starting any ES instances
>> there were only around 20 connections. So, what we observed was when
>> starting ES instances substantially high amount of connections will be
>> created and they will be gradually reduced after sometime. Is this an
>> acceptable behavior?
>>
>> Also, we could find the recommended max_connections to configure in
>> some products [1][2], but couldn't find anything for ES. So, what is the
>> recommended value for ES?
>> For the time being we will increase the max connections to 300 and
>> proceed with testing.
>>
>> Your earliest response is highly appreciated.
>>
>> [1] https://docs.wso2.com/display/AM200/Tuning+Performance
>> [2]
>> https://docs.wso2.com/display/Governance510/Performance+Tuning+Recommendations
>>
>> [3]
>>
>> [2016-07-13 07:50:40,014] ERROR
>> {org.wso2.carbon.registry.core.dataaccess.TransactionManager} -  Failed 
>> to
>> start new registry transaction.
>> com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException:
>> Could not create 

Re: [Dev] Add a default theme for gadgets in DS/DAS

2016-07-15 Thread Jerad Rutnam
Hi Udara,

Good point. Is there anyway we can look for the path
"portal\store\carbon.super\fs\theme\\css\gadget.css"
dynamically? Does shindig has any feature to achieve this?

Cheers!

On Fri, Jul 15, 2016 at 1:54 PM, Udara Rathnayake  wrote:

> Hi Jerad,
>
> One more thing, considering gadget generation as a one-time thing, how we
> are going to support dashboard view theme update functionality. As I
> remember we have a functionality to do this right now. So in that case
> gadgets need to aware of the current theme and update dynamically.
>
> On Fri, Jul 15, 2016 at 1:12 PM, Jerad Rutnam  wrote:
>
>> Hi Udara,
>>
>> Not the entire DS theme. But a theme for gadgets that will have a
>> consistent UI to match the default DS theme. So users can generate gadgets
>> without worrying about the look and feel of it.
>>
>> Because currently users have to style the gadget from the scratch once
>> they generate it using the Gadget Generate Wizard.
>>
>> Cheers!
>> Jerad
>>
>> On Fri, Jul 15, 2016 at 12:07 PM, Udara Rathnayake 
>> wrote:
>>
>>> are we going to inherit DS theme across gadgets?
>>>
>>>
>>> On Fri, Jul 15, 2016 at 11:14 AM, Jerad Rutnam  wrote:
>>>
 Hi Sinthuja,


 Just summarizing the offline discussion we had yesterday,

 So the basic idea is that, since we ship a default theme with the
 Dashboard Server. We should also add a default theme for precooked gadgets,
 that we ship with the Dashboard Server.

 And also this should apply to the gadgets that are generated by the
 Gadget Create Wizard. Then generated gadgets will have a default theme and
 gadget generator(user) does not has to worry about the styling of it,
 unless he/she wants a fully customized UI. We can have a configuration to
 disable this theme if anyone wants.

 If the default theme is enabled on gadgets, it should apply the default
 stylesheet for the gadgets along with the chart template core styles.

 Also there should be a gadget extension stylesheet available for the
 theme developers. So he/she can overwrite the default gadget styling +
 theme styling (e.g. "gadget.css", just like we have for dashboard and
 portal).


 Let me know the thought.


 Cheers!
 --
 *Jerad Rutnam*
 *Software Engineer*

 WSO2 Inc.
 lean | enterprise | middleware
 M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com

>>>
>>>
>>>
>>> --
>>> Regards,
>>> UdaraR
>>>
>>
>
>
> --
> Regards,
> UdaraR
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Equivalent OpenAM policy agent in WSO2 Identity Server?

2016-07-15 Thread Tri Vo Hoang
Dear all,

OpenAM provides a "Java EE Policy Agent", which is a PEP implementation (a
Servlet) to intercept requests and protect an application on the same
container. The nice thing is:

   - admin can control the agent from the central Identity Provider. For
   example, admin can tell the agent to map SAML assertions to a HTTP
   header/cookie/HTTP request params before passing the request to the
   application.

   - admin can choose if the agent allows request according to the decision
   in PDP, or authorization should be enforced through the container's Java EE
   security policies (which may be configured declaratively in the XML
   deployment descriptor of the protected application).

Do WSO2 Identity Provider have similar PEP agent implementation with the 2
features above?

Many thanks
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Add a default theme for gadgets in DS/DAS

2016-07-15 Thread Udara Rathnayake
Hi Jerad,

One more thing, considering gadget generation as a one-time thing, how we
are going to support dashboard view theme update functionality. As I
remember we have a functionality to do this right now. So in that case
gadgets need to aware of the current theme and update dynamically.

On Fri, Jul 15, 2016 at 1:12 PM, Jerad Rutnam  wrote:

> Hi Udara,
>
> Not the entire DS theme. But a theme for gadgets that will have a
> consistent UI to match the default DS theme. So users can generate gadgets
> without worrying about the look and feel of it.
>
> Because currently users have to style the gadget from the scratch once
> they generate it using the Gadget Generate Wizard.
>
> Cheers!
> Jerad
>
> On Fri, Jul 15, 2016 at 12:07 PM, Udara Rathnayake 
> wrote:
>
>> are we going to inherit DS theme across gadgets?
>>
>>
>> On Fri, Jul 15, 2016 at 11:14 AM, Jerad Rutnam  wrote:
>>
>>> Hi Sinthuja,
>>>
>>>
>>> Just summarizing the offline discussion we had yesterday,
>>>
>>> So the basic idea is that, since we ship a default theme with the
>>> Dashboard Server. We should also add a default theme for precooked gadgets,
>>> that we ship with the Dashboard Server.
>>>
>>> And also this should apply to the gadgets that are generated by the
>>> Gadget Create Wizard. Then generated gadgets will have a default theme and
>>> gadget generator(user) does not has to worry about the styling of it,
>>> unless he/she wants a fully customized UI. We can have a configuration to
>>> disable this theme if anyone wants.
>>>
>>> If the default theme is enabled on gadgets, it should apply the default
>>> stylesheet for the gadgets along with the chart template core styles.
>>>
>>> Also there should be a gadget extension stylesheet available for the
>>> theme developers. So he/she can overwrite the default gadget styling +
>>> theme styling (e.g. "gadget.css", just like we have for dashboard and
>>> portal).
>>>
>>>
>>> Let me know the thought.
>>>
>>>
>>> Cheers!
>>> --
>>> *Jerad Rutnam*
>>> *Software Engineer*
>>>
>>> WSO2 Inc.
>>> lean | enterprise | middleware
>>> M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
>>>
>>
>>
>>
>> --
>> Regards,
>> UdaraR
>>
>


-- 
Regards,
UdaraR
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting Developer Studio kernel updates for 4.1.0

2016-07-15 Thread Kavith Lokuhewage
Furthermore, please verify the tag.
https://github.com/wso2/developer-studio/tree/kernel.update_4.1.0.201607150652

Thanks,

*Kavith Lokuhewage*
Senior Software Engineer
WSO2 Inc. - http://wso2.com
lean . enterprise . middleware
Mobile - +94779145123
Linkedin   Twitter


On Fri, Jul 15, 2016 at 1:31 PM, Kavith Lokuhewage  wrote:

> Hi Viraj,
>
> Kernel update is temporally published at [1]. Please verify. After
> verification, we will publish this to product dist location for updates[ 2].
>
> Thanks,
>
> [1]
> http://builder1.us1.wso2.org/~developerstudio/developer-studio-kernel/4.1.0/kernel/updates/
> [2]
> http://product-dist.wso2.com/p2/developer-studio-kernel/4.1.0/kernel/updates/
>
> *Kavith Lokuhewage*
> Senior Software Engineer
> WSO2 Inc. - http://wso2.com
> lean . enterprise . middleware
> Mobile - +94779145123
> Linkedin 
> Twitter 
>
> On Fri, Jul 15, 2016 at 10:56 AM, Viraj Rajaguru  wrote:
>
>> Thanks Kavith !
>>
>> On Fri, Jul 15, 2016 at 10:53 AM, Kavith Lokuhewage 
>> wrote:
>>
>>> Hi Viraj,
>>>
>>> We are currently creating the updates and facing some issues with the
>>> builder. I will update you once the updates are successfully published.
>>>
>>> Thanks,
>>>
>>> *Kavith Lokuhewage*
>>> Senior Software Engineer
>>> WSO2 Inc. - http://wso2.com
>>> lean . enterprise . middleware
>>> Mobile - +94779145123
>>> Linkedin 
>>> Twitter 
>>>
>>> On Fri, Jul 15, 2016 at 10:43 AM, Viraj Rajaguru  wrote:
>>>
 Hi DevS kernel team,

 We are in the process of releasing ESB Tools 5.0.0-BETA-2. Can we have
 updates for DevS Kernel 4.1.0 with the fixes[1][2] for the DEVTOOLESB-57[3]
 ?

 Thanks,
 Viraj.

 [1] -
 https://github.com/wso2/developer-studio/commit/cd4ffb8ac54845b551136595939bc32879e31b10
 [2] -
 https://github.com/wso2/developer-studio/commit/24c28ffccaca3ab4019101d778cbd71dc9aaa48a
 [3] - https://wso2.org/jira/browse/DEVTOOLESB-576

 --
 Viraj Rajaguru
 Associate Technical Lead
 WSO2 Inc. : http://wso2.com

 Mobile: +94 77 3683068




>>>
>>
>>
>> --
>> Viraj Rajaguru
>> Associate Technical Lead
>> WSO2 Inc. : http://wso2.com
>>
>> Mobile: +94 77 3683068
>>
>>
>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting Developer Studio kernel updates for 4.1.0

2016-07-15 Thread Kavith Lokuhewage
Hi Viraj,

Kernel update is temporally published at [1]. Please verify. After
verification, we will publish this to product dist location for updates[ 2].

Thanks,

[1]
http://builder1.us1.wso2.org/~developerstudio/developer-studio-kernel/4.1.0/kernel/updates/
[2]
http://product-dist.wso2.com/p2/developer-studio-kernel/4.1.0/kernel/updates/

*Kavith Lokuhewage*
Senior Software Engineer
WSO2 Inc. - http://wso2.com
lean . enterprise . middleware
Mobile - +94779145123
Linkedin   Twitter


On Fri, Jul 15, 2016 at 10:56 AM, Viraj Rajaguru  wrote:

> Thanks Kavith !
>
> On Fri, Jul 15, 2016 at 10:53 AM, Kavith Lokuhewage 
> wrote:
>
>> Hi Viraj,
>>
>> We are currently creating the updates and facing some issues with the
>> builder. I will update you once the updates are successfully published.
>>
>> Thanks,
>>
>> *Kavith Lokuhewage*
>> Senior Software Engineer
>> WSO2 Inc. - http://wso2.com
>> lean . enterprise . middleware
>> Mobile - +94779145123
>> Linkedin 
>> Twitter 
>>
>> On Fri, Jul 15, 2016 at 10:43 AM, Viraj Rajaguru  wrote:
>>
>>> Hi DevS kernel team,
>>>
>>> We are in the process of releasing ESB Tools 5.0.0-BETA-2. Can we have
>>> updates for DevS Kernel 4.1.0 with the fixes[1][2] for the DEVTOOLESB-57[3]
>>> ?
>>>
>>> Thanks,
>>> Viraj.
>>>
>>> [1] -
>>> https://github.com/wso2/developer-studio/commit/cd4ffb8ac54845b551136595939bc32879e31b10
>>> [2] -
>>> https://github.com/wso2/developer-studio/commit/24c28ffccaca3ab4019101d778cbd71dc9aaa48a
>>> [3] - https://wso2.org/jira/browse/DEVTOOLESB-576
>>>
>>> --
>>> Viraj Rajaguru
>>> Associate Technical Lead
>>> WSO2 Inc. : http://wso2.com
>>>
>>> Mobile: +94 77 3683068
>>>
>>>
>>>
>>>
>>
>
>
> --
> Viraj Rajaguru
> Associate Technical Lead
> WSO2 Inc. : http://wso2.com
>
> Mobile: +94 77 3683068
>
>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES] Too many mysql connections when starting ES instances

2016-07-15 Thread Thushara Ranawaka
Hi Dilini,


On Thu, Jul 14, 2016 at 2:31 PM, Dilini Gunatilake  wrote:

> Hi,
>
> @Thushara,
> Thanks for the info. Any recommended number of max_connections to
> configure considering indexing with a high load etc? Then we can add those
> details in the docs to avoid future issues.
>

My personal recommendation,
Increase the mysql active connections to 350. Please note that this is
bounded to server specs.
Now start 2 servers at a time. Wait 10 mins before starting the other 2
WSO2 servers.
Or else you can always start 1 server at a time every 10 mins. Therefore it
will take 30 mins to start all 4 nodes.

Thanks,
Thushara.


>
> @Sumedha,
> I was able to start all the nodes because the number of connections
> reduces after some time.
>
> As Rajith mentioned, the concern is having that number of connections
> created just for a server startup having less than 25 assets.
>
> Thanks,
> Dilini
>
>
> On Thu, Jul 14, 2016 at 12:53 PM, Rajith Vitharana 
> wrote:
>
>> Hi,
>>
>> On Thu, Jul 14, 2016 at 12:44 PM, Sumedha Rubasinghe 
>> wrote:
>>
>>> Guys,
>>> Some food for thought.
>>>
>>> 1. A single MySQL Server has a globally defined max_connections figure
>>> (151 as Dilini mentioned)
>>>
>>> So on a clustered setup, when you point to a single MySQL Server from
>>> various WSO2 products, depending on no of keep alive connections specified,
>>> you will at some point will hit too many connections from server side @
>>> some point.
>>>
>> Yeah totally agree, but that much(395) is bit high AFAIU when just
>> starting up a server(without any load in 4 servers, and when it stabilize,
>> it only consumes less than 20 connections without load)
>>
>> @Thushara, Thanks for the info, will check what you have mentioned.
>>
>> Thanks,
>>
>>>
>>> So you have to rethink the deployment and use a different database
>>> server.
>>>
>>> 2. If ES has a tendency to perform too many database calls @ startup,
>>> - You can temporally eliminate that by controlling node start up order
>>>
>>>
>>> On Thu, Jul 14, 2016 at 12:04 PM, Rajith Vitharana 
>>> wrote:
>>>
 Hi,

 We faced the same issue in ESB latest when clustering enabled, with 4
 node cluster, number of connections goes to around 395 and gradually comes
 down to 20 or less, even with the exception happened(mysql having default
 max connections 151), it seems it gets stable to 20 or less connections
 after some time. Created a public jira to track this issue at [1]

 [1] - https://wso2.org/jira/browse/REGISTRY-3771

 Thanks,

 On Wed, Jul 13, 2016 at 4:42 PM, Dilini Gunatilake 
 wrote:

> Hi All,
>
> I have set up a 4 node cluster for ES 2.1.0 Alpha2 pack with mysql
> 5.7. When I started one store node I got an error [3].
>
> Then, I checked the connections in the mysql server and found that the
> default number of max_connections (151) have been exceeded while the store
> node is starting. But initially without starting any ES instances there
> were only around 20 connections. So, what we observed was when starting ES
> instances substantially high amount of connections will be created and 
> they
> will be gradually reduced after sometime. Is this an acceptable behavior?
>
> Also, we could find the recommended max_connections to configure in
> some products [1][2], but couldn't find anything for ES. So, what is the
> recommended value for ES?
> For the time being we will increase the max connections to 300 and
> proceed with testing.
>
> Your earliest response is highly appreciated.
>
> [1] https://docs.wso2.com/display/AM200/Tuning+Performance
> [2]
> https://docs.wso2.com/display/Governance510/Performance+Tuning+Recommendations
>
> [3]
>
> [2016-07-13 07:50:40,014] ERROR
> {org.wso2.carbon.registry.core.dataaccess.TransactionManager} -  Failed to
> start new registry transaction.
> com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException:
> Could not create connection to database server. Attempted reconnect 3
> times. Giving up.
> at sun.reflect.GeneratedConstructorAccessor107.newInstance(Unknown
> Source)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
> at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)
> at com.mysql.jdbc.Util.getInstance(Util.java:387)
> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:917)
> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:896)
> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:885)
> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:860)
> at
> com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2165)

[Dev] Carbon-mediation 4.6.1 Released

2016-07-15 Thread Jagath Sisirakumara Ariyarathne
Hi All,

Carbon-mediation 4.6.1 Released.

org.wso2.carbon.mediation
carbon-mediation
4.6.1

Thanks.
-- 
Jagath Ariyarathne
Technical Lead
WSO2 Inc.  http://wso2.com/
Email: jaga...@wso2.com
Mob  : +94 77 386 7048
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Developer Studio 4.2.0 RC

2016-07-15 Thread Awanthika Senarath
Hello Devs,

We are pleased to announce the WSO2 Developer Studio 4.2.0 RC vote.

P2 repository of WSO2 developer Studio Kernle 4.2.0 is available here
.
Source
and Tag Location to be voted upon is available here

.

With this release WSO2 Developer Studio kernel moves into RCP mode further
reducing the size.

We have also introduced a web base dashboard for Developer Studio to
enhance user experience.

Also the XULRunner is embedded to maintain unbroken user experience in WSO2
Developer Studio for windows when using web technologies.

We have also fixed several bugs

[1] https://wso2.org/jira/browse/DEVTOOLESB-441
[2] https://wso2.org/jira/browse/TOOLS-3423

Please vote as follows.


   1. [+] Stable - go ahead and release
   2. [-]  Broken - do not release (please explain why)



Awanthika Senarath
Senior Software Engineer, WSO2 Inc.
Mobile: +94717681791
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 MSF4J 2.0.0 RC2

2016-07-15 Thread Lakmal Warusawithana
+1.

I have build from v2.0.0-rc2 and tested petstore sample (without analytics)
and found no issues.

thanks

On Thu, Jul 14, 2016 at 6:26 PM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi Devs,
>
> This is the 2nd Release Candidate of  the WSO2 MSF4J (Microservices
> Framework for Java) 2.0.0.
>
> Please download, test the framework and vote. Vote will be open for 72
> hours or as needed.
> Refer to github readme for guides.
>
> *​Source and binary distribution files:*
> *https://github.com/wso2/msf4j/releases/tag/v2.0.0-rc2
> *
>
> *Maven staging repository:*
> https://maven.wso2.org/nexus/content/repositories/orgwso2msf4j-1002
>
> *The tag to be voted upon:*
> *https://github.com/wso2/msf4j/tree/v2.0.0-rc2
> *
>
>
>
> [ ] Broken - Do not release (explain why)
> [ ] Stable  - Go ahead and release
>
> Thank you,
> AS/Carbon Team
>
> --
> Thusitha Dayaratne
> Software Engineer
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> Mobile  +94712756809
> Blog  alokayasoya.blogspot.com
> Abouthttp://about.me/thusithathilina
>
>


-- 
Lakmal Warusawithana
Director - Cloud Architecture; WSO2 Inc.
Mobile : +94714289692
Blog : http://lakmalsview.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev