Hi Pubudu,

Also please test with GD enabled. We ran into issues in session replication
when GD was enabled in the following scenario.

Enable GD in node 1 and 2 -> Start node1 -> update session attributes by
sending requests to node 1 -> start node 2 (make sure during this startup
the ghost webapp is getting deployed instead actual webapp) -> shutdown
node 1 once node 2 has started -> check whether the session is replicated
to node 2

Thanks.
/Gayashan

On Wed, Nov 19, 2014 at 5:20 PM, KasunG Gajasinghe <kas...@wso2.com> wrote:

> Hi Pubudu,
>
> Did you also verify how does the Tomcat session persistence work with the
> Hazelcast based session replication?
>
> And, what are locations handled by the HouseKeepingTask? As I've seen it
> deletes the CARBON_HOME/tmp/work folder. Any reason why it deletes
> CARBON_HOME/lib/tomcat/work/Catalina/localhost?
>
>
> On Wed, Nov 19, 2014 at 5:13 PM, Pubudu Dissanayake <pubu...@wso2.com>
> wrote:
>
>> Hi folks
>>
>> As of now I've completed base implementation support for HTTP Session
>> persistence for Appserver. Therefore we can define Persistent Manager
>> element [1] <http://tomcat.apache.org/tomcat-7.0-doc/config/manager.html>
>> as follows in global context.xml.
>>
>> *FileStore support *
>>
>> <Manager className='
>> org.wso2.carbon.webapp.mgt.CarbonTomcatSessionPersistentManager'
>>                 saveOnRestart='false'
>>                 maxActiveSessions='5'
>>                 minIdleSwap='0'
>>                 maxIdleSwap='1'
>>                 maxIdleBackup='0'>
>>       <Store className='org.apache.catalina.session.FileStore'
>>                  directory='<location>'/>
>> </Manager>
>>
>> *Completed tasks *
>>
>>    - Preliminary testing for CarbonTomcatSessionPersistentManager can be
>>    found here [2]
>>    
>> <https://docs.google.com/a/wso2.com/spreadsheets/d/1XVlYOp6grJKX4qPbk96QlyUN6VlCrPf1xo2fnE4gzvY/edit#gid=0>,
>>    but tests were conducted for FileStore
>>    (org.apache.catalina.session.FileStore) support only
>>    - CarbonTomcatSessionPersistentManager element support for
>>    context.xml, As of now we only support CarbonTomcatSessionManager.
>>
>> *TODOs*
>>
>>    - Tenant-aware PersistentManager support for
>>    CarbonTomcatSessionPersistentManager
>>    - JDBC implementation (org.apache.catalina.session.JDBCStore) support
>>    - Perform thorough test scenarios on session persistence vs session
>>    replication.
>>
>> [1] http://tomcat.apache.org/tomcat-7.0-doc/config/manager.html
>> [2]
>> https://docs.google.com/a/wso2.com/spreadsheets/d/1XVlYOp6grJKX4qPbk96QlyUN6VlCrPf1xo2fnE4gzvY/edit#gid=0
>>
>> <http://tomcat.apache.org/tomcat-7.0-doc/config/manager.html>
>>
>> On Mon, Nov 17, 2014 at 12:01 PM, Pubudu Dissanayake <pubu...@wso2.com>
>> wrote:
>>
>>>
>>> On Mon, Nov 17, 2014 at 11:52 AM, Afkham Azeez <az...@wso2.com> wrote:
>>>
>>>> Ok, go ahead with your implementation.
>>>>
>>>
>>> ​Noted​
>>>
>>>
>>>>
>>>> On Mon, Nov 17, 2014 at 11:49 AM, Afkham Azeez <az...@wso2.com> wrote:
>>>>
>>>>> So globally switching the SessionManager can be done by editing the
>>>>> global context.xml file?
>>>>>
>>>>
>>> Indeed, we can configure it by editing global context.xml​
>>>
>>>
>>>
>>
>>
>> --
>> *Pubudu Dissanayake*
>>  Software Engineer
>>
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>> Mob: + 94 775 503 304
>>
>> Blog: http://geekdetected.wordpress.com/
>> Linkedin: *http://lk.linkedin.com/in/pubududissanayake*
>> <http://lk.linkedin.com/in/pubududissanayake>
>> Flickr : https://www.flickr.com/photos/pubudufx/
>> Twitter: https://twitter.com/GeekInAction
>>
>>
>
>
> --
>
> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
> email: kasung AT spamfree wso2.com
> linked-in: http://lk.linkedin.com/in/gajasinghe
> blog: http://kasunbg.org
>
>
>
> _______________________________________________
> Architecture mailing list
> Architecture@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
*Gayashan Amarasinghe*
Software Engineer | Platform TG
WSO2, Inc. | http://wso2.com
lean. enterprise. middleware

Mobile : +94718314517
Blog : gayashan-a.blogspot.com
_______________________________________________
Architecture mailing list
Architecture@wso2.org
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to