Skip to main content

Posts

Showing posts from June, 2014

Fronting WSO2 AS worker/manager cluster with HAProxy

This blog describes how to configure HAProxy as a load balancer with WSO2 Application Server cluster HAProxy 1.5 WSO2 Application Server 5.2.1 Setup WSO2 AS Cluster This cluster consist of 3 WSO2 Application Server instances, as 3 worker nodes and 1 manager node, where 1 node work as both worker and manager. HAProxy performs load balancing with this cluster by distributing incoming requests to the worker nodes via HTTP/S on port 80/443. All admin requests can be sent to the manager node directly via HTTPs on port 9444 or through the HAProxy via 443 port depending on how we configure the manager node. Click here  to see how to setup WSO2 Application Server cluster Setup HAProxy load balancer * Install HAProxy $ sudo add-apt-repository ppa:vbernat/haproxy-1.5 $ sudo apt-get update $ sudo apt-get install haproxy Need version 1.5 since native SSL support was implemented in 1.5 * Set ENABLED to 1 if you want the init script to star

Fronting WSO2 AS worker/manager cluster with Nginx

This Blog describes how to configure Nginx as a load balancer with WSO2 Application Server cluster Nginx 1.4.1 WSO2 Application Server 5.2.1 Setup WSO2 AS Cluster This cluster consist of 3 WSO2 Application Server instances, as 3 worker nodes and 1 manager node, where 1 node work as both worker and manager. Nginx performs load balancing with this cluster by distributing incoming requests to the worker nodes via HTTP/S on port 80/443. All admin requests can be sent to the manager node directly via HTTPs on port 9444 or through the Nginx via 443 port depending on how we configure the manager node. Click   here  to see how to setup WSO2 Application Server cluster Setup Nginx load balancer * Install Nginx $sudo apt-get install nginx * Locate the http{} block of the /etc/nginx/nginx.conf file and add the following # load balancing among the worker nodes - HTTP upstream wso2.as.com {              server as.wso2.com:9764;           server

WSO2 AS worker/manager cluster without WSO2 ELB

This blog describes how to setup WSO2 Application Server worker/manager cluster without using WSO2 Elastic Load Balancer and later we can use this cluster for configure different 3rd party load balances WSO2 Application Server - 5.2.1 1. Use Cases Each use case consist of 3 WSO2 AS instances form worker/manager cluster fronting with load balancer. Use Case 1: Requests direct to worker node cluster through LB No access to admin console through LB   Use Case 2: Requests direct to worker node cluster through LB. Allows to access admin console through LB. Use Case 3: Requests direct to worker node cluster through LB. Allows to access admin console through LB. Additionally manager node also serve requests. (Here manger node work as both worker and manager) Manager/Worker3 Worker1 Worker2 offset 1 2 3 localMemberPort 4100 4200 4300 http 9764 9765 9766 https 9444 9445 9446 2. Tips to configure 3

WSO2 AS worker/manager cluster with WSO2 ELB

This blog describes how to setup WSO2 Application Server worker/manager cluster with WSO2 Elastic Load Balancer. WSO2 Elastic Load Balancer - 2.1.0 WSO2 Application Server - 5.2.1 1. Deployment Diagram 2. Configure the load balancer 1. Unzip the WSO2 ELB 2. Setting up the load balancing configuration Edit “<ELB_HOME>/repository/conf/loadbalancer.conf” file appserver {         domains   {                        wso2.as.domain {                 tenant_range     *; group_mgt_port 4500 ;        worker {            hosts as.wso2.com;        }    mgt {     hosts mgt.as.wso2.com; }                 }         } } 3. Setting up the cluster configurations Edit “<ELB_HOME>/repository/conf/axis2/axis2.xml” file as follows <clustering class="org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent" enable=" true "> <parameter name="membershipScheme"> wka