For the first error I think I know where it is coming from, I commented out from the /etc/puppet/manifests/nodes/base.pp there were already the variables
$lb_httpPort = '80' $lb_httpsPort = '443' So that is the error. Thanks From: Athanasios Tsitsipas [mailto:[email protected]] Sent: Friday, June 5, 2015 3:17 PM To: [email protected] Subject: RE: Load balancer in stratos 4.1.0 openstack Hi Guyan, I’m getting some errors when I’m trying to spawn an lb cartridge: TID: [0] [LB] [2015-06-05 13:06:08,343] INFO {org.apache.synapse.transport.passthru.PassThroughHttpSSLListener} - Initializing Pass-through HTTP/S Listener... TID: [0] [LB] [2015-06-05 13:06:08,344] ERROR {org.apache.axis2.engine.ListenerManager} - Couldn't initialize the httpstransport listener java.lang.NumberFormatException: For input string: "" and TID: [0] [LB] [2015-06-05 13:06:09,995] INFO {org.apache.stratos.messaging.message.receiver.topology.TopologyEventMessageDelegator} - Topology event message delegator started TID: [0] [LB] [2015-06-05 13:06:09,999] FATAL {org.apache.stratos.load.balancer.internal.LoadBalancerServiceComponent} - Failed to activate load balancer service component java.lang.RuntimeException: Thrift client configuration file path system property is not set: thrift.client.config.file.path These are log fragments from the lb vm at /mnt/apache-stratos-load-balancer-4.1.0-SNAPSHOT/repository/logs/wso2carbon.log Should I install manually any other application like nginx or haproxy? Regards, Thanos From: Gayan Gunarathne [mailto:[email protected]] Sent: Friday, June 5, 2015 12:09 PM To: [email protected] <mailto:[email protected]> Subject: Re: Load balancer in stratos 4.1.0 openstack Hi Thanos, On Fri, Jun 5, 2015 at 2:18 PM, Athanasios Tsitsipas <[email protected] <mailto:[email protected]> > wrote: Hi Gayan, No I'm using the latest build of stratos, Your referring documentation[1] is for Apache Stratos 4.0.0. You can't use the latest build of Stratos with that as there are some API changes from version 4.0.0 to 4.1.0. So if you want use that documentation you need to get the distribution[2] related to the Apache Stratos 4.0.0. If you want to use the Apache Stratos 4.1.0 you can follow this documentation[3] [1] <http://wso2.com/library/tutorials/2014/04/tutorial-how-to-get-apache-stratos-4.0.0-running-on-a-single-machine/> http://wso2.com/library/tutorials/2014/04/tutorial-how-to-get-apache-stratos-4.0.0-running-on-a-single-machine/ [2] <https://dist.apache.org/repos/dist/dev/stratos/4.0.0-rc4/> https://dist.apache.org/repos/dist/dev/stratos/4.0.0-rc4/ [3] https://cwiki.apache.org/confluence/display/STRATOS/4.1.0+Complex+Application+with+LB+on+OpenStack I'm just trying to find any sample that may work. The problem is that I cannot state the port mapping in the cartridge definition of load balancer, it always gives in axis2.xml the ports 80, 443 and second one how the other applications that I want to go through the load balancer will be subscribed to it. Once your specify the port and proxy port in the member Cartridge ,those details goes to the topology. Load balancer will getting those member related details from the topology. Cheers, Thanos From: Gayan Gunarathne [mailto:[email protected] <mailto:[email protected]> ] Sent: Friday, June 5, 2015 7:37 AM To: [email protected] <mailto:[email protected]> Subject: Re: Load balancer in stratos 4.1.0 openstack Hi Thanos, On Thu, Jun 4, 2015 at 7:27 PM, Athanasios Tsitsipas <[email protected] <mailto:[email protected]> > wrote: I am trying with this guide I found for openstack http://wso2.com/library/tutorials/2014/04/tutorial-how-to-get-apache-stratos-4.0.0-running-on-a-single-machine/ This guide related with the Apache Stratos 4.0.0 release.Are you using the 4.0.0 Apache Stratos Distribution[1][2]? [1] https://dist.apache.org/repos/dist/dev/stratos/4.0.0-rc4/ [2] https://cwiki.apache.org/confluence/display/STRATOS/4.0.0+Installation+Guide But I cannot get the lb working Regards , Thanos From: Gayan Gunarathne [mailto:[email protected] <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> -- 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>
