We have managed to implement this, and preliminary testing has been successful.
I needed to add an entry called MgtHostName to the carbon.xml file of the management node because otherwise, if the HTTP->HTTPS redirection for management console URLs don't work. For example, *http*:// appserver.stratoslive.wso2.com will redirect you to *https*:// appserver.stratoslive.wso2.com. To do this, the carbon.xml HostName entry was used. However, when the management nodes & worker nodes are separated, we have to specify the HostName in the management node to be the host name of the worker node cluster's LB, and not the management node cluster'd LB. Hence we need this distinction between MgtHostName & HostName. During the course of testing this, we also figured out that proxyPorts are not properly getting picked up, and this is a blocker for the kernel release. Azeez On Mon, Jul 23, 2012 at 5:35 PM, Afkham Azeez <[email protected]> wrote: > While working on the management node & worker node separation problem, I > came up with this concept of partitions within clusters, which I would like > to call sub-domains. All members of a domain can communicate with each > other. However, the management nodes & worker nodes clearly have different > roles, hence belong to different sub-domains. The load balancer should be > aware of these sub-domains & direct management requests to nodes within the > management sub-domain according to the specified load balancing algorithm, > and regular requests to applications & services should be directed to nodes > within the worker sub-domain. > > The members can advertise sub-domains as member properties. The load > balancer code has to be changed to be sub-domain aware. A sample > loadbalancer.conf segment is shown below. > > appserver-worker { > # multiple hosts should be separated by a comma. > hosts appserver.cloud-test.wso2.com, > as.cloud-test.wso2.com; > domains { > *wso2.as.domain* { > *sub_domain worker;* > tenant_range *; > } > } > } > > appserver-mgt { > # multiple hosts should be separated by a comma. > hosts mgt.appserver.cloud-test.wso2.com, > mgt.as.cloud-test.wso2.com; > domains { > > *wso2.as.domain* { > *sub_domain mgt;* > tenant_range *; > } > } > } > > Nirmal & I are working on this. Without this change, we will not be able > to achieve proper management & worker node separation. > > Thoughts welcome. > > -- > *Afkham Azeez* > Director of Architecture; WSO2, Inc.; http://wso2.com > Member; Apache Software Foundation; http://www.apache.org/ > * <http://www.apache.org/>** > email: **[email protected]* <[email protected]>* cell: +94 77 3320919 > blog: **http://blog.afkham.org* <http://blog.afkham.org>* > twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez> > * > linked-in: **http://lk.linkedin.com/in/afkhamazeez* > * > * > *Lean . Enterprise . Middleware* > > -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * <http://www.apache.org/>** email: **[email protected]* <[email protected]>* cell: +94 77 3320919 blog: **http://blog.afkham.org* <http://blog.afkham.org>* twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez> * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware*
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
