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

eviction

3 replies [Last post]
  • Login or register to post comments
Thu, 01/03/2013 - 05:46
soroushatarod
Offline
Joined: 09/27/2012
Groups: None

When couchbase evicts data from ram, it does evicts persisted data only. but lets say out of 5k items in ram. 1k of them are older than then than rest. Does couchbase evicts the 1k items that are older, or it evicts randomly?

Top
  • Login or register to post comments
Thu, 01/03/2013 - 06:09
Neo-matrix
Offline
Joined: 10/15/2012
Groups: None

Hi,

Just to clarify, it evicts data which is not been used for a long time or less frequently used items.

Ref from manual,
"Eviction is the process of removing information entirely from memory for memcached buckets. The memcached system uses a least recently used (LRU) algorithm to remove data from the system entirely when it is no longer used."

Thanks,
Neo

Top
  • Login or register to post comments
Thu, 01/03/2013 - 10:40
tgrall
Offline
Joined: 09/05/2012
Groups: None

Hello

As Neo said, the algorithm used by Couchbase is LRU, but this is true for the "Membase Buckets"

For the Couchbase Buckets it is more "random", starting with clean memory.

In both case it is only happening when the system has no free memory to pu the items that are needed by the application.

Regards
Tug

__________________

Tug
@tgrall

Top
  • Login or register to post comments
Sat, 01/26/2013 - 14:30
tgrall
Offline
Joined: 09/05/2012
Groups: None

Hello,

The documentation contains now a new chapter about ejection in Couchbase 2.0:
http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-admin-tasks...

Regards

__________________

Tug
@tgrall

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