stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Imesh Gunaratne <im...@apache.org>
Subject Re: Can't access application in topology instance via LB
Date Thu, 11 Jun 2015 00:37:07 GMT
Hi Thanos,

This is not documented yet. Mainly there are two ways you can use a load
balancer in 4.1.0:

1. Start a global load balancer instance for the entire Stratos deployment.
You just need to start a load balancer instance with proper MB and CEP
configurations to do this. It will start listening to the entire topology
and making the configuration accordingly.

2. Add a load balancer cartridge to your application and add a dependency
to the cartridge which needs load balancing capabilities.

On Tue, Jun 9, 2015 at 3:35 PM, Athanasios Tsitsipas <
athanasios.tsitsipas@uni-ulm.de> wrote:

> Related also with this issue
> https://issues.apache.org/jira/browse/STRATOS-859
>
>
>
> I get also unknown host at the browser. It’s really annoying to not
> getting any errors for the LB and simply for a misconfiguration not working
> at all…
>

IMO there is no error to report in this scenario. If the load balancer is
receiving a request with an unknown host it cannot delegate the request.
Please make sure you find the hostname of the cluster, add a DNS entry or
host entry and make the request with that.

On Tue, Jun 9, 2015 at 3:35 PM, Athanasios Tsitsipas <
athanasios.tsitsipas@uni-ulm.de> wrote:

> Related also with this issue
> https://issues.apache.org/jira/browse/STRATOS-859
>
>
>
> I get also unknown host at the browser. It’s really annoying to not
> getting any errors for the LB and simply for a misconfiguration not working
> at all…
>
>
>
> *From:* Athanasios Tsitsipas [mailto:athanasios.tsitsipas@uni-ulm.de]
> *Sent:* Tuesday, June 9, 2015 11:32 AM
>
> *To:* dev@stratos.apache.org
> *Subject:* RE: Can't access application in topology instance via LB
>
>
>
> Any thoughts? At Stratos 4.0.0 you used the properties in the cartridges
> and a load balancing vm was spawned, when a php cartridge initialized using
> the [1] in its definition . We said let’s go to the Stratos 4.1.0. But now
> I cannot use correctly the load balancer. For the “Member Started”, “Member
> activated” topology events I get that the member doesn’t exist! But it is
> there working perfectly fine by its own.
>
>
>
> Regards,
>
> Thanos
>
>
>
> [1]     "loadBalancer":{
>
>          "type":"lb",
>
>          "property":{
>
>             "name":"default.load.balancer",
>
>             "value":"true"
>
>          }
>
>     }
>
>
>
>
>
> *From:* Athanasios Tsitsipas [mailto:athanasios.tsitsipas@uni-ulm.de
> <athanasios.tsitsipas@uni-ulm.de>]
> *Sent:* Tuesday, June 9, 2015 10:58 AM
> *To:* dev@stratos.apache.org
> *Subject:* RE: Can't access application in topology instance via LB
>
>
>
> Hi,
>
>
>
> Also in the Stratos 4.0.0 you were having a configuration for load
> balancing. In the lb cartridge you’ve added the following:
>
>  "property":[
>
>          {
>
>             "name":"load.balancer",
>
>             "value":"true"
>
>          }
>
>     ]
>
> And in the php cartridge for instance:
>
> ,
>
>     "loadBalancer":{
>
>          "type":"lb",
>
>          "property":{
>
>             "name":"default.load.balancer",
>
>             "value":"true"
>
>          }
>
>     }
>
> And from that site it makes sense what to use
> http://imesh.gunaratne.org/blog/advance-load-balancing-capabilities-in-apache-stratos-incubating-4/
>
>
>
> But now in the Stratos 4.1.0 these configurations are gone… Something
> changed as I can see but I cannot get it working
>
>
>
> Regards,
>
> Thanos
>
>
>
>
>
> *From:* Athanasios Tsitsipas [mailto:athanasios.tsitsipas@uni-ulm.de
> <athanasios.tsitsipas@uni-ulm.de>]
> *Sent:* Tuesday, June 9, 2015 10:24 AM
> *To:* dev@stratos.apache.org
> *Subject:* Can't access application in topology instance via LB
>
>
>
> Hi again,
>
>
>
> I managed to start a Stratos Load Balancer without errors. But when
> another application is in the cluster cannot be accessed through load
> balancer. Even if I specify the host name of the app and the IP of LB to my
> client hosts file nothing works. I get the following error:
>
>
>
> TID: [0] [LB] [2015-06-08 22:51:13,156]  WARN
> {org.apache.stratos.messaging.message.processor.topology.MemberStartedMessageProcessor}
> -  Member does not exist: [service] php [cluster]
> php-lb.php-test.php.domain [member]
> php-lb.php-test.php.domain49fe383c-500a-43ec-9556-69432665448d
>
>
>
>
>
> When I start the load balancer with puppet of course* the log file is
> attached to the mail*. Just to see if there are any erroneous behaviours.
>
>
>
> Also in the loadbalancer.conf file the  # Topology service filter and   #
> Topology cluster filter there is no information for them. Only for   #
> Topology member filter. *I have also attached the loabalancer.conf of the
> machine.*
>
>
>
> What should I do it doesn’t work apparently :/
>
>
>
> Best regards,
>
> Thanos
>



-- 
Imesh Gunaratne

Senior Technical Lead, WSO2
Committer & PMC Member, Apache Stratos

Mime
View raw message