Re: [Dev] [P-PaaS] Mapping host names in worker-manager clustering

2014-08-10 Thread Nirmal Fernando
On Mon, Aug 11, 2014 at 9:27 AM, Nirmal Fernando wrote: > > > > On Sun, Aug 10, 2014 at 11:21 PM, Kasun Gajasinghe > wrote: > >> >> There is no need for the worker nodes to know about the manager node for >> the purpose that you are talking about. And, the manager nodes do need to >> know from w

Re: [Dev] [P-PaaS] Mapping host names in worker-manager clustering

2014-08-10 Thread Nirmal Fernando
On Sun, Aug 10, 2014 at 11:21 PM, Kasun Gajasinghe wrote: > > There is no need for the worker nodes to know about the manager node for > the purpose that you are talking about. And, the manager nodes do need to > know from where the worker cluster can be accessed because of the > management conso

Re: [Dev] [P-PaaS] Mapping host names in worker-manager clustering

2014-08-10 Thread Rajkumar Rajaratnam
On Mon, Aug 11, 2014 at 9:02 AM, Rajkumar Rajaratnam wrote: > > > > On Mon, Aug 11, 2014 at 1:23 AM, Akila Ravihansa Perera < > raviha...@wso2.com> wrote: > >> Hi Raj, >> >> As Kasun pointed out, you don't need to map hostname to IP in /etc/hosts >> since we are using IP addresses for WKA configu

Re: [Dev] [P-PaaS] Mapping host names in worker-manager clustering

2014-08-10 Thread Rajkumar Rajaratnam
On Mon, Aug 11, 2014 at 1:23 AM, Akila Ravihansa Perera wrote: > Hi Raj, > > As Kasun pointed out, you don't need to map hostname to IP in /etc/hosts > since we are using IP addresses for WKA configuration in PPaaS. This is > done by the Stratos cartridge agent (in start-servers.sh agent extensio

Re: [Dev] [P-PaaS] Mapping host names in worker-manager clustering

2014-08-10 Thread Akila Ravihansa Perera
Hi Raj, As Kasun pointed out, you don't need to map hostname to IP in /etc/hosts since we are using IP addresses for WKA configuration in PPaaS. This is done by the Stratos cartridge agent (in start-servers.sh agent extension). What happens is cartridge agent will keep listening to topology topic

Re: [Dev] [P-PaaS] Mapping host names in worker-manager clustering

2014-08-10 Thread Kasun Gajasinghe
There is no need for the worker nodes to know about the manager node for the purpose that you are talking about. And, the manager nodes do need to know from where the worker cluster can be accessed because of the management console. Ie. The mgt console need to show WSDL urls of services etc. wrt to

Re: [Dev] [P-PaaS] Mapping host names in worker-manager clustering

2014-08-09 Thread Nirmal Fernando
Hi Raj, AFAIK these are done at one of the extensions of Agent (member activated AFAIR). Manager nodes do need to know about worker cluster, hence you need to map the host name of worker cluster to LB. But worker cluster doesn't need to know about Management node. On Sun, Aug 10, 2014 at 11:53

[Dev] [P-PaaS] Mapping host names in worker-manager clustering

2014-08-09 Thread Rajkumar Rajaratnam
On Sun, Aug 10, 2014 at 8:35 AM, Kasun Gajasinghe 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

Re: [Dev] [P-PaaS] Mapping host names in worker-manager clustering

2014-08-09 Thread Kasun Gajasinghe
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? You will have to set the mapping for MySQL DB though if the DNS resolvers are not available in the internal network.

Re: [Dev] [P-PaaS] Mapping host names in worker-manager clustering

2014-08-09 Thread Rajkumar Rajaratnam
On Sun, Aug 10, 2014 at 8:08 AM, Udara Liyanage 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 n

Re: [Dev] [P-PaaS] Mapping host names in worker-manager clustering

2014-08-09 Thread Udara Liyanage
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

Re: [Dev] [P-PaaS] Mapping host names in worker-manager clustering

2014-08-09 Thread Rajkumar Rajaratnam
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? carbondb.mysql-wso2.com mgt.as.wso2.com 1. https://docs.wso2.com/display/CLUSTER420/Configuring+the+Worker+Node Thanks.

Re: [Dev] [P-PaaS] Mapping host names in worker-manager clustering

2014-08-09 Thread Udara Liyanage
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.wso

[Dev] [P-PaaS] Mapping host names in worker-manager clustering

2014-08-09 Thread Rajkumar Rajaratnam
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, carbondb.mysql-wso2.com