You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by Vishanth Balasubramaniam <vi...@wso2.com> on 2015/09/08 06:41:02 UTC

Issue in Stat publishing through Mock IaaS

Hi,

In the mock-iaas xml file, we define set of sample values by cartridge type
for memory consumption and load average. In the MockHealthStatisticNotifier
class in master branch gives mockMemberContext.getServiceName() as the
service name with the tenant id (e.g - php~-1234).

We can either change the cartridge type in the mock iaas xml file from
'php' to 'php~-1234' or we can split the string and get only the service
name in the code. Which do you think is the right approach?

Regards,
Vishanth

-- 
*Vishanth Balasubramaniam*
Committer & PMC Member, Apache Stratos,
Software Engineer, WSO2 Inc.; http://wso2.com

mobile: *+94771737718*
about me: *http://about.me/vishanth <http://about.me/vishanth>*

Re: Issue in Stat publishing through Mock IaaS

Posted by Gayan Gunarathne <ga...@wso2.com>.
It is comes as a <cartridge_type>~<uuid>. This is to make a service name
unique across all the tenants. We can't use only the uuid for this purpose
as some python plugins may use the cartridge_type for his own
configurations.

I think we may need to split the string and get only the cartridge type for
this purpose.Now I have done this in the master branch.


Thanks,
Gayan

On Tue, Sep 8, 2015 at 10:11 AM, Vishanth Balasubramaniam <
vishanthb@wso2.com> wrote:

> Hi,
>
> In the mock-iaas xml file, we define set of sample values by cartridge
> type for memory consumption and load average. In the
> MockHealthStatisticNotifier class in master branch gives mockMemberContext
> .getServiceName() as the service name with the tenant id (e.g - php~-1234)
> .
>
> We can either change the cartridge type in the mock iaas xml file from
> 'php' to 'php~-1234' or we can split the string and get only the service
> name in the code. Which do you think is the right approach?
>
> Regards,
> Vishanth
>
> --
> *Vishanth Balasubramaniam*
> Committer & PMC Member, Apache Stratos,
> Software Engineer, WSO2 Inc.; http://wso2.com
>
> mobile: *+94771737718*
> about me: *http://about.me/vishanth <http://about.me/vishanth>*
>



-- 

Gayan Gunarathne
Technical Lead, WSO2 Inc. (http://wso2.com)
Committer & PMC Member, Apache Stratos
email : gayang@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>