|
Hi,
I was just wondering what the best practice is in developing a Grails application to scale horizontally in the Cloud. A number of PaaS providers do not support session replication between instances so ... Regards Steve |
|
Administrator
|
Cloud Foundry uses sticky sessions for this
Cheers On Wed, Nov 23, 2011 at 3:29 PM, Stevef <[hidden email]> wrote: > Hi, > > I was just wondering what the best practice is in developing a Grails > application to scale horizontally in the Cloud. A number of PaaS providers > do not support session replication between instances so ... > > Regards > > Steve > > -- > View this message in context: http://grails.1312388.n4.nabble.com/Best-practice-to-scale-Grails-app-on-PaaS-tp4099807p4099807.html > Sent from the Grails - user mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > -- Graeme Rocher Grails Project Lead SpringSource - A Division of VMware http://www.springsource.com --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
You can go on Amazon AWS.
The session replication could be solved with sticky sessions (as Graeme said CF does), or using AWS Elasticache to store http sessions over your nodes.
[]s, On Wed, Nov 23, 2011 at 2:23 PM, Graeme Rocher <[hidden email]> wrote: Cloud Foundry uses sticky sessions for this |
|
Another problem is hibernate secondardy cache.
Ehcache seems could be scaled quite easily, There should one article about how to run grails on clusters: But it is missing... Hope there could one easy solution on Amazon elastic bean. On Wed, Nov 23, 2011 at 12:04 PM, Lucas F. A. Teixeira <[hidden email]> wrote: You can go on Amazon AWS. |
|
This can be even solved with Elasticache...
Check this I've sent in the list 3 months ago...
And since it is just some more configuratioin under hibernate 2nd level (directly in DataSource.groovy), you can easily use it with Beanstalk. []s, On Wed, Nov 23, 2011 at 3:17 PM, Gavin Yue <[hidden email]> wrote: Another problem is hibernate secondardy cache. |
|
....
I replied your post at that time... Could you provide more details about how to do it? Thank you...
On Wed, Nov 23, 2011 at 12:24 PM, Lucas F. A. Teixeira <[hidden email]> wrote: This can be even solved with Elasticache... |
|
Hi Gavin,
I've used http://code.google.com/p/hibernate-memcached/ to solve. It was pretty easy to do it: hibernate { cache.use_second_level_cache = true cache.use_query_cache = true cache.provider_class = 'com.googlecode.hibernate.memcached.MemcachedCacheProvider'
memcached { servers = "elasticache-server-url:11211" } } []s, On Wed, Nov 23, 2011 at 3:29 PM, Gavin Yue <[hidden email]> wrote: .... |
|
o ic
great thank you. That is what I want!! On Wed, Nov 23, 2011 at 12:38 PM, Lucas F. A. Teixeira <[hidden email]> wrote: Hi Gavin, |
|
In reply to this post by lucastex
There's also http://grails.org/plugin/memcached (which uses that library).
Burt > Hi Gavin, > > I've used http://code.google.com/p/hibernate-memcached/ to solve. > It was pretty easy to do it: > > hibernate { > cache.use_second_level_cache = true > cache.use_query_cache = true > cache.provider_class = > 'com.googlecode.hibernate.memcached.MemcachedCacheProvider' > memcached { > servers = "elasticache-server-url:11211" > } > } > > []s, > > Lucas Teixeira <http://about.me/lucastex> > > > > On Wed, Nov 23, 2011 at 3:29 PM, Gavin Yue <[hidden email]> wrote: > > > .... > > > > I replied your post at that time... > > > > Could you provide more details about how to do it? > > > > Thank you... > > > > > > > > On Wed, Nov 23, 2011 at 12:24 PM, Lucas F. A. Teixeira <[hidden email] > > > wrote: > > > >> This can be even solved with Elasticache... > >> > >> Check this I've sent in the list 3 months ago... > >> > >> http://grails.1312388.n4.nabble.com/AWS-ElastiCache-Solving-the-main-EC2-problem-Shared-Hibernate-Cache-td3764407.html > >> > >> And since it is just some more configuratioin under hibernate 2nd level > >> (directly in DataSource.groovy), you can easily use it with Beanstalk. > >> > >> []s, > >> > >> > >> Lucas Teixeira <http://about.me/lucastex> > >> > >> > >> > >> On Wed, Nov 23, 2011 at 3:17 PM, Gavin Yue <[hidden email]>wrote: > >> > >>> Another problem is hibernate secondardy cache. > >>> > >>> Ehcache seems could be scaled quite easily, > >>> > >>> http://ehcache.org/documentation/get-started/about-distributed-cache > >>> > >>> There should one article about how to run grails on clusters: > >>> http://ehcache.org/documentation/recipes/grails > >>> > >>> But it is missing... > >>> > >>> Hope there could one easy solution on Amazon elastic bean. > >>> > >>> > >>> > >>> On Wed, Nov 23, 2011 at 12:04 PM, Lucas F. A. Teixeira < > >>> [hidden email]> wrote: > >>> > >>>> You can go on Amazon AWS. > >>>> > >>>> The session replication could be solved with sticky sessions (as Graeme > >>>> said CF does), or using AWS Elasticache to store http sessions over your > >>>> nodes. > >>>> > >>>> []s, > >>>> > >>>> > >>>> Lucas Teixeira <http://about.me/lucastex> > >>>> > >>>> > >>>> > >>>> On Wed, Nov 23, 2011 at 2:23 PM, Graeme Rocher <[hidden email]>wrote: > >>>> > >>>>> Cloud Foundry uses sticky sessions for this > >>>>> > >>>>> Cheers > >>>>> > >>>>> On Wed, Nov 23, 2011 at 3:29 PM, Stevef <[hidden email]> > >>>>> wrote: > >>>>> > Hi, > >>>>> > > >>>>> > I was just wondering what the best practice is in developing a Grails > >>>>> > application to scale horizontally in the Cloud. A number of PaaS > >>>>> providers > >>>>> > do not support session replication between instances so ... > >>>>> > > >>>>> > Regards > >>>>> > > >>>>> > Steve > >>>>> > > >>>>> > -- > >>>>> > View this message in context: > >>>>> http://grails.1312388.n4.nabble.com/Best-practice-to-scale-Grails-app-on-PaaS-tp4099807p4099807.html > >>>>> > Sent from the Grails - user mailing list archive at Nabble.com. > >>>>> > > >>>>> > --------------------------------------------------------------------- > >>>>> > To unsubscribe from this list, please visit: > >>>>> > > >>>>> > http://xircles.codehaus.org/manage_email > >>>>> > > >>>>> > > >>>>> > > >>>>> > >>>>> > >>>>> > >>>>> -- > >>>>> Graeme Rocher > >>>>> Grails Project Lead > >>>>> SpringSource - A Division of VMware > >>>>> http://www.springsource.com > >>>>> > >>>>> --------------------------------------------------------------------- > >>>>> To unsubscribe from this list, please visit: > >>>>> > >>>>> http://xircles.codehaus.org/manage_email > >>>>> > >>>>> > >>>>> > >>>> > >>> > >> > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
Even better.
Didn't knew about it. Thanks Burt. []s, On Wed, Nov 23, 2011 at 5:25 PM, Burt Beckwith <[hidden email]> wrote: There's also http://grails.org/plugin/memcached (which uses that library). |
|
And it is maintained by Burt....
It means this plugin could be used. Do not have to worry this plugin never updates in the future... On Wed, Nov 23, 2011 at 2:27 PM, Lucas F. A. Teixeira <[hidden email]> wrote: Even better. |
|
In reply to this post by xmly
Guys,
Many thanks for some very useful information. Regards Steve |
|
Very interesting, we are thinking on using memcahe or redis. It's good to know some people are using memcache with success.
Thanks. Alex 2011/11/24 Stevef <[hidden email]> Guys, |
| Powered by Nabble | Edit this page |
