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

Memcached bucket / Expiration

4 replies [Last post]
  • Login or register to post comments
Wed, 01/23/2013 - 06:01
jrouvier
Offline
Joined: 01/23/2013
Groups: None

Hi,

We have a Couchbase cluster with a Memcached bucket.
This bucket is filled by webservers with data coming from DB.
All our cached items have an expiration time of 12 hours.

The strange thing is that the number of cached items continues to increment after several days of use. The RAM used decreases sometimes, but not the number of items.
Plus, even if the RAM used decreases, it continues to grow day by day, and never stabilizes...

I read that MemBase had an "expiry task" running each hour to clean memory from expired items, but here it seems to just increase... do I miss something ?

RAM Used

Items

Top
  • Login or register to post comments
Fri, 01/25/2013 - 01:56
jrouvier
Offline
Joined: 01/23/2013
Groups: None

Anybody can help ?

Top
  • Login or register to post comments
Tue, 01/29/2013 - 01:43
tgrall
Offline
Joined: 09/05/2012
Groups: None

Hello,

This is the expected behavior for Memcache bucket. The items are removed from the RAM in two cases:
- when an expired item is accessed (if your application is doing a get of a key that is expired it will return a not founf/null and remove the item from the RAM
- when the bucket has no RAM it will automatically remove some expired items to be able to store new items.

This is different in the case of Couchbase Buckets, this type of bucket use the "expiry task" to remove the expired item from the RAM (and disk).

The important part here is that, with both bucket types, the application cannot access expired items.

Regards
Tug

__________________

Tug
@tgrall

Top
  • Login or register to post comments
Tue, 01/29/2013 - 02:02
jrouvier
Offline
Joined: 01/23/2013
Groups: None

hi tgrall,

thx for your answer, it's clear now :)

Top
  • Login or register to post comments
Wed, 01/30/2013 - 14:19
dipti
Offline
Joined: 11/02/2011
Groups:

BTW, more information about the Couchbase bucket expiry pager and how it works is available here:

http://www.couchbase.com/docs/couchbase-devguide-2.0/about-ttl-values.html

Configuration for special cases: http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-admin-cbepc...

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