Re: [Dev] [Mesos artifacts] Use Docker --dns and --dns-search for hostname DNS resolution

2016-08-23 Thread Isuru Haththotuwa
+1 to the idea. Using service ports becomes unmanageable when there are
multiple products with lots of ports exposed.

AFAIU Udara has a point as well. The routing inside mesos-marathon
framework will work seamlessly with this. However to access it from the
outside (browser, etc.), we would need to add the DNS server we are running
in mesos as a nameserver in the local machine, or else simply add a
/etc/hosts entry.

On Tue, Aug 23, 2016 at 10:28 AM, Akila Ravihansa Perera  wrote:

> Hi Udara,
>
> My idea was to map all wso2 server hostnames to Marathon-LB, not to other
> containers directly. We should route all traffic via Marathon-LB.
> We can always use "add-host" properties to add entries to /etc/hosts but
> that looks like a hack. Using DNS is a much cleaner and flexible approach.
> We can always run DNS server as another container [1].
>
> [1] https://github.com/skynetservices/skydns
>
> Thanks.
>
> On Tue, Aug 23, 2016 at 10:18 AM, Udara Liyanage  wrote:
>
>> Hi,
>>
>> Container to contianer communication can be done by this as long as we
>> run a dns server.
>> However when users/browser wants to access a service running on a
>> container (say ESB maagement console) don't they have to come via marathon
>> lb? Or else do the they have to add our dns server to their resolve.conf ?
>>
>> How about load balancing features such as sticky sessions and round
>> robbing load balancing. Round robbing load balancing can be done using DNS
>> server itself, but not sure about sticky session.
>>
>>
>> On Tue, Aug 23, 2016 at 10:07 AM, Akila Ravihansa Perera <
>> raviha...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> Currently we are using Marathon-LB hostname and service ports in product
>>> configuration when deploying on DC/OS (Apache Mesos). We can set the
>>> --dns-search and --dns properties and set a DOMAIN and DNS server in
>>> /etc/resolve.conf to resolve hostnames which are not found in /etc/hosts
>>> [1].
>>>
>>> This is a much cleaner approach than using Marathon-LB hostname and
>>> service ports. WDYT?
>>>
>>>
>>> [1] https://docs.docker.com/v1.7/articles/networking/#dns
>>>
>>> Thanks.
>>>
>>> --
>>> Akila Ravihansa Perera
>>> WSO2 Inc.;  http://wso2.com/
>>>
>>> Blog: http://ravihansa3000.blogspot.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> Udara Liyanage
>> Software Engineer
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> Blog: http://udaraliyanage.wordpress.com
>>
>
>
>
> --
> Akila Ravihansa Perera
> WSO2 Inc.;  http://wso2.com/
>
> Blog: http://ravihansa3000.blogspot.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks and Regards,

Isuru H.
+94 716 358 048* *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Mesos artifacts] Use Docker --dns and --dns-search for hostname DNS resolution

2016-08-22 Thread Akila Ravihansa Perera
Hi Udara,

My idea was to map all wso2 server hostnames to Marathon-LB, not to other
containers directly. We should route all traffic via Marathon-LB.
We can always use "add-host" properties to add entries to /etc/hosts but
that looks like a hack. Using DNS is a much cleaner and flexible approach.
We can always run DNS server as another container [1].

[1] https://github.com/skynetservices/skydns

Thanks.

On Tue, Aug 23, 2016 at 10:18 AM, Udara Liyanage  wrote:

> Hi,
>
> Container to contianer communication can be done by this as long as we run
> a dns server.
> However when users/browser wants to access a service running on a
> container (say ESB maagement console) don't they have to come via marathon
> lb? Or else do the they have to add our dns server to their resolve.conf ?
>
> How about load balancing features such as sticky sessions and round
> robbing load balancing. Round robbing load balancing can be done using DNS
> server itself, but not sure about sticky session.
>
>
> On Tue, Aug 23, 2016 at 10:07 AM, Akila Ravihansa Perera <
> raviha...@wso2.com> wrote:
>
>> Hi,
>>
>> Currently we are using Marathon-LB hostname and service ports in product
>> configuration when deploying on DC/OS (Apache Mesos). We can set the
>> --dns-search and --dns properties and set a DOMAIN and DNS server in
>> /etc/resolve.conf to resolve hostnames which are not found in /etc/hosts
>> [1].
>>
>> This is a much cleaner approach than using Marathon-LB hostname and
>> service ports. WDYT?
>>
>>
>> [1] https://docs.docker.com/v1.7/articles/networking/#dns
>>
>> Thanks.
>>
>> --
>> Akila Ravihansa Perera
>> WSO2 Inc.;  http://wso2.com/
>>
>> Blog: http://ravihansa3000.blogspot.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Udara Liyanage
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> Blog: http://udaraliyanage.wordpress.com
>



-- 
Akila Ravihansa Perera
WSO2 Inc.;  http://wso2.com/

Blog: http://ravihansa3000.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Mesos artifacts] Use Docker --dns and --dns-search for hostname DNS resolution

2016-08-22 Thread Udara Liyanage
Hi,

Container to contianer communication can be done by this as long as we run
a dns server.
However when users/browser wants to access a service running on a container
(say ESB maagement console) don't they have to come via marathon lb? Or
else do the they have to add our dns server to their resolve.conf ?

How about load balancing features such as sticky sessions and round robbing
load balancing. Round robbing load balancing can be done using DNS server
itself, but not sure about sticky session.


On Tue, Aug 23, 2016 at 10:07 AM, Akila Ravihansa Perera  wrote:

> Hi,
>
> Currently we are using Marathon-LB hostname and service ports in product
> configuration when deploying on DC/OS (Apache Mesos). We can set the
> --dns-search and --dns properties and set a DOMAIN and DNS server in
> /etc/resolve.conf to resolve hostnames which are not found in /etc/hosts
> [1].
>
> This is a much cleaner approach than using Marathon-LB hostname and
> service ports. WDYT?
>
>
> [1] https://docs.docker.com/v1.7/articles/networking/#dns
>
> Thanks.
>
> --
> Akila Ravihansa Perera
> WSO2 Inc.;  http://wso2.com/
>
> Blog: http://ravihansa3000.blogspot.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

Blog: http://udaraliyanage.wordpress.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev