<Manager className="de.javakaffee.web.msm.MemcachedBackupSessionManager"memcachedNodes="memcached.l59tff.0001.usw1.cache.amazonaws.com:11211"sticky="false"lockingMode="auto"sessionBackupAsync="false"copyCollectionsForSerialization="false"requestUriIgnorePattern=".*\.(gif|jpg|jpeg|png|wmv|avi|mpg|mpeg|mp4|htm|html|js|css|mp3|swf|ico|flv)$"/>
Hi,
At first, I'm sorry to say that I haven't used this setup and therefore cannot share own experience.
I'd say that you have to use the AmazonElastiCacheClusterClient jar and remove the spymemcached jar. Your configuration looks good so far.
Have you seen https://github.com/magro/memcached-session-manager/wiki/ConfigureElastiCache? Perhaps this is helpful.
If you still don't get it to work I'd recommend to start with a very simple sample app to see if the setup is working at all and if issues are related to your specific app. You could activate debug logging and see if this provides insights.
Cheers,
Martin
--
---
You received this message because you are subscribed to the Google Groups "memcached-session-manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to memcached-session-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi,
At first, I'm sorry to say that I haven't used this setup and therefore cannot share own experience.
I'd say that you have to use the AmazonElastiCacheClusterClient jar and remove the spymemcached jar. Your configuration looks good so far.
Have you seen https://github.com/magro/memcached-session-manager/wiki/ConfigureElastiCache? Perhaps this is helpful.
If you still don't get it to work I'd recommend to start with a very simple sample app to see if the setup is working at all and if issues are related to your specific app. You could activate debug logging and see if this provides insights.
Cheers,
Martin
To unsubscribe from this group and stop receiving emails from it, send an email to memcached-session-manager+unsub...@googlegroups.com.
Thanks for that prompt reply Martin.
On Tuesday, May 31, 2016 at 1:01:44 PM UTC-7, Martin Grotzke wrote:Hi,
At first, I'm sorry to say that I haven't used this setup and therefore cannot share own experience.
I was wondering what you meant by saying you have not used this setup - did you mean you have not tested that with AmazonElastiCacheClusterClient or with AWS?
I'd say that you have to use the AmazonElastiCacheClusterClient jar and remove the spymemcached jar. Your configuration looks good so far.
Do you have an example of non-sticky session setup for a java app that we can refer? It seems the jar file versions have evolved since some of these articles were written.
Have you seen https://github.com/magro/memcached-session-manager/wiki/ConfigureElastiCache? Perhaps this is helpful.
Yes we did see that article. It says AmazonElastiCacheClusterClient needs to be used to to properly support Amazon ElastiCache Auto Discovery, but we are not sure if that Auto discovery feature is required with MSM. We are thinking we will have only one memcached node for now and so instead of giving the elasticache config endpoint, we can just give directly the node endpoint.
If you still don't get it to work I'd recommend to start with a very simple sample app to see if the setup is working at all and if issues are related to your specific app. You could activate debug logging and see if this provides insights.
We will try debugging in the mean time.
Cheers,
Martin
Also, in our earlier post, we tried to explain how we understood the application of MSM for non-sticky...( In our case, the users login to our app and for the most part their activity means low cpu-utilization. But there are activities that a logged in user can start that will require higher cpu-resources. So you can imagine that on our single instance, we could admit 50 users with low cpu-resource-needs initially.. but later on they all might need more cpu-resources and all of their sessions could 'swell' inside that single instance leading to 100% cpu utilization (and the problems related to that). We do autoscale the instances based on cpu utilization, but that only affects new sessions in 'sticky sessions' case.That is why, what we are trying to get to is a non-sticky session setup where we are able to add/delete autoscaled EC2 instances without loosing the sessions of logged in users. From your other posts, its clear how the non-sticky mode does not save the sessions on the tomcat instance at all, and saves the sessions externally in the memcached nodes. That way, any logged in user could use any instance to continue with the same session. )... does that seem to be correct way to be using MSM?
Also, regarding the lockingmode...We are thinking the lockingmode=auto might work, but not sure if we need to do anything additional so that MSM will be able to detect the read-only requests as opposed to modification requests.
Thanks a lot again.
To unsubscribe from this group and stop receiving emails from it, send an email to memcached-session-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "memcached-session-manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to memcached-session-...@googlegroups.com.
Thanks a lot again.
To unsubscribe from this group and stop receiving emails from it, send an email to memcached-session-manager+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "memcached-session-manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to memcached-session-manager+unsub...@googlegroups.com.
Thanks again Martin.Also, have you tried using default Java serialization with MSM?
We will try some more to make this work and keep you posted.
Not sure if you are able to ask around in your colleagues if anyone has done this setup.
It seems to be a fairly common need but for some reason, there doesnt seem to be much written about nonsticky sessions with aws. Please let us know if you find some example java setup for MSM with AWS Elasticache. We'd greatly appreciate it.
Thanks a lot again.
To unsubscribe from this group and stop receiving emails from it, send an email to memcached-session-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "memcached-session-manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to memcached-session-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "memcached-session-manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to memcached-session-...@googlegroups.com.
--
---
You received this message because you are subscribed to a topic in the Google Groups "memcached-session-manager" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/memcached-session-manager/tFPjSbm9Uwc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to memcached-session-...@googlegroups.com.
Great!
Cheers,
Martin
Great!
Cheers,
Martin
Thanks a lot again.
To unsubscribe from this group and stop receiving emails from it, send an email to memcached-session-manager+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "memcached-session-manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to memcached-session-manager+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "memcached-session-manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to memcached-session-manager+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to a topic in the Google Groups "memcached-session-manager" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/memcached-session-manager/tFPjSbm9Uwc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to memcached-session-manager+unsub...@googlegroups.com.
--
For more options, visit https://groups.google.com/d/optout.
---
You received this message because you are subscribed to the Google Groups "memcached-session-manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to memcached-session-manager+unsub...@googlegroups.com.