On Sun, Aug 10, 2014 at 8:35 AM, Kasun Gajasinghe <kas...@wso2.com> wrote:
> > Shouldn't the domain to IP mapping be located in the client who is > accessing these servers? So, MgtHostName and HostName do not need to > configured in worker/manager nodes, right? > I am pretty sure that I am missing something here :) If we map at client side, client knows about hosts and can access directly using host names. If we don't map in worker node, how a worker node knows about manager node? If we use manager node's IP instead of its host name in worker node's configuration files, then we don't have to map it in worker node. But what if we are using manager node's host name (mgt.esb.wso2.com) in worker node's configuration files? Then we should map it right? Thanks. > > You will have to set the mapping for MySQL DB though if the DNS resolvers > are not available in the internal network. > > > On Sun, Aug 10, 2014 at 8:14 AM, Rajkumar Rajaratnam <rajkum...@wso2.com> > wrote: > >> >> >> >> On Sun, Aug 10, 2014 at 8:08 AM, Udara Liyanage <ud...@wso2.com> wrote: >> >>> Hi Raj, >>> >>> What I meant is you have to add those host entries into the your machine >>> when you access mgt.as.wso2.com. >>> >>> Worker nodes should have those host entries I guess. boot.sh won't be >>> able to add the host entries to the worker nodes since worker nodes are >>> dynamically spawned and runs on different machines.Host entries may be >>> added by cartridge agent or puppet >>> >> >> Yes this is what exactly I am searching for. I am automating hadoop >> clustering. I wanted to know how we can map IPs of dynamically spawned >> instances. I couldn't find such mapping in puppet scripts also. >> >> Thanks. >> >>> >>> >>> >>> On Sun, Aug 10, 2014 at 7:56 AM, Rajkumar Rajaratnam <rajkum...@wso2.com >>> > wrote: >>> >>>> Hi Udara, >>>> >>>> Thanks for the response. >>>> >>>> Sorry if my understanding is wrong. >>>> >>>> [1] says we have to map following entries in *worker node's* >>>> /etc/hosts file. Don't we have to that? >>>> >>>> <MYSQL-DB-SERVER-IP> carbondb.mysql-wso2.com >>>> <AS-Manager-IP> mgt.as.wso2.com >>>> >>>> 1. https://docs.wso2.com/display/CLUSTER420/Configuring+the+Worker+Node >>>> >>>> Thanks. >>>> >>>> >>>> On Sun, Aug 10, 2014 at 7:05 AM, Udara Liyanage <ud...@wso2.com> wrote: >>>> >>>>> Hi, >>>>> >>>>> AS workers and managers are in different machines from the machine you >>>>> run PP components. So boot.sh won't have those snippets. >>>>> Worker nodes should know only about wka member. >>>>> >>>>> When you access mgt.as.wso2.com from your laptop you should manually >>>>> add them to your laptop's hosts file. >>>>> Mgt.as.wso2.com LB-public-ip >>>>> >>>>> >>>>> >>>>> Touched, not typed. Erroneous words are a feature, not a typo. >>>>> On Aug 9, 2014 11:55 PM, "Rajkumar Rajaratnam" <rajkum...@wso2.com> >>>>> wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> When we do worker-manager cluster, we need to map host names to >>>>>> actual IPs in both worker and manager nodes' /etc/hosts files. >>>>>> >>>>>> For example, if we are doing application server worker-manager >>>>>> clustering, worker nodes' /etc/hosts file should have the following >>>>>> entries, >>>>>> >>>>>> <MYSQL-DB-SERVER-IP> carbondb.mysql-wso2.com >>>>>> <AS-Manager-IP> mgt.as.wso2.com >>>>>> >>>>>> Where are we doing this in P-PaaS start up script (boot.sh) ? >>>>>> >>>>>> I couldn't find any snippet doing such host name mapping in boot.sh. >>>>>> Can someone point it out please? >>>>>> >>>>>> Thanks. >>>>>> >>>>>> -- >>>>>> Rajkumar Rajaratnam >>>>>> Software Engineer | WSO2, Inc. >>>>>> Mobile +94777568639 | +94783498120 >>>>>> >>>>>> _______________________________________________ >>>>>> Dev mailing list >>>>>> Dev@wso2.org >>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>> >>>>>> >>>> >>>> >>>> -- >>>> Rajkumar Rajaratnam >>>> Software Engineer | WSO2, Inc. >>>> Mobile +94777568639 | +94783498120 >>>> >>> >>> >>> >>> -- >>> >>> Udara Liyanage >>> Software Engineer >>> WSO2, Inc.: http://wso2.com >>> lean. enterprise. middleware >>> >>> web: http://udaraliyanage.wordpress.com >>> phone: +94 71 443 6897 >>> >> >> >> >> -- >> Rajkumar Rajaratnam >> Software Engineer | WSO2, Inc. >> Mobile +94777568639 | +94783498120 >> >> _______________________________________________ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > > *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. > email: kasung AT spamfree wso2.com > linked-in: http://lk.linkedin.com/in/gajasinghe > blog: http://kasunbg.org > > > -- Rajkumar Rajaratnam Software Engineer | WSO2, Inc. Mobile +94777568639 | +94783498120
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev