Comments (3)
From martin.grotzke on March 08, 2010 00:51:09
Please ask questions on the mailing list:
http://groups.google.com/group/memcached-session-manager
When you post there, can you explain what you want to say with
"..., but I think your high-aviliablity clusters just like heartbeat..."
Still, great that you're interested :-)
Status: Invalid
Labels: -Type-Defect Type-Other
from memcached-session-manager.
From [email protected] on March 08, 2010 01:13:36
thank you very much ! English is not my nother language , sorry for my mistakes,
I meant the example is "X" , just for 2tomcats and 2memcacheds run on two servers ,
how can this "X" works on my architecture ?
Haproxy
|
|--------nginx (for statics)
|
----------------------- (for jsp app)
| | | |
tomcat1 tomca2 tomca3 tomcat4
|------|------|-------|
|
|
Mysql
from memcached-session-manager.
From martin.grotzke on March 09, 2010 05:24:40
You should do this:
- Configure HAProxy so that it's doing sticky session (appsession?). Check that you specify as the
length for appsession the length of the session id without the memcached node id (e.g. if the session
id is 123456-n1 you should set 6 as length, at least if I understood appsession/length correctly) - Configure tomcat1 with
memcachedNodes="n1:tomcat1:11211 n2:tomcat2:11211 n3:tomcat3:11211 n4:tomcat4:11211"
failoverNodes="n1" - Configure tomcat2 with n2 as failover node:
memcachedNodes="n1:tomcat1:11211 n2:tomcat2:11211 n3:tomcat3:11211 n4:tomcat4:11211"
failoverNodes="n2" - Configure tomcat3 and tomcat4 following the same rule
In n1:tomcat1:11211 tomcat1 stands for the ip address / hostname of tomcat1 and asumes that on this
machine a memcached is running and listening on port 11211. Futhermore this asumes, that each
tomcat/memcached pair is on its own machine. If all would be running on the same machine the
failoverNodes could be left blank. Basically as failoverNodes should those memcacheds be configured
that are running on the same machine as the tomcat (so that in the case of a hardware failure the
sessions of this failing tomcat are not stored in the memcached running on the same machine).
Your memcached instances should get some memory, you could run them e.g. like this:
$ memcached -p 11211 -u memcached -m 1024 -M
If you have further questions please ask them on the mailing list:
http://groups.google.com/group/memcached-session-manager
(or don't you want to use this / have issues using it?)
from memcached-session-manager.
Related Issues (20)
- tomcat 9 redis implementation throws ClassCastException on startup HOT 5
- when I use memcache connection reset by peer
- Heap space issue : net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl HOT 2
- Can I use multiple MemcachedConnection? HOT 1
- Cache node failover not working in AutoDiscovery mode (ElastiCache)
- Configuring memcached with Redis Cluster
- Connecting to "Secure" Redis HOT 1
- Does AutoDiscovery mode (Elasticache) as non-sticky save the sessions in multiple nodes?
- java.lang.NoSuchFieldException: parentOffset HOT 1
- expose threadpool metrics from BackupSessionService and LockingStrategy
- Support for session object serialization filters HOT 2
- Principal and other attributes need some flexibility with Serialization
- SSL support for redis HOT 1
- Dependency com.thoughtworks.xstream:xstream, leading to CVE problem HOT 1
- Support AuthType JASPIC
- DefaultTreeMode Serialization Problem
- Validity data and session data have mismatching TTL
- Custom principal from web application cannot be deserialized
- Tomcat error: com.couchbase.client.vbucket.provider.BucketConfigurationProvider: Could not parse config, retrying bootstrap HOT 3
- create link to successor project: redex-sm HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from memcached-session-manager.