membase, client-side moxi and memcached for sessions: how to combine
We've been using membase in our test/dev setup starting from the early beta's and its been great. We're slowly progressing to production and are looking into high-availability things for our webservers.
One of these things is our idea of using a seperate cluster of memcached-nodes (used membase) to store session-data: One node for each web-server (the node runs on the webserver itself).
I'd like to get some confirmation if the following setup is going to work: for a 2 webserver / 2 membase server scenario we have (the relevant parts):
2 webservers, each running: tomcat, client-side moxi, memcached-node for session-data
2 dedicated membase servers, each running membase install used as persistent nosql-store
The question now is: can the client-side moxi operate the 2 seperate clusters at the same time? i.e: the session-data cluster with nodes on the webservers and the persistent nosql-store cluster with nodes on the dedicated membase servers.
Moreover, did I read correctly that client-side moxi is able to detect automatically that a membase-node fails, or that an addition node is added?
Thanks in advance,
Geert-Jan
Geert-Jan,
There's currently no way to specify which nodes you want a bucket to live on, so if you want to restrict the memcached bucket to just those the webserver nodes you will have to maintain 2 separate clusters. You can have one large cluster, but both buckets would be spread across all nodes (whihc I think is not what you wnat)
The client-side Moxi cannot operate two separate clusters, but you can run multiple client-side Moxi processes on the same client (making sure they operate on different ports) and then point your clients at the different ports on localhost.
Lastly, the client-side Moxi can detect automatically that a failure has happened, but that does not mean that it will automatically "fail over". Operations on keys destined for that server will return failures (gets will return NULL, sets will return "NOT_STORED") and then Moxi will automatically detect when the failover event happens (pressing the button or programmatically initiating a failover) and begin using the replica copies when they are available.
Hope this helps!
Bhawana
Geert-Jan,
I am working on getting your questions answered and should get back to you on this today.
-Bhawana
Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Membase: http://www.membase.com/products-and-services/overview
Call or email "sales -at- membase -dot- com" today!