Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 2.0

10 bucket limit introduced in Couchbase Server 2.0

4 replies [Last post]
  • Login or register to post comments
Wed, 12/12/2012 - 16:28
nimaghamsari
Offline
Joined: 11/19/2012
Groups: None

Our product uses json schemas that are defined in another layer and we separate different types of json documents into different buckets. As a result, we have 20 or so buckets, most very very small, and a couple larger ones.

However, as of the 2.0 release, we are getting this message:

"Maximum Bucket Count Reached
close
Maximum number of buckets has been reached.

For optimal performance, no more than 10 buckets are allowed."

a. Is this configurable?
b. Can we make this configurable if not?
c. What is the recommended practice around the buckets? We don't store the type of the document within the document itself.

Top
  • Login or register to post comments
Wed, 12/12/2012 - 17:11
jabberfest
Offline
Joined: 12/12/2012
Groups: None

I'm not sure why they have a limit, I'm sure there is a good performance reason.

I think you are expected to mix documents in buckets to an extent. With 2.0 you aren't expected to only look up documents by ID (KEY). You can look them up on indexed fields.

You use the map function to handle different documents in a given bucket. So in map.js for the view you handle the different documents appropriately.

Check out:

http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-views-writi...

Top
  • Login or register to post comments
Thu, 12/13/2012 - 00:12
daschl
Offline
Joined: 05/19/2012
Groups: None

Normally, you should try to put all information that belongs to a - say - application into one bucket. This also comes into play with the SDKs, because they can only connect to one bucket at a time. There should be no problem in putting then in one bucket and analyze them through views (since you have them in JSON format already)!

You dont need to have a type field, you can invent your own schema as well. It has just proven to be very useful to have it in there. If you need any specific help on modeling your schema, I'm sure we can help out here.

Top
  • Login or register to post comments
Sun, 03/10/2013 - 23:24
kay
Offline
Joined: 09/17/2012
Groups: None

I guess the performance of memcached buckets is not affected when limit is increased. So you can use this command to increase bucket limit:
curl -X POST -u user:pass -d maxBucketCount=15 http://localhost:8091/internalSettings

Looking forward to developers reply =)

Top
  • Login or register to post comments
Mon, 03/11/2013 - 07:45
joakimw
Offline
Joined: 09/13/2011
Groups: None

Considering you have to set a RAM quota per bucket it would be highly inefficient to have document types in different buckets. If one type has a low volume, and you have 150 Mb allocated to that bucket most of that RAM will be unused. You'll have better RAM utilization if you mix items in the same bucket.

Also if you fill up your RAM Couchbase can't remove old stuff from one bucket to use in another, i.e. you'll have many unnecessary cache-misses.

Use one bucket per application, and differentiate between your objects either with a type in the JSON, or how you generate your ID's (e.g. 'user78657823' for users and 'product6748323' for products), or both.

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