Hi charitha, Nirmal did a demo to with this type of setup and i was working with him to get it done. So please contact him. he was able to run end to end demo with nhttp enabled. I also able to setup AS cluster fronted by load balancer.
Thanks. On Mon, Aug 6, 2012 at 7:32 PM, Thilini Ishaka <[email protected]> wrote: > Hi Charitha, > > This blog post helped me to set it up. > http://nirmalfdo.blogspot.com/2012/06/fronting-wso2-application-server-50.html > With passthru enabled, I got aforementioned issue and that scenario did > not work. (FYI: [Dev] Passthru HTTP transport for WSO2 Load Balancer ?) > > With nhttp, had a long delay for sign-in to AS nodes in the cluster. > > Thanks > Thilini > > On Mon, Aug 6, 2012 at 10:16 PM, Charitha Kankanamge <[email protected]>wrote: > >> Hi Thilini, >> Were you able to get AS 5 fronted by LB? We are supposed to setup AS >> cluster in lab tomorrow and planning to use LB there. Please let us know >> the "exact" instructions to set it up. >> >> Thanks! >> Charitha >> >> >> >> On Wed, Jul 25, 2012 at 6:00 AM, Sanjeewa Malalgoda <[email protected]>wrote: >> >>> Hi Thilini, >>> Please test this with attached patch. >>> >>> Thanks. >>> >>> >>> On Tue, Jul 24, 2012 at 5:14 PM, Thilini Ishaka <[email protected]>wrote: >>> >>>> That did not solve the issue. >>>> Appreciate if you can have a look for this. >>>> >>>> Thanks >>>> Thilini >>>> >>>> >>>> On Wed, Jul 25, 2012 at 5:17 AM, Sanjeewa Malalgoda >>>> <[email protected]>wrote: >>>> >>>>> But this is wrong thilini. If you specify the config as above load >>>>> balancer will behave this way. >>>>> Please do not forget that * represents all other tenant, except the >>>>> specially specified. In your case >>>>> specified tenant range is 1 to 200. >>>>> >>>>> wso2.as1.domain tenant_range 1-100 >>>>> wso2.as2.domain tenant_range 101-200; >>>>> rest of tenant will direct to the cluster with * mark >>>>> >>>>> So if you are trying to log in with tenant ID 2 or 3 obviously it will >>>>> fail. Because you are not running application >>>>> cluster with domain wso2.as1.domain. >>>>> Correct it and re try. >>>>> >>>>> Thanks. >>>>> >>>>> >>>>> On Tue, Jul 24, 2012 at 4:34 PM, Thilini Ishaka <[email protected]>wrote: >>>>> >>>>>> So please check the axis2 xmls for appservers. I am using only the >>>>>> domains given for tenant * range. >>>>> >>>>> >>>>> >>>>> >>>>>> On Wed, Jul 25, 2012 at 4:59 AM, Sanjeewa Malalgoda < >>>>>> [email protected]> wrote: >>>>>> >>>>>>> Yes that configuration is fine. but the config files you sent to me >>>>>>> offline is having entries like follows >>>>>>> Thanks. >>>>>>> >>>>>>> appserver1 { >>>>>>> # multiple hosts should be separated by a comma. >>>>>>> hosts appserver.dev.example.com, >>>>>>> as.cloud-dev.wso2.com; >>>>>>> domains { >>>>>>> wso2.as1.domain { >>>>>>> # for more info on Tenant aware load balancing >>>>>>> please refer to >>>>>>> # >>>>>>> http://sanjeewamalalgoda.blogspot.com/2012/05/tenant-aware-load-balancer.html >>>>>>> tenant_range 1-100; >>>>>>> } >>>>>>> wso2.as2.domain { >>>>>>> tenant_range 101-200; >>>>>>> } >>>>>>> wso2.as.dev.domain { >>>>>>> # all tenants other than 1-200 will belong to this >>>>>>> domain. >>>>>>> tenant_range *; >>>>>>> } >>>>>>> } >>>>>>> } >>>>>>> >>>>>>> appserver2 { >>>>>>> # multiple hosts should be separated by a comma. >>>>>>> hosts appserver.prod.example.com, >>>>>>> as.cloud-prod.wso2.com; >>>>>>> domains { >>>>>>> wso2.as1.domain { >>>>>>> # for more info on Tenant aware load balancing >>>>>>> please refer to >>>>>>> # >>>>>>> http://sanjeewamalalgoda.blogspot.com/2012/05/tenant-aware-load-balancer.html >>>>>>> tenant_range 1-100; >>>>>>> } >>>>>>> wso2.as2.domain { >>>>>>> tenant_range 101-200; >>>>>>> } >>>>>>> wso2.as.prod.domain { >>>>>>> # all tenants other than 1-200 will belong to this >>>>>>> domain. >>>>>>> tenant_range *; >>>>>>> } >>>>>>> } >>>>>>> } >>>>>>> >>>>>>> >>>>>>> appserver3 { >>>>>>> # multiple hosts should be separated by a comma. >>>>>>> hosts appserver.test.example.com, >>>>>>> as.cloud-live.wso2.com; >>>>>>> domains { >>>>>>> wso2.as1.domain { >>>>>>> # for more info on Tenant aware load balancing >>>>>>> please refer to >>>>>>> # >>>>>>> http://sanjeewamalalgoda.blogspot.com/2012/05/tenant-aware-load-balancer.html >>>>>>> tenant_range 1-100; >>>>>>> } >>>>>>> wso2.as2.domain { >>>>>>> tenant_range 101-200; >>>>>>> } >>>>>>> wso2.as.test.domain { >>>>>>> # all tenants other than 1-200 will belong to this >>>>>>> domain. >>>>>>> tenant_range *; >>>>>>> } >>>>>>> } >>>>>>> } >>>>>>> >>>>>>> On Tue, Jul 24, 2012 at 4:18 PM, Thilini Ishaka >>>>>>> <[email protected]>wrote: >>>>>>> >>>>>>>> Hi Sanjeewa, >>>>>>>> >>>>>>>> In my config, I have given the tenant range as * . And I am >>>>>>>> running all the instances [ lb + AS(s) ] on a single machine. >>>>>>>> >>>>>>>> appserver1 { >>>>>>>> # multiple hosts should be separated by a comma. >>>>>>>> hosts appserver.dev.example.com, >>>>>>>> as.cloud-dev.wso2.com; >>>>>>>> domains { >>>>>>>> wso2.as.dev.domain { >>>>>>>> # all tenants other than 1-200 will belong to this >>>>>>>> domain. >>>>>>>> tenant_range *; >>>>>>>> } >>>>>>>> } >>>>>>>> } >>>>>>>> >>>>>>>> Rest of the configs similar to given here. >>>>>>>> http://nirmalfdo.blogspot.com/2012/06/fronting-wso2-application-server-50.html >>>>>>>> Membership >>>>>>>> scheme is wka. >>>>>>>> >>>>>>>> Thanks >>>>>>>> Thilini >>>>>>>> >>>>>>>> >>>>>>>> On Wed, Jul 25, 2012 at 3:12 AM, Sanjeewa Malalgoda < >>>>>>>> [email protected]> wrote: >>>>>>>> >>>>>>>>> yes if so we don't need. >>>>>>>>> Thanks. >>>>>>>>> >>>>>>>>> >>>>>>>>> On Tue, Jul 24, 2012 at 2:36 PM, Afkham Azeez <[email protected]>wrote: >>>>>>>>> >>>>>>>>>> If tenant range is * for all services, you should not need the >>>>>>>>>> usermgt configuration >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> Afkham Azeez >>>>>>>>>> Sent from my phone >>>>>>>>>> On Jul 25, 2012 2:18 AM, "Sanjeewa Malalgoda" <[email protected]> >>>>>>>>>> wrote: >>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> On Tue, Jul 24, 2012 at 1:08 PM, Sanjeewa Malalgoda < >>>>>>>>>>> [email protected]> wrote: >>>>>>>>>>> >>>>>>>>>>>> Hi, >>>>>>>>>>>> It seems you haven't configure User management xml file in ELB >>>>>>>>>>>> properly. Please use the same configuration >>>>>>>>>>>> that you used for other products else LB cant get tenant id >>>>>>>>>>>> from domain. Every product and ELB should pointed >>>>>>>>>>>> to same user base. Seems many people keep reporting load >>>>>>>>>>>> balancer is not working because of >>>>>>>>>>>> this configuration issue. I have tested this type of scenario. >>>>>>>>>>>> Nirmal, Thilini if you are still getting errors let me know. >>>>>>>>>>>> >>>>>>>>>>>> Thanks. >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> On Tue, Jul 24, 2012 at 2:26 AM, Thilini Ishaka < >>>>>>>>>>>> [email protected]> wrote: >>>>>>>>>>>> >>>>>>>>>>>>> When using passthrough I came up with this issue. Switching to >>>>>>>>>>>>> nhttp did not give any warning on LB but still I am having long >>>>>>>>>>>>> delay in >>>>>>>>>>>>> sign-in. >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> On Tue, Jul 24, 2012 at 12:10 PM, Thilini Ishaka < >>>>>>>>>>>>> [email protected]> wrote: >>>>>>>>>>>>> >>>>>>>>>>>>>> Hi, >>>>>>>>>>>>>> >>>>>>>>>>>>>> Configured appserver clusters fronted with the LB. (latest >>>>>>>>>>>>>> trunk packs) >>>>>>>>>>>>>> >>>>>>>>>>>>>> Member join is successful. >>>>>>>>>>>>>> INFO - DefaultGroupManagementAgent Application member >>>>>>>>>>>>>> Host:127.0.0.1, Port: 4200, HTTP:9765, HTTPS:9445, ACTIVE:true >>>>>>>>>>>>>> joined >>>>>>>>>>>>>> application cluster >>>>>>>>>>>>>> >>>>>>>>>>>>>> When I login to the AS mgt console I have to wait for about >>>>>>>>>>>>>> 1min to complete the sign-in process. And I get below logs from >>>>>>>>>>>>>> LB. >>>>>>>>>>>>>> >>>>>>>>>>>>>> LB >>>>>>>>>>>>>> ---- >>>>>>>>>>>>>> *[2012-07-24 11:57:30,213] WARN - TargetHandler Response >>>>>>>>>>>>>> received while the handler is in an inconsistent state >>>>>>>>>>>>>> REQUEST_READY >>>>>>>>>>>>>> * >>>>>>>>>>>>>> *[2012-07-24 11:57:30,213] WARN - TargetHandler Connection >>>>>>>>>>>>>> closed by target host while receiving the response* >>>>>>>>>>>>>> *[2012-07-24 11:57:30,213] WARN - SynapseCallbackReceiver >>>>>>>>>>>>>> Synapse received a response for the request with message Id : >>>>>>>>>>>>>> urn:uuid:ab93e0ff-9812-4512-a87d-a398dc8413f4 But a callback is >>>>>>>>>>>>>> not >>>>>>>>>>>>>> registered (anymore) to process this response* >>>>>>>>>>>>>> >>>>>>>>>>>>>> Appserver cluster log >>>>>>>>>>>>>> ------------------------------ >>>>>>>>>>>>>> [2012-07-24 11:55:18,512] INFO >>>>>>>>>>>>>> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} - >>>>>>>>>>>>>> '[email protected] [-1234]' logged in at [2012-07-24 >>>>>>>>>>>>>> 11:55:18,512+0530] from IP address 127.0.0.1 >>>>>>>>>>>>>> >>>>>>>>>>>>>> Did anybody got the same issue previously? Kindly appreciate >>>>>>>>>>>>>> any help on this. >>>>>>>>>>>>>> >>>>>>>>>>>>>> Thanks >>>>>>>>>>>>>> Thilini >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> -- >>>>>>>>>>>>> -- >>>>>>>>>>>>> Thilini Ishaka >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>>> Dev mailing list >>>>>>>>>>>>> [email protected] >>>>>>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> -- >>>>>>>>>>>> *Sanjeewa Malalgoda* >>>>>>>>>>>> mobile : +94 713068779 >>>>>>>>>>>> <http://sanjeewamalalgoda.blogspot.com/>blog >>>>>>>>>>>> :http://sanjeewamalalgoda.blogspot.com/<http://sanjeewamalalgoda.blogspot.com/> >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> *Sanjeewa Malalgoda* >>>>>>>>>>> mobile : +94 713068779 >>>>>>>>>>> <http://sanjeewamalalgoda.blogspot.com/>blog >>>>>>>>>>> :http://sanjeewamalalgoda.blogspot.com/<http://sanjeewamalalgoda.blogspot.com/> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> *Sanjeewa Malalgoda* >>>>>>>>> mobile : +94 713068779 >>>>>>>>> <http://sanjeewamalalgoda.blogspot.com/>blog >>>>>>>>> :http://sanjeewamalalgoda.blogspot.com/<http://sanjeewamalalgoda.blogspot.com/> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> -- >>>>>>>> Thilini Ishaka >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> *Sanjeewa Malalgoda* >>>>>>> mobile : +94 713068779 >>>>>>> <http://sanjeewamalalgoda.blogspot.com/>blog >>>>>>> :http://sanjeewamalalgoda.blogspot.com/<http://sanjeewamalalgoda.blogspot.com/> >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> -- >>>>>> Thilini Ishaka >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> *Sanjeewa Malalgoda* >>>>> Mobile : +94 713068779 >>>>> Mobile : +14084122715 >>>>> >>>>> <http://sanjeewamalalgoda.blogspot.com/>blog >>>>> :http://sanjeewamalalgoda.blogspot.com/<http://sanjeewamalalgoda.blogspot.com/> >>>>> >>>> >>>> >>>> >>>> -- >>>> -- >>>> Thilini Ishaka >>>> >>>> >>> >>> >>> -- >>> *Sanjeewa Malalgoda* >>> mobile : +94 713068779 >>> <http://sanjeewamalalgoda.blogspot.com/>blog >>> :http://sanjeewamalalgoda.blogspot.com/<http://sanjeewamalalgoda.blogspot.com/> >>> >>> _______________________________________________ >>> Dev mailing list >>> [email protected] >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> > > > -- > *Thilini Ishaka > WSO2 Inc. http://wso2.com* > *bolg: thiliniishaka.blogspot.com* > *linkedin: http://lk.linkedin.com/in/thiliniishaka* > *twitter: https://twitter.com/#!/ThiliniIsh* > > -- *Sanjeewa Malalgoda* Mobile : +14084122715 | +94713068779 <http://sanjeewamalalgoda.blogspot.com/>blog :http://sanjeewamalalgoda.blogspot.com/<http://sanjeewamalalgoda.blogspot.com/>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
