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 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 and
> get the IP addresses of its cluster members and pass those parameters to
> the start-servers extension. This extension script will then write those IP
> addresses into the axis2.xml and start the WSO2 product server (for eg -
> WSO2 AS). Cartridge agent will only take IP addresses of WKA members by
> looking at the "PRIMARY: true" member property in the topology.
>
>
>
> On Sun, Aug 10, 2014 at 11:21 PM, Kasun Gajasinghe <kas...@wso2.com>
> 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 console. Ie. The mgt console need to show WSDL urls of services
>> etc. wrt to worker node. But even in that case, manager do not access the
>> worker nodes. So, you do not have to add any host-to-ip mapping there
>> either.
>>
>> In a cluster, the nodes communicate with each other via cluster messages.
>> All the nodes need to be aware of each other for this to happen. This is
>> configured via the underlying clustering configuration in axis2.xml. We
>> usually use IPs in that case (for localMemberHost). But if you set host
>> names for that, then you need to map the host names to ips.
>>
>
Got it cleared now. Thanks Kasun.

>
>> KasunG
>>
>>
>> On Sun, Aug 10, 2014 at 12:12 PM, Nirmal Fernando <nir...@wso2.com>
>> wrote:
>>
>>> 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 AM, Rajkumar Rajaratnam <
>>> rajkum...@wso2.com> wrote:
>>>
>>>>
>>>>
>>>>
>>>> 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
>>>>
>>>>
>>>
>>>
>>> --
>>>
>>> Thanks & regards,
>>> Nirmal
>>>
>>> Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
>>> Mobile: +94715779733
>>> Blog: http://nirmalfdo.blogspot.com/
>>>
>>>
>>>
>>
>>
>> --
>>
>> *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
>>
>>
>>
>> _______________________________________________
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Akila Ravihansa Perera
> Software Engineer
> WSO2 Inc.
> http://wso2.com
>
> Phone: +94 77 64 154 38
> Blog: http://ravihansa3000.blogspot.com
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajkumar Rajaratnam
Software Engineer | WSO2, Inc.
Mobile +94777568639 | +94783498120
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to