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

How to determine cache distribution across servers

4 replies [Last post]
  • Login or register to post comments
Mon, 12/20/2010 - 13:46
mhsimkin
Offline
Joined: 12/10/2010
Groups: None

Is there any way I can determine how my cache keys are being distributed across the servers

I'm loading the cache with keys that are sequential numbers start at 100,000 and incrementing up to about 300,000.

I would like the keys and hence the associated data to be evenly distributed across the available servers. Right now, I’m using the Enyim.Caching.Memcached.DefaultNode locator, as I have not had the chance to develop code to determine a distribution using the other locators.

Thanks

marc

Top
  • Login or register to post comments
Mon, 12/20/2010 - 18:12
bhawana@membase
Offline
Joined: 10/29/2010
Groups: None

Marc,

By design the data should be evenly distributed.

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
Tue, 12/21/2010 - 11:10
perry
Offline
Joined: 10/11/2010
Groups:

 Marc, you should really be using the Membase client library included with Enyim.  That will provide you the best performance and dynamic configuration.  Even without that, the distribution of data across the servers will be very even by design (as Bhawana said).

 

Perry

__________________

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 Couchbase: http://www.couchbase.com/products-and-services/overview
Call or email "sales -at- couchbase-dot- com" today!

Top
  • Login or register to post comments
Tue, 12/21/2010 - 11:13
mhsimkin
Offline
Joined: 12/10/2010
Groups: None

I am using the membase client library.  I have the app.config file set to use the defaultnode locator.  Am I not supposed to do that?


Also, I just need to understand which node locator hash will give a better distribution.

Top
  • Login or register to post comments
Tue, 12/21/2010 - 11:19
perry
Offline
Joined: 10/11/2010
Groups:

 Gotcha.  Sounds like you're using it correctly.

 

When using Membase bucket types (not memcached) the hash is not currently configureable.  We use a CRC32 hash into 1024 vbuckets which provide us a very good distribution of data across the servers.  You may want to take a read through our wiki (wiki.membase.org) which has lots of information on how the underlying infrastructure of vbuckets works.

 

For Memcached bucket types, the default is the libketama hash which has been in use for quite a long time in most/all memcached clients and seems to be the best consistent hashing algorithm available.

 

Thanks again, let me know if you're having any issues.

 

Perry

__________________

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 Couchbase: http://www.couchbase.com/products-and-services/overview
Call or email "sales -at- couchbase-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