This is how the endpoint configuration in the synapse.xml will look like;

<endpoint>
                <serviceAwareDynamicLoadBalanceEndpoint failover="true"

algorithm="org.apache.synapse.endpoints.algorithms.RoundRobin">
                    <membershipHandler

class="org.apache.synapse.core.axis2.ServiceAwareLoadBalanceMembershipHandler">
                        <services>
                            <service>
                                <url>http://as.cloud.wso2.com</url>
                                <domain>wso2as.domain</domain>
                            </service>
                            <service>
                                <url>http://esb.cloud.wso2.com</url>
                                <domain>wso2esb.domain</domain>
                            </service>
                            <service>
                                <url>http://governance.cloud.wso2.com</url>
                                <domain>wso2governance.domain</domain>
                            </service>
                            <service>
                                <url>http://gs.cloud.wso2.com</url>
                                <domain>wso2gs.domain</domain>
                            </service>
                        </services>
                    </membershipHandler>
                </serviceAwareDynamicLoadBalanceEndpoint>
</endpoint>

On Thu, Jun 23, 2011 at 2:20 PM, Afkham Azeez <[email protected]> wrote:

> Folks,
> I'm thinking of getting $subject implemented since otherwise we will have
> to have a large number of LBs for our services. The plan is to write a new
> ServiceAwareDynamicLoadBalanceEndpoint, which will do LB based on the
> service.
>
> Axis2 already has support for handling multiple cluster domains, so we will
> have to write a new Axis2LoadBalanceMembershipHandler which is service
> aware.
>
> The autoscaling would also need to be modified, but autoscaling is actually
> a separate aspect, and we can even run the autoscaler separately if we are
> going for the CPU load average based one.
>
> Thoughts please.
>
> Thanks
> Azeez
>
> --
> *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*
_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to