Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Membase | Membase Server 1.6.x

membase, client-side moxi and memcached for sessions: how to combine

2 replies [Last post]
  • Login or register to post comments
Thu, 11/25/2010 - 07:49
gbrits
Offline
Joined: 11/22/2010
Groups: None

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

Top
  • Login or register to post comments
Mon, 11/29/2010 - 08:04
bhawana@membase
Offline
Joined: 10/29/2010
Groups: None

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!

Top
  • Login or register to post comments
Mon, 11/29/2010 - 15:33
bhawana@membase
Offline
Joined: 10/29/2010
Groups: None

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

__________________

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!

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker