Giter VIP home page Giter VIP logo

Comments (3)

 avatar commented on August 28, 2024

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.

 avatar commented on August 28, 2024

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.

 avatar commented on August 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.