Hi udara, In order to do that we have poll time to time until that IP is come to that topology. It may be unnessary calls.
As we discussed with Imesh, we have to set this jndi property to system variable for each enviorenment before start listener to that environment. There is hard coded of this jndi property file in topology listener. So if there is way to pass configs to initialize the connection when we start listner , it will be easy to do this. @Imesh, WDYT ? harshat@mobile On Nov 11, 2014 9:22 AM, "Udara Liyanage" <ud...@wso2.com> wrote: > Hi, > > Since you know the subscription alias, you can call Stratos REST API and > get the IP of the instance. Is it a possible solution? > > > > Touched, not typed. Erroneous words are a feature, not a typo. > On Nov 11, 2014 8:13 PM, "Anuruddha Premalal" <anurud...@wso2.com> wrote: > >> Hi, >> >> Now in appfactory developer setup, we are using three single JVM >> private-paases which have separate activemqs running on the same node with >> port offsets. Appfactory use stratos messaging component to listen to >> topology, this component gets the topic url from a jndi property file. >> >> This cause an issue where we cannot listen to topology events from three >> different private-paas (dev, test, prod). This affects to single tenant >> applications (php , .net) 'cause we are constructing the application url by >> getting the ipaddress of application cartridge from the topology. >> >> Any ideas on resolving this? >> >> >> On Tue, Nov 4, 2014 at 11:33 AM, Harsha Thirimanna <hars...@wso2.com> >> wrote: >> >>> Hi Udara, >>> >>> We have written our own AS puppet scripts for the cartridges. >>> >>> >>> *Harsha Thirimanna* >>> Senior Software Engineer; WSO2, Inc.; http://wso2.com >>> * <http://www.apache.org/>* >>> *email: **hars...@wso2.com* <az...@wso2.com>* cell: +94 71 5186770 , >>> +94 * >>> *774617784twitter: **http://twitter.com/ >>> <http://twitter.com/afkham_azeez>* >>> *harshathirimannlinked-in: **http: >>> <http://lk.linkedin.com/in/afkhamazeez>**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122 >>> <http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122>* >>> >>> *Lean . Enterprise . Middleware* >>> >>> >>> On Tue, Nov 4, 2014 at 11:26 AM, Udara Liyanage <ud...@wso2.com> wrote: >>> >>>> Hi, >>>> >>>> The advantage of having puppet is you can do configurations easilly and >>>> you can create a single base image and use for all cartridges. WSO2 AS, PHP >>>> puppet scripts are already written, you can reuse them >>>> >>>> On Tue, Nov 4, 2014 at 10:51 AM, Anuruddha Premalal <anurud...@wso2.com >>>> > wrote: >>>> >>>>> Hi All, >>>>> >>>>> Yes we are using a single JVM stratos. >>>>> >>>>> Current AF cartridges get Application server packs through *wget* >>>>> while spawning the instance. Shall we move to puppet instead?. If so >>>>> we'll >>>>> be modifying and provisioning new cartridges for php and appservers. >>>>> >>>>> >>>>> On Tue, Nov 4, 2014 at 3:34 AM, Dimuthu Leelarathne <dimut...@wso2.com >>>>> > wrote: >>>>> >>>>>> Hi all, >>>>>> >>>>>> At the startos side we have to use single JVMs to make our 8GB target >>>>>> a reality. Are we using single JVM stratots? If not we need to change >>>>>> that. >>>>>> >>>>>> @Udara - Can we have one puppet master with 3 envs? >>>>>> >>>>>> thanks, >>>>>> dimuthu >>>>>> >>>>>> On Sun, Nov 2, 2014 at 8:07 PM, Udara Liyanage <ud...@wso2.com> >>>>>> wrote: >>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> Are you going to have three puppet masters, one puppet master for >>>>>>> each env? >>>>>>> >>>>>>> You need to install three ActiveMQ servers in the machine. [1] may >>>>>>> help you to guide on that. Run boot.sh without "-s" option, otherwise it >>>>>>> tries to install ActiveMQ. Anyhow you need to parameterized (or edit >>>>>>> before >>>>>>> servers starting up) ActiveMQ Ip and Port >>>>>>> >>>>>>> >>>>>>> [1] >>>>>>> http://udaraliyanage.wordpress.com/2014/02/05/start-multiple-activemq-brokers-in-the-same-server/ >>>>>>> >>>>>>> >>>>>>> >>>>>>> Touched, not typed. Erroneous words are a feature, not a typo. >>>>>>> On Oct 31, 2014 12:04 PM, "Anuruddha Premalal" <anurud...@wso2.com> >>>>>>> wrote: >>>>>>> > >>>>>>> > Hi, >>>>>>> > >>>>>>> > I'm working on making the appfactory puppet scripts to be able to >>>>>>> setup in a single node. >>>>>>> > >>>>>>> > Problem >>>>>>> > >>>>>>> > Current puppet scripts can be used (in a single run) to do a >>>>>>> distributed setup where all app-factory related servers setup in >>>>>>> different >>>>>>> nodes. In single node setup, we cannot reference the same resource more >>>>>>> than once in puppet. >>>>>>> > >>>>>>> > The other challenge is AF needs three private-paases and current >>>>>>> paas scripts are written with the focus of single node deployment, >>>>>>> hence it >>>>>>> lacks some port offset configs. >>>>>>> > >>>>>>> > Solution >>>>>>> > >>>>>>> > Idea is to create a developer setup of Appfactory in a single run >>>>>>> with minimal effort using puppet. >>>>>>> > To overcome this resource conflict we are going to use a bash >>>>>>> script to run puppet agent iteratively changing the hostname/certname. >>>>>>> That >>>>>>> way it will ensure appfactory node first and then the build server node >>>>>>> and >>>>>>> so on. >>>>>>> > >>>>>>> > For private-pass installation we are going to parameterise the >>>>>>> entire setup with all the needed port offsets and use the puppet as >>>>>>> explained above. >>>>>>> >>>>>>> can't we have another offset in puppet like privatePaasOffSet. This >>>>>>> offset is parameterized. So a normal port >>>>>>> > >>>>>>> > Regards, >>>>>>> > -- >>>>>>> > Anuruddha Premalal >>>>>>> > Software Eng. | WSO2 Inc. >>>>>>> > Mobile : +94710461070 >>>>>>> > Web site : www.regilandvalley.com >>>>>>> > >>>>>>> > >>>>>>> > _______________________________________________ >>>>>>> > Architecture mailing list >>>>>>> > Architecture@wso2.org >>>>>>> > https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >>>>>>> > >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Architecture mailing list >>>>>>> Architecture@wso2.org >>>>>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Dimuthu Leelarathne >>>>>> Architect & Product Lead of App Factory >>>>>> >>>>>> WSO2, Inc. (http://wso2.com) >>>>>> email: dimut...@wso2.com >>>>>> Mobile : 0773661935 >>>>>> >>>>>> Lean . Enterprise . Middleware >>>>>> >>>>>> _______________________________________________ >>>>>> Architecture mailing list >>>>>> Architecture@wso2.org >>>>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> *Anuruddha Premalal* >>>>> Software Eng. | WSO2 Inc. >>>>> Mobile : +94710461070 >>>>> Web site : www.regilandvalley.com >>>>> >>>>> >>>>> _______________________________________________ >>>>> Architecture mailing list >>>>> Architecture@wso2.org >>>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >>>>> >>>>> >>>> >>>> >>>> -- >>>> >>>> Udara Liyanage >>>> Software Engineer >>>> WSO2, Inc.: http://wso2.com >>>> lean. enterprise. middleware >>>> >>>> web: http://udaraliyanage.wordpress.com >>>> phone: +94 71 443 6897 >>>> >>>> _______________________________________________ >>>> Architecture mailing list >>>> Architecture@wso2.org >>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >>>> >>>> >>> >>> _______________________________________________ >>> Architecture mailing list >>> Architecture@wso2.org >>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >>> >>> >> >> >> -- >> *Anuruddha Premalal* >> Software Eng. | WSO2 Inc. >> Mobile : +94710461070 >> Web site : www.regilandvalley.com >> >> >> _______________________________________________ >> Architecture mailing list >> Architecture@wso2.org >> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >> >> > _______________________________________________ > Architecture mailing list > Architecture@wso2.org > https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture > >
_______________________________________________ Architecture mailing list Architecture@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture