Hi Dimuthu,
Thanks, I will follow the instructions.
Sent from Windows phone
-----Original Message-----
From: "Dimuthu Leelarathne" <[email protected]>
Sent: 8/29/2014 15:25
To: "Madhawa Bandara" <[email protected]>
Cc: "WSO2 Developers' List" <[email protected]>; "Lakmal Warusawithana"
<[email protected]>; "Sajith Kariyawasam" <[email protected]>; "Ramith Jayasinghe"
<[email protected]>
Subject: Re: Retrieving the IP/IPs for single tenant cartridge intances
Hi Madhawa and All,
I have discussed with the Stratos team and provided a PR for master in Apache.
Meanwhile I have done the same fix in this GitHub branch[1] for Stratos 4.0.0.
So now you can retrieve the end point. Here are the steps.
1) Build the GitHub branch with branch id STRATOS762.
2) Replace the following bundles in our dev setup in Stratos Mangaer for all 3
environments. Update the scripts.
org.apache.stratos.rest.endpoint
org.apache.stratos.manager
3) Now you can retrieve member cluster id and lb cluster id from
/cartridge/info/{subscriptionAlias}
4) Write a MemberActivated listener for Stratos
5) When you receive the MembereActivated event of the clusterId save it in the
RXT
Whoa! We are done with retrieving the IP.
thanks,
dimuthu
[1]https://github.com/muthulee/private-paas/tree/STRATOS762
On Tue, Aug 19, 2014 at 12:15 PM, Madhawa Bandara <[email protected]> wrote:
Hi,
Assume that an application subscribes to a PHP cartridge using the
'subscription' call in Stratos REST API [1].
How can I retrieve the IP of the spawned instance/instances using the Stratos
REST API?
[1] -
https://cwiki.apache.org/confluence/display/STRATOS/4.0.0+Subscribing+to+a+Cartridge
THanks.
--
Regards,
Madhawa Bandara
Software Engineer
WSO2, Inc.
lean.enterprise.middleware
Mobile - +94777487726
Blog - classdeffound.blogspot.com
--
Dimuthu Leelarathne
Architect & Product Lead of App Factory
WSO2, Inc. (http://wso2.com)
email: [email protected]
Mobile : 0773661935
Lean . Enterprise . Middleware_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev