views:

161

answers:

1

Hello, I am looking for a solution that allows me to deploy multiple load balanced Grails instances that have shared cache (EhCache Server ?) and sessions, is this possible ?

I can't find any documentation on this (connecting to a common EhCache server or using Distributed EhCache, and sharing sessions (using EhCache too ?))...

I'm looking for something that will work like multiple Rails instances with a common memcached and sessions/caches stored in the memcached...

Can you help me ?

Thank you !

+2  A: 

I was recently listening to a talk by Dave Klein, author of the book "Grails: A Quick Start Guide", and Mike Allen, Product Managemer at Terracotta about Clustering and Scaling Grails applications.

They introduced Terracotta as a great tool for exactly solving your issues and showed needed steps to share session within multiple instances of your Grails applicatons.

So if you want to go with Terracotta the Grails Terracotta Plugin might be very useful for you.

EDIT
On the EHCache website you will now find a short introduction to using EHCache with Grails.

codescape
Thank you ! I can see this allows session centralization, but does it allows cache centralization ?
Kedare
It allows performance optimization by distributed caching. See http://www.terracotta.org/start/distributed-cache-tutorial for a informative tutorial.
codescape