Hi,

 

For the LB cartridge I used the following json:

But, the ports in axis2.xml are set to 80 and 443 respectively. What am I doing 
wrong? Also at the samples you map as http port the 22 to proxyport 8280. Is 
this right?

{

                "type": "lb",

                "category": "framework",

                "provider": "omistack",

                "host": "omistack-vm130",

                "displayName": "LB",

                "description": "LB Cartridge",

                "version": "1",

                "multiTenant": false,

                "loadBalancingIPType": "private",

                "portMapping": [

                                {

                                                "protocol": "http",

                                                "port": 8280,

                                                "proxyPort": 8280

                                },

                                {

                                                "protocol": "https",

                                                "port": 8243,

                                                "proxyPort": 8280

                                }

                ],

                "iaasProvider": [

                                {

                                                "type": "openstack",

                                                "imageId": 
"regionOne/c2c77400-c3c0-4323-bc61-47911022eff3",

                                                "property": [

                                                                {

                                                                                
"name": "instanceType",

                                                                                
"value": "regionOne/3"

                                                                },

                                                                {

                                                                                
"name": "keyPair",

                                                                                
"value": "stratos-key"

                                                                },

                                                                {

                                                                                
"name": "availabilityZone",

                                                                                
"value": "default"

                                                                }

                                                ],

                                                "networkInterfaces": []

                                }

                ]

}

 

From: Gayan Gunarathne [mailto:[email protected]] 
Sent: Thursday, June 4, 2015 2:51 PM
To: [email protected] <mailto:[email protected]> 
Subject: Re: Load balancer in stratos 4.1.0 openstack

 

You can define the port and the proxy port in cartridge itself[1].That is used 
by the Load Balancer.

 

[1]https://github.com/apache/stratos/blob/master/samples/cartridges/mock/php.json

 

Thanks,

Gayan

 

On Thu, Jun 4, 2015 at 5:02 PM, Athanasios Tsitsipas 
<[email protected] <mailto:[email protected]> > 
wrote:

Also the, lb module in puppet in which port it listens and I have to set the 
proxyport to any other application?

 

Regards,

Thanos

 

From: Gayan Gunarathne [mailto:[email protected] <mailto:[email protected]> ] 
Sent: Thursday, June 4, 2015 12:32 PM
To: [email protected] <mailto:[email protected]> 
Subject: Re: Load balancer in stratos 4.1.0 openstack

 

Hi Athanasios,

 

I guess you are asking for the lb module in the puppet. Then that lb module in 
the puppet will install the Stratos load balancer[1].

 

Also we have extensions for the HAProxy[2] as well as nginx[3].Those load 
balancer extensions can work as a Standalone applications.Please refer the 
related documents.

Also we have a sample[4] for use the Stratos LB with tomcat application.I guess 
you can do the same thing with nodejs also.

Hope those documentations will helpful for you 

 

[1] 
https://github.com/gayangunarathne/stratos/tree/master/products/load-balancer/modules/distribution

[2]https://cwiki.apache.org/confluence/display/STRATOS/4.1.0+Configuring+HAProxy+Load+Balancer

[3] 
https://github.com/apache/stratos/tree/master/extensions/load-balancer/nginx-extension

[4] 
https://github.com/apache/stratos/tree/master/samples/applications/nested/complex-app-with-lb

 

 

Thanks,

Gayan

 

On Thu, Jun 4, 2015 at 3:47 PM, Athanasios Tsitsipas 
<[email protected] <mailto:[email protected]> > 
wrote:

Hello,

 

One question the load balancer used in stratos, under the lb module, is an 
haproxy, nginx ? Also, any sample configuration for the load balancer to create 
a cartridge, open the correct ports and later subscribe an nodejs application 
to the load balancer?

 

Regards,

Athanasios Tsitsipas





 

-- 

 

Gayan Gunarathne
Technical Lead, WSO2 Inc. (http://wso2.com <http://wso2.com/> )

Committer & PMC Member, Apache Stratos

email : [email protected] <mailto:[email protected]>   | mobile : +94 766819985 
<tel:%2B94%20766819985> 

 

 





 

-- 

 

Gayan Gunarathne
Technical Lead, WSO2 Inc. (http://wso2.com <http://wso2.com/> )

Committer & PMC Member, Apache Stratos

email : [email protected] <mailto:[email protected]>   | mobile : +94 766819985 
<tel:%2B94%20766819985> 

 

 

Reply via email to