You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by Athanasios Tsitsipas <at...@uni-ulm.de> on 2015/06/04 12:17:41 UTC
Load balancer in stratos 4.1.0 openstack
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
RE: Load balancer in stratos 4.1.0 openstack
Posted by Athanasios Tsitsipas <at...@uni-ulm.de>.
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:gayang@wso2.com]
Sent: Thursday, June 4, 2015 2:51 PM
To: dev@stratos.apache.org
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 <athanasios.tsitsipas@uni-ulm.de <ma...@uni-ulm.de> > 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:gayang@wso2.com <ma...@wso2.com> ]
Sent: Thursday, June 4, 2015 12:32 PM
To: dev@stratos.apache.org <ma...@stratos.apache.org>
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 <athanasios.tsitsipas@uni-ulm.de <ma...@uni-ulm.de> > 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 : gayang@wso2.com <ma...@wso2.com> | mobile : +94 766819985 <tel:%2B94%20766819985>
--
Gayan Gunarathne
Technical Lead, WSO2 Inc. (http://wso2.com <http://wso2.com/> )
Committer & PMC Member, Apache Stratos
email : gayang@wso2.com <ma...@wso2.com> | mobile : +94 766819985 <tel:%2B94%20766819985>
FW: Load balancer in stratos 4.1.0 openstack
Posted by Athanasios Tsitsipas <at...@uni-ulm.de>.
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:gayang@wso2.com]
Sent: Thursday, June 4, 2015 2:51 PM
To: dev@stratos.apache.org <ma...@stratos.apache.org>
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 <athanasios.tsitsipas@uni-ulm.de <ma...@uni-ulm.de> > 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:gayang@wso2.com <ma...@wso2.com> ]
Sent: Thursday, June 4, 2015 12:32 PM
To: dev@stratos.apache.org <ma...@stratos.apache.org>
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 <athanasios.tsitsipas@uni-ulm.de <ma...@uni-ulm.de> > 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 : gayang@wso2.com <ma...@wso2.com> | mobile : +94 766819985 <tel:%2B94%20766819985>
--
Gayan Gunarathne
Technical Lead, WSO2 Inc. (http://wso2.com <http://wso2.com/> )
Committer & PMC Member, Apache Stratos
email : gayang@wso2.com <ma...@wso2.com> | mobile : +94 766819985 <tel:%2B94%20766819985>
Re: Load balancer in stratos 4.1.0 openstack
Posted by Imesh Gunaratne <im...@apache.org>.
Hi Athanasios,
As I mentioned in the other thread, can you please first try to run the
load balancer locally without puppet and see whether its working properly?
Then it would be easier for you to identify the issues in the puppet
module/configuration.
On Fri, Jun 5, 2015 at 8:00 PM, Athanasios Tsitsipas <
athanasios.tsitsipas@uni-ulm.de> wrote:
> Still I think that is an error I get and I cannot use the stratos load
> balancer
>
>
>
> TID: [0] [LB] [2015-06-05 14:25:25,352] 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
>
> at
> org.apache.stratos.common.statistics.publisher.wso2.cep.ThriftClientConfig.getInstance(ThriftClientConfig.java:48)
>
> at
> org.apache.stratos.common.statistics.publisher.wso2.cep.WSO2CEPStatisticsPublisher.<init>(WSO2CEPStatisticsPublisher.java:56)
>
> at
> org.apache.stratos.common.statistics.publisher.wso2.cep.WSO2CEPInFlightRequestPublisher.<init>(WSO2CEPInFlightRequestPublisher.java:42)
>
> at
> org.apache.stratos.common.statistics.publisher.InFlightRequestPublisherFactory.createInFlightRequestPublisher(InFlightRequestPublisherFactory.java:31)
>
> at
> org.apache.stratos.load.balancer.common.statistics.notifier.LoadBalancerStatisticsNotifier.<init>(LoadBalancerStatisticsNotifier.java:49)
>
> at
> org.apache.stratos.load.balancer.internal.LoadBalancerServiceComponent.startStatisticsNotifier(LoadBalancerServiceComponent.java:235)
>
> at
> org.apache.stratos.load.balancer.internal.LoadBalancerServiceComponent.activate(LoadBalancerServiceComponent.java:153)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
> at java.lang.reflect.Method.invoke(Method.java:606)
>
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
>
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
>
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
>
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
>
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
>
> at
> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
>
> at
> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
>
> at
> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
>
> at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
>
> at
> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
>
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
>
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
>
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
>
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
>
> at
> org.wso2.carbon.mediation.initializer.ServiceBusInitializer.activate(ServiceBusInitializer.java:245)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
> at java.lang.reflect.Method.invoke(Method.java:606)
>
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
>
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
>
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
>
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
>
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
>
> at
> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
>
> at
> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
>
> at
> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
>
> at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
>
> at
> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
>
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
>
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
>
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
>
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
>
> at
> org.wso2.carbon.event.core.internal.builder.EventBrokerHandler.startEventBroker(EventBrokerHandler.java:58)
>
> at
> org.wso2.carbon.event.core.internal.builder.EventBrokerBuilderDS.activate(EventBrokerBuilderDS.java:72)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
> at java.lang.reflect.Method.invoke(Method.java:606)
>
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
>
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
>
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
>
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
>
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
>
> at
> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
>
> at
> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
>
> at
> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
>
> at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
>
> at
> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
>
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
>
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
>
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
>
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
>
> at
> org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:517)
>
> at
> org.wso2.carbon.core.init.CarbonServerManager.removePendingItem(CarbonServerManager.java:290)
>
> at
> org.wso2.carbon.core.init.PreAxis2ConfigItemListener.bundleChanged(PreAxis2ConfigItemListener.java:118)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:847)
>
> at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
>
> at
> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
>
>
>
> *From:* Athanasios Tsitsipas [mailto:athanasios.tsitsipas@uni-ulm.de]
> *Sent:* Friday, June 5, 2015 3:24 PM
>
> *To:* dev@stratos.apache.org
> *Subject:* RE: Load balancer in stratos 4.1.0 openstack
>
>
>
> 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:athanasios.tsitsipas@uni-ulm.de
> <at...@uni-ulm.de>]
> *Sent:* Friday, June 5, 2015 3:17 PM
> *To:* dev@stratos.apache.org
> *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:gayang@wso2.com <ga...@wso2.com>]
> *Sent:* Friday, June 5, 2015 12:09 PM
> *To:* dev@stratos.apache.org
> *Subject:* Re: Load balancer in stratos 4.1.0 openstack
>
>
>
> Hi Thanos,
>
>
>
> On Fri, Jun 5, 2015 at 2:18 PM, Athanasios Tsitsipas <
> athanasios.tsitsipas@uni-ulm.de> 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/
>
> [2] 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:gayang@wso2.com]
> *Sent:* Friday, June 5, 2015 7:37 AM
>
>
> *To:* dev@stratos.apache.org
> *Subject:* Re: Load balancer in stratos 4.1.0 openstack
>
>
>
> Hi Thanos,
>
>
>
> On Thu, Jun 4, 2015 at 7:27 PM, Athanasios Tsitsipas <
> athanasios.tsitsipas@uni-ulm.de> 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:gayang@wso2.com]
> *Sent:* Thursday, June 4, 2015 2:51 PM
>
>
> *To:* dev@stratos.apache.org
> *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 <
> athanasios.tsitsipas@uni-ulm.de> 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:gayang@wso2.com]
> *Sent:* Thursday, June 4, 2015 12:32 PM
> *To:* dev@stratos.apache.org
> *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 <
> athanasios.tsitsipas@uni-ulm.de> 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)
>
> Committer & PMC Member, Apache Stratos
>
> email : gayang@wso2.com | mobile : +94 766819985
>
>
>
>
>
>
>
>
>
> --
>
>
>
> Gayan Gunarathne
> Technical Lead, WSO2 Inc. (http://wso2.com)
>
> Committer & PMC Member, Apache Stratos
>
> email : gayang@wso2.com | mobile : +94 766819985
>
>
>
>
>
>
>
>
>
> --
>
>
>
> Gayan Gunarathne
> Technical Lead, WSO2 Inc. (http://wso2.com)
>
> Committer & PMC Member, Apache Stratos
>
> email : gayang@wso2.com | mobile : +94 766819985
>
>
>
>
>
>
>
>
>
> --
>
>
>
> Gayan Gunarathne
> Technical Lead, WSO2 Inc. (http://wso2.com)
>
> Committer & PMC Member, Apache Stratos
>
> email : gayang@wso2.com | mobile : +94 766819985
>
>
>
>
>
--
Imesh Gunaratne
Senior Technical Lead, WSO2
Committer & PMC Member, Apache Stratos
RE: Load balancer in stratos 4.1.0 openstack
Posted by Athanasios Tsitsipas <at...@uni-ulm.de>.
Still I think that is an error I get and I cannot use the stratos load balancer
TID: [0] [LB] [2015-06-05 14:25:25,352] 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
at org.apache.stratos.common.statistics.publisher.wso2.cep.ThriftClientConfig.getInstance(ThriftClientConfig.java:48)
at org.apache.stratos.common.statistics.publisher.wso2.cep.WSO2CEPStatisticsPublisher.<init>(WSO2CEPStatisticsPublisher.java:56)
at org.apache.stratos.common.statistics.publisher.wso2.cep.WSO2CEPInFlightRequestPublisher.<init>(WSO2CEPInFlightRequestPublisher.java:42)
at org.apache.stratos.common.statistics.publisher.InFlightRequestPublisherFactory.createInFlightRequestPublisher(InFlightRequestPublisherFactory.java:31)
at org.apache.stratos.load.balancer.common.statistics.notifier.LoadBalancerStatisticsNotifier.<init>(LoadBalancerStatisticsNotifier.java:49)
at org.apache.stratos.load.balancer.internal.LoadBalancerServiceComponent.startStatisticsNotifier(LoadBalancerServiceComponent.java:235)
at org.apache.stratos.load.balancer.internal.LoadBalancerServiceComponent.activate(LoadBalancerServiceComponent.java:153)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
at org.wso2.carbon.mediation.initializer.ServiceBusInitializer.activate(ServiceBusInitializer.java:245)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
at org.wso2.carbon.event.core.internal.builder.EventBrokerHandler.startEventBroker(EventBrokerHandler.java:58)
at org.wso2.carbon.event.core.internal.builder.EventBrokerBuilderDS.activate(EventBrokerBuilderDS.java:72)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
at org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:517)
at org.wso2.carbon.core.init.CarbonServerManager.removePendingItem(CarbonServerManager.java:290)
at org.wso2.carbon.core.init.PreAxis2ConfigItemListener.bundleChanged(PreAxis2ConfigItemListener.java:118)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:847)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
From: Athanasios Tsitsipas [mailto:athanasios.tsitsipas@uni-ulm.de]
Sent: Friday, June 5, 2015 3:24 PM
To: dev@stratos.apache.org
Subject: RE: Load balancer in stratos 4.1.0 openstack
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:athanasios.tsitsipas@uni-ulm.de]
Sent: Friday, June 5, 2015 3:17 PM
To: dev@stratos.apache.org <ma...@stratos.apache.org>
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:gayang@wso2.com]
Sent: Friday, June 5, 2015 12:09 PM
To: dev@stratos.apache.org <ma...@stratos.apache.org>
Subject: Re: Load balancer in stratos 4.1.0 openstack
Hi Thanos,
On Fri, Jun 5, 2015 at 2:18 PM, Athanasios Tsitsipas <athanasios.tsitsipas@uni-ulm.de <ma...@uni-ulm.de> > 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:gayang@wso2.com <ma...@wso2.com> ]
Sent: Friday, June 5, 2015 7:37 AM
To: dev@stratos.apache.org <ma...@stratos.apache.org>
Subject: Re: Load balancer in stratos 4.1.0 openstack
Hi Thanos,
On Thu, Jun 4, 2015 at 7:27 PM, Athanasios Tsitsipas <athanasios.tsitsipas@uni-ulm.de <ma...@uni-ulm.de> > 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:gayang@wso2.com <ma...@wso2.com> ]
Sent: Thursday, June 4, 2015 2:51 PM
To: dev@stratos.apache.org <ma...@stratos.apache.org>
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 <athanasios.tsitsipas@uni-ulm.de <ma...@uni-ulm.de> > 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:gayang@wso2.com <ma...@wso2.com> ]
Sent: Thursday, June 4, 2015 12:32 PM
To: dev@stratos.apache.org <ma...@stratos.apache.org>
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 <athanasios.tsitsipas@uni-ulm.de <ma...@uni-ulm.de> > 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 : gayang@wso2.com <ma...@wso2.com> | mobile : +94 766819985 <tel:%2B94%20766819985>
--
Gayan Gunarathne
Technical Lead, WSO2 Inc. (http://wso2.com <http://wso2.com/> )
Committer & PMC Member, Apache Stratos
email : gayang@wso2.com <ma...@wso2.com> | mobile : +94 766819985 <tel:%2B94%20766819985>
--
Gayan Gunarathne
Technical Lead, WSO2 Inc. (http://wso2.com <http://wso2.com/> )
Committer & PMC Member, Apache Stratos
email : gayang@wso2.com <ma...@wso2.com> | mobile : +94 766819985 <tel:%2B94%20766819985>
--
Gayan Gunarathne
Technical Lead, WSO2 Inc. (http://wso2.com <http://wso2.com/> )
Committer & PMC Member, Apache Stratos
email : gayang@wso2.com <ma...@wso2.com> | mobile : +94 766819985 <tel:%2B94%20766819985>
RE: Load balancer in stratos 4.1.0 openstack
Posted by Athanasios Tsitsipas <at...@uni-ulm.de>.
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:athanasios.tsitsipas@uni-ulm.de]
Sent: Friday, June 5, 2015 3:17 PM
To: dev@stratos.apache.org
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:gayang@wso2.com]
Sent: Friday, June 5, 2015 12:09 PM
To: dev@stratos.apache.org <ma...@stratos.apache.org>
Subject: Re: Load balancer in stratos 4.1.0 openstack
Hi Thanos,
On Fri, Jun 5, 2015 at 2:18 PM, Athanasios Tsitsipas <athanasios.tsitsipas@uni-ulm.de <ma...@uni-ulm.de> > 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:gayang@wso2.com <ma...@wso2.com> ]
Sent: Friday, June 5, 2015 7:37 AM
To: dev@stratos.apache.org <ma...@stratos.apache.org>
Subject: Re: Load balancer in stratos 4.1.0 openstack
Hi Thanos,
On Thu, Jun 4, 2015 at 7:27 PM, Athanasios Tsitsipas <athanasios.tsitsipas@uni-ulm.de <ma...@uni-ulm.de> > 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:gayang@wso2.com <ma...@wso2.com> ]
Sent: Thursday, June 4, 2015 2:51 PM
To: dev@stratos.apache.org <ma...@stratos.apache.org>
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 <athanasios.tsitsipas@uni-ulm.de <ma...@uni-ulm.de> > 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:gayang@wso2.com <ma...@wso2.com> ]
Sent: Thursday, June 4, 2015 12:32 PM
To: dev@stratos.apache.org <ma...@stratos.apache.org>
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 <athanasios.tsitsipas@uni-ulm.de <ma...@uni-ulm.de> > 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 : gayang@wso2.com <ma...@wso2.com> | mobile : +94 766819985 <tel:%2B94%20766819985>
--
Gayan Gunarathne
Technical Lead, WSO2 Inc. (http://wso2.com <http://wso2.com/> )
Committer & PMC Member, Apache Stratos
email : gayang@wso2.com <ma...@wso2.com> | mobile : +94 766819985 <tel:%2B94%20766819985>
--
Gayan Gunarathne
Technical Lead, WSO2 Inc. (http://wso2.com <http://wso2.com/> )
Committer & PMC Member, Apache Stratos
email : gayang@wso2.com <ma...@wso2.com> | mobile : +94 766819985 <tel:%2B94%20766819985>
--
Gayan Gunarathne
Technical Lead, WSO2 Inc. (http://wso2.com <http://wso2.com/> )
Committer & PMC Member, Apache Stratos
email : gayang@wso2.com <ma...@wso2.com> | mobile : +94 766819985 <tel:%2B94%20766819985>
RE: Load balancer in stratos 4.1.0 openstack
Posted by Athanasios Tsitsipas <at...@uni-ulm.de>.
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:gayang@wso2.com]
Sent: Friday, June 5, 2015 12:09 PM
To: dev@stratos.apache.org
Subject: Re: Load balancer in stratos 4.1.0 openstack
Hi Thanos,
On Fri, Jun 5, 2015 at 2:18 PM, Athanasios Tsitsipas <athanasios.tsitsipas@uni-ulm.de <ma...@uni-ulm.de> > 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:gayang@wso2.com <ma...@wso2.com> ]
Sent: Friday, June 5, 2015 7:37 AM
To: dev@stratos.apache.org <ma...@stratos.apache.org>
Subject: Re: Load balancer in stratos 4.1.0 openstack
Hi Thanos,
On Thu, Jun 4, 2015 at 7:27 PM, Athanasios Tsitsipas <athanasios.tsitsipas@uni-ulm.de <ma...@uni-ulm.de> > 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:gayang@wso2.com <ma...@wso2.com> ]
Sent: Thursday, June 4, 2015 2:51 PM
To: dev@stratos.apache.org <ma...@stratos.apache.org>
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 <athanasios.tsitsipas@uni-ulm.de <ma...@uni-ulm.de> > 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:gayang@wso2.com <ma...@wso2.com> ]
Sent: Thursday, June 4, 2015 12:32 PM
To: dev@stratos.apache.org <ma...@stratos.apache.org>
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 <athanasios.tsitsipas@uni-ulm.de <ma...@uni-ulm.de> > 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 : gayang@wso2.com <ma...@wso2.com> | mobile : +94 766819985 <tel:%2B94%20766819985>
--
Gayan Gunarathne
Technical Lead, WSO2 Inc. (http://wso2.com <http://wso2.com/> )
Committer & PMC Member, Apache Stratos
email : gayang@wso2.com <ma...@wso2.com> | mobile : +94 766819985 <tel:%2B94%20766819985>
--
Gayan Gunarathne
Technical Lead, WSO2 Inc. (http://wso2.com <http://wso2.com/> )
Committer & PMC Member, Apache Stratos
email : gayang@wso2.com <ma...@wso2.com> | mobile : +94 766819985 <tel:%2B94%20766819985>
--
Gayan Gunarathne
Technical Lead, WSO2 Inc. (http://wso2.com <http://wso2.com/> )
Committer & PMC Member, Apache Stratos
email : gayang@wso2.com <ma...@wso2.com> | mobile : +94 766819985 <tel:%2B94%20766819985>
Re: Load balancer in stratos 4.1.0 openstack
Posted by Gayan Gunarathne <ga...@wso2.com>.
Hi Thanos,
On Fri, Jun 5, 2015 at 2:18 PM, Athanasios Tsitsipas <
athanasios.tsitsipas@uni-ulm.de> 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/
[2] 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:gayang@wso2.com]
> *Sent:* Friday, June 5, 2015 7:37 AM
>
> *To:* dev@stratos.apache.org
> *Subject:* Re: Load balancer in stratos 4.1.0 openstack
>
>
>
> Hi Thanos,
>
>
>
> On Thu, Jun 4, 2015 at 7:27 PM, Athanasios Tsitsipas <
> athanasios.tsitsipas@uni-ulm.de> 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:gayang@wso2.com]
> *Sent:* Thursday, June 4, 2015 2:51 PM
>
>
> *To:* dev@stratos.apache.org
> *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 <
> athanasios.tsitsipas@uni-ulm.de> 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:gayang@wso2.com]
> *Sent:* Thursday, June 4, 2015 12:32 PM
> *To:* dev@stratos.apache.org
> *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 <
> athanasios.tsitsipas@uni-ulm.de> 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)
>
> Committer & PMC Member, Apache Stratos
>
> email : gayang@wso2.com | mobile : +94 766819985
>
>
>
>
>
>
>
>
>
> --
>
>
>
> Gayan Gunarathne
> Technical Lead, WSO2 Inc. (http://wso2.com)
>
> Committer & PMC Member, Apache Stratos
>
> email : gayang@wso2.com | mobile : +94 766819985
>
>
>
>
>
>
>
>
>
> --
>
>
>
> Gayan Gunarathne
> Technical Lead, WSO2 Inc. (http://wso2.com)
>
> Committer & PMC Member, Apache Stratos
>
> email : gayang@wso2.com | mobile : +94 766819985
>
>
>
>
>
--
Gayan Gunarathne
Technical Lead, WSO2 Inc. (http://wso2.com)
Committer & PMC Member, Apache Stratos
email : gayang@wso2.com | mobile : +94 766819985
RE: Load balancer in stratos 4.1.0 openstack
Posted by Athanasios Tsitsipas <at...@uni-ulm.de>.
Hi Gayan,
No I'm using the latest build of stratos, 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.
Cheers,
Thanos
From: Gayan Gunarathne [mailto:gayang@wso2.com]
Sent: Friday, June 5, 2015 7:37 AM
To: dev@stratos.apache.org
Subject: Re: Load balancer in stratos 4.1.0 openstack
Hi Thanos,
On Thu, Jun 4, 2015 at 7:27 PM, Athanasios Tsitsipas <athanasios.tsitsipas@uni-ulm.de <ma...@uni-ulm.de> > 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:gayang@wso2.com <ma...@wso2.com> ]
Sent: Thursday, June 4, 2015 2:51 PM
To: dev@stratos.apache.org <ma...@stratos.apache.org>
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 <athanasios.tsitsipas@uni-ulm.de <ma...@uni-ulm.de> > 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:gayang@wso2.com <ma...@wso2.com> ]
Sent: Thursday, June 4, 2015 12:32 PM
To: dev@stratos.apache.org <ma...@stratos.apache.org>
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 <athanasios.tsitsipas@uni-ulm.de <ma...@uni-ulm.de> > 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 : gayang@wso2.com <ma...@wso2.com> | mobile : +94 766819985 <tel:%2B94%20766819985>
--
Gayan Gunarathne
Technical Lead, WSO2 Inc. (http://wso2.com <http://wso2.com/> )
Committer & PMC Member, Apache Stratos
email : gayang@wso2.com <ma...@wso2.com> | mobile : +94 766819985 <tel:%2B94%20766819985>
--
Gayan Gunarathne
Technical Lead, WSO2 Inc. (http://wso2.com <http://wso2.com/> )
Committer & PMC Member, Apache Stratos
email : gayang@wso2.com <ma...@wso2.com> | mobile : +94 766819985 <tel:%2B94%20766819985>
Re: Load balancer in stratos 4.1.0 openstack
Posted by Gayan Gunarathne <ga...@wso2.com>.
Hi Thanos,
On Thu, Jun 4, 2015 at 7:27 PM, Athanasios Tsitsipas <
athanasios.tsitsipas@uni-ulm.de> 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:gayang@wso2.com]
> *Sent:* Thursday, June 4, 2015 2:51 PM
>
> *To:* dev@stratos.apache.org
> *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 <
> athanasios.tsitsipas@uni-ulm.de> 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:gayang@wso2.com]
> *Sent:* Thursday, June 4, 2015 12:32 PM
> *To:* dev@stratos.apache.org
> *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 <
> athanasios.tsitsipas@uni-ulm.de> 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)
>
> Committer & PMC Member, Apache Stratos
>
> email : gayang@wso2.com | mobile : +94 766819985
>
>
>
>
>
>
>
>
>
> --
>
>
>
> Gayan Gunarathne
> Technical Lead, WSO2 Inc. (http://wso2.com)
>
> Committer & PMC Member, Apache Stratos
>
> email : gayang@wso2.com | mobile : +94 766819985
>
>
>
>
>
--
Gayan Gunarathne
Technical Lead, WSO2 Inc. (http://wso2.com)
Committer & PMC Member, Apache Stratos
email : gayang@wso2.com | mobile : +94 766819985
RE: Load balancer in stratos 4.1.0 openstack
Posted by Athanasios Tsitsipas <at...@uni-ulm.de>.
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/
But I cannot get the lb working
Regards ,
Thanos
From: Gayan Gunarathne [mailto:gayang@wso2.com]
Sent: Thursday, June 4, 2015 2:51 PM
To: dev@stratos.apache.org
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 <athanasios.tsitsipas@uni-ulm.de <ma...@uni-ulm.de> > 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:gayang@wso2.com <ma...@wso2.com> ]
Sent: Thursday, June 4, 2015 12:32 PM
To: dev@stratos.apache.org <ma...@stratos.apache.org>
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 <athanasios.tsitsipas@uni-ulm.de <ma...@uni-ulm.de> > 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 : gayang@wso2.com <ma...@wso2.com> | mobile : +94 766819985 <tel:%2B94%20766819985>
--
Gayan Gunarathne
Technical Lead, WSO2 Inc. (http://wso2.com <http://wso2.com/> )
Committer & PMC Member, Apache Stratos
email : gayang@wso2.com <ma...@wso2.com> | mobile : +94 766819985 <tel:%2B94%20766819985>
Re: Load balancer in stratos 4.1.0 openstack
Posted by Gayan Gunarathne <ga...@wso2.com>.
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 <
athanasios.tsitsipas@uni-ulm.de> 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:gayang@wso2.com]
> *Sent:* Thursday, June 4, 2015 12:32 PM
> *To:* dev@stratos.apache.org
> *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 <
> athanasios.tsitsipas@uni-ulm.de> 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)
>
> Committer & PMC Member, Apache Stratos
>
> email : gayang@wso2.com | mobile : +94 766819985
>
>
>
>
>
--
Gayan Gunarathne
Technical Lead, WSO2 Inc. (http://wso2.com)
Committer & PMC Member, Apache Stratos
email : gayang@wso2.com | mobile : +94 766819985
RE: Load balancer in stratos 4.1.0 openstack
Posted by Athanasios Tsitsipas <at...@uni-ulm.de>.
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:gayang@wso2.com]
Sent: Thursday, June 4, 2015 12:32 PM
To: dev@stratos.apache.org
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 <athanasios.tsitsipas@uni-ulm.de <ma...@uni-ulm.de> > 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 : gayang@wso2.com <ma...@wso2.com> | mobile : +94 766819985 <tel:%2B94%20766819985>
Re: Load balancer in stratos 4.1.0 openstack
Posted by Gayan Gunarathne <ga...@wso2.com>.
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 <
athanasios.tsitsipas@uni-ulm.de> 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)
Committer & PMC Member, Apache Stratos
email : gayang@wso2.com | mobile : +94 766819985