Hi Imesh,

On Tue, Jul 12, 2016 at 3:13 PM, Imesh Gunaratne <im...@wso2.com> wrote:

> On Tue, Jul 12, 2016 at 2:02 PM, Anuruddha Liyanarachchi <
> anurudd...@wso2.com> wrote:
>
>> Hi,
>>
>> I have configured cookie based sticky sessions with marathon-lb for wso2
>> servers using JSESSIONID. The following labels are required to generate the
>> correct ha-proxy config values and should be passed in the application
>> definition.
>>
>> "labels": {
>>     "HAPROXY_1_GROUP": "marathon-lb",
>>     "HAPROXY_2_GROUP": "marathon-lb",
>>     "HAPROXY_2_BACKEND_SERVER_OPTIONS": "  server {serverName}
>> {host_ipv4}:{port}{cookieOptions} ssl verify none \n",
>>
>
> A production deployment would need SSL verification enabled. Therefore, we
> might need to clearly mentioned that it in the documentation/README.md
> files.​
>

Yes. This require building the marathon-lb docker image with pre-loaded
cert files [1].
+1 for documenting this in README.md.


>
>
>>     "HAPROXY_2_BACKEND_STICKY_OPTIONS": "  cookie JSESSIONID prefix
>> nocache \n",
>>     "HAPROXY_2_STICKY": "true",
>>     "HAPROXY_2_SSL_CERT": "/etc/ssl/cert.pem",
>>
>>     "HAPROXY_2_MODE": "http"
>>   },
>>
>>
> ​We would need to explain what n means in HAPROXY_{n}_ labels and how to
> apply this to a specific set of ports.
>
​
>
>> Shall we add these labels to our mesos artifacts to enable sticky session
>> with 9443 port ?
>>
>> ​Yes please, will add this to all the management console/UI transports in
> all Marathon applications.
>

The changes are added with commit [2].

[1]
https://mesosphere.com/blog/2015/12/13/service-discovery-and-load-balancing-with-dcos-and-marathon-lb-part-2/
[2]
https://github.com/wso2/mesos-artifacts/commit/c40f1ee74f1ac1c4b17eda9f0aff8311ec09e997

Thanks​
>
>
>>
>> [1] https://github.com/mesosphere/marathon-lb/blob/master/Longhelp.md
>>
>> --
>> *Thanks and Regards,*
>> Anuruddha Lanka Liyanarachchi
>> Software Engineer - WSO2
>> Mobile : +94 (0) 712762611
>> Tel      : +94 112 145 345
>> a <thili...@wso2.com>nurudd...@wso2.com
>>
>
>
>
> --
> *Imesh Gunaratne*
> Software Architect
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: https://medium.com/@imesh TW: @imesh
>
>


-- 
*Thanks and Regards,*
Anuruddha Lanka Liyanarachchi
Software Engineer - WSO2
Mobile : +94 (0) 712762611
Tel      : +94 112 145 345
a <thili...@wso2.com>nurudd...@wso2.com
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to