[Building Sakai] Issue with Sakai Instances Load Balances.

Shoaib Chaudhary muhammad.shoaib at nu.edu.pk
Sun Feb 6 20:08:50 PST 2011


Done !

Many Thanks to every one for help

Shoaib,

On Fri, Feb 4, 2011 at 04:48, Bryan Bakotich <bakotibj at plu.edu> wrote:

> Shoaib,
>
> I think you also need to set the route for each of your BalancerMembers. So
> it might look something like this:
>
> ProxyPass / balancer://sakaiCluster/ stickysession=JSESSIONID nofailover=On
> <Proxy balancer://sakaiCluster>
> BalancerMember ajp://localhost:8009 route=tomcat2
> BalancerMember ajp://192.168.1.5:8009 route=tomcat3
> </Proxy>
>
> In my setup the BalancerMember route should be the same as the jvmRoute
> which should be the same as your serverId in the sakai.properties file. Once
> I did this the balancer started working properly.
>
> -Bryan
>
> On Thu, Feb 3, 2011 at 3:08 AM, Shoaib Chaudhary <
> muhammad.shoaib at nu.edu.pk> wrote:
>
>> Hi,
>>
>> Many thanks for your reply.
>>
>> I have tried the code you told me and I also have tried to test mod_proxy
>> for this this time my main page (gateway) start refreshing countinously.
>> Unable to determine what is the problem.
>>
>> I am following this page.
>>
>>
>> https://confluence.sakaiproject.org/display/DOC/Sakai+Admin+Guide+-+Advanced+Tomcat++%28and+Apache%29+Configuration
>>
>> I have added this to my httd.conf
>>
>>
>> ProxyPass / balancer://sakaiCluster/ stickysession=JSESSIONID
>> nofailover=On
>> <Proxy balancer://sakaiCluster>
>> BalancerMember ajp://localhost:8009
>> BalancerMember ajp://192.168.1.5:8009
>> </Proxy>
>>
>> and added
>> inactiveInterval at org.sakaiproject.tool.api.SessionManager=5000
>> expired at org.sakaiproject.cluster.api.ClusterService=5000
>> ghostingPercent at org.sakaiproject.cluster.api.ClusterService=5000
>> refresh at org.sakaiproject.cluster.api.ClusterService=5000
>>
>> to my sakai.properties file
>>
>> please let me know where I am doing wrong.
>>
>>
>> Regards
>> *MUHAMMAD SHOAIB* | Software Engineer
>>  National University of Computer and Emerging Sciences
>> A. K. Brohi Road (Near Police Line) H11/4 Islamabad
>> Tel +92-(51)-111-128-128 Ext 344  Cell +92-(334)-5577712
>> muhammad.shoaib at nu.edu.pk
>>
>>
>> _________________________________________________________________________________________
>>
>> *As a Muslim I have no duty to allow myself to be cheated, but I have the
>> duty to be a fighter **for truth and justice as **It is always more
>> difficult to fight against faith than against knowledge*
>> *
>> Readers are only allowed to use the above contents and attachment(s) if
>> any for only given purposes*
>> No part of this email and its attached contents should be reproduced,
>> published in any form by any means, electronic or mechanical including
>> photocopy or any information storage or retrieval system nor should the
>> material be disclosed to third parties
>>
>>
>>
>> On Wed, Feb 2, 2011 at 09:08, Anand Mehta <anand.mehta at yahoo.com> wrote:
>>
>>>  Hello Shoaib,
>>>
>>> Please check the serverID, serverURL and serverName in
>>> sakai/local.properties and make sure they are correct. Also check the
>>> following settings and see if tweaking them helps:
>>>
>>> inactiveInterval at org.sakaiproject.tool.api.SessionManager
>>> expired at org.sakaiproject.cluster.api.ClusterService
>>> ghostingPercent at org.sakaiproject.cluster.api.ClusterService
>>> refresh at org.sakaiproject.cluster.api.ClusterService
>>>
>>> The attached file contains an example of worker settings in a cluster, so
>>> you can try those as well. I noticed that you have set lbfactor for tomcat3
>>> to 9. Is that a typo?
>>>
>>> You can find more information about clustering here:
>>> https://confluence.sakaiproject.org/display/DOC/Configuring+Clustered+Sakai+Installations
>>>
>>>
>>> Thanks,
>>> Anand
>>>
>>>
>>> ------------------------------
>>> *From:* Shoaib Chaudhary <muhammad.shoaib at nu.edu.pk>
>>>
>>> *To:* Sakai Development (sakai-dev) Mailing List <
>>> sakai-dev at collab.sakaiproject.org>
>>> *Sent:* Wed, February 2, 2011 10:11:43 AM
>>>
>>> *Subject:* [Building Sakai] Issue with Sakai Instances Load Balances.
>>>
>>> Hello,
>>>
>>> I am trying to load balance to Sakai instances
>>>
>>> I have attached my worker file with this email.
>>>
>>> I also have added jvm route as following
>>>
>>> I am facing following problem
>>>
>>> Engine name="*Catalina*" defaultHost="*localhost*" jvmRoute="*tomcat2*"
>>> Engine name="*Catalina*" defaultHost="*localhost*" jvmRoute="*tomcat3*"
>>>
>>> When i log in to Sakai using my log in ID and password it first log in,
>>> show me logged in screen and my course for a while and again take me back on
>>> welcome screen /portal where I see the main page of Sakai again.
>>>
>>> As per my understanding the instances are not able to maintain sessions.
>>> I don't if I am right or wrong.
>>>
>>> Can some one help me out please.
>>>
>>> Regards
>>> *MUHAMMAD SHOAIB* | Software Engineer
>>> National University of Computer and Emerging Sciences
>>> A. K. Brohi Road (Near Police Line) H11/4 Islamabad
>>> Tel +92-(51)-111-128-128 Ext 344  Cell +92-(334)-5577712
>>> muhammad.shoaib at nu.edu.pk
>>>
>>>
>>
>> _______________________________________________
>> sakai-dev mailing list
>>
>> sakai-dev at collab.sakaiproject.org
>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>
>> TO UNSUBSCRIBE: send email to
>> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
>> "unsubscribe"
>>
>
>
>
> --
> Bryan Bakotich
> Open Source Implementation Specialist
> Digital Media Center, Information & Technology Services
> Pacific Lutheran University
> Tacoma, WA 98447-0013
> Phone: 253-536-5021
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20110207/cc160ce4/attachment.html 


More information about the sakai-dev mailing list