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

How can i copy Couchbase data from disk to memory, due to memory increasing?

7 replies [Last post]
  • Login or register to post comments
Sun, 12/16/2012 - 04:31
creotiv
Offline
Joined: 11/14/2011
Groups: None

Some time ago our Couchbase cluster started to read data from disk, because memory was full. We increased memory amount, but the Couchbase still reads from the disk. Disk reads greatly increases the number of errors in our software. And i'm wondering is there possibility to copy data from disk to memory, so Couchbase can work normally again?

CentOs 5.6
Couchbase v.1.8

Top
  • Login or register to post comments
Mon, 12/17/2012 - 14:35
scalabl3
Offline
Joined: 07/18/2012
Groups:

You need to increase the Couchbase quota and the Bucket quota to use the newly allocated memory. Couchbase will handle optimization of the memory after that.

Docs: http://www.couchbase.com/docs/couchbase-manual-1.8/couchbase-admin-cmdli...
Refer to that to see where the couchbase-cli command is located per OS.

To increase the memory allocated to Couchbase (Quota), you use the couchbase cli:

$ /opt/couchbase/bin/couchbase-cli cluster-init -c 127.0.0.1:8091 --cluster-init-ramsize=4096 -u Administrator -p password

the 4096 is where you set the new amount of RAM. Of course if you have multiple machines in your cluster, make sure they all can increase their individual Quota's, this setting is per machine.

For the bucket, after increasing the Cluster Quota RAM, you can then increase the Bucket RAM, by clicking on Data Buckets, then clicking the Triangle next to the bucket name, on the right click on Edit and you can then increase the RAM for the bucket out of the new Quota.

__________________

@scalabl3
Technical Evangelist
Couchbase Inc.
 

Top
  • Login or register to post comments
Mon, 12/17/2012 - 14:48
creotiv
Offline
Joined: 11/14/2011
Groups: None

I already done this, but this not helped. Resident level is still at 80%(server now have 65% free memory of quota limit)

Also i think you should read this: https://groups.google.com/forum/?fromgroups=#!topic/couchbase/H52nP3TualU

Top
  • Login or register to post comments
Mon, 12/17/2012 - 14:54
scalabl3
Offline
Joined: 07/18/2012
Groups:

Seems like the other thread has a lot more detail, and discussion should continue there instead of reproducing here. Just to follow up, did you end up being able to reproduce and file a JiRA issue with the information requested?

__________________

@scalabl3
Technical Evangelist
Couchbase Inc.
 

Top
  • Login or register to post comments
Tue, 12/18/2012 - 01:19
creotiv
Offline
Joined: 11/14/2011
Groups: None

it was reproduced twice on my production server. Now i have cluster with two node, each server have 24GB, Node is set up to 15GB(9GB for OS), each node use about 40% of it limit(15GB) but resident level is 80%. As i know Couchbase not serve data from disk if there is free memory.
What should i attach to JIRA issue?

Top
  • Login or register to post comments
Wed, 12/19/2012 - 12:46
scalabl3
Offline
Joined: 07/18/2012
Groups:

Thanks creotiv, I think os-level and couchbase-level stats, versions you are running for everything (Couchbase, OS, Cloud? or Hardware?), as much detail as you can so that we can properly diagnose and see if there is a bug somewhere.

Also, refer to the thread with Alexsey in there too so whomever looks at it can see what you already discussed.

Hope that is not too much to ask, thank you!

__________________

@scalabl3
Technical Evangelist
Couchbase Inc.
 

Top
  • Login or register to post comments
Wed, 12/19/2012 - 13:38
creotiv
Offline
Joined: 11/14/2011
Groups: None

Created issue at JIRA http://www.couchbase.com/issues/browse/MB-7438

If you need anything else please say.

Top
  • Login or register to post comments
Fri, 12/28/2012 - 03:42
Neo-matrix
Offline
Joined: 10/15/2012
Groups: None

Hi,
Could you please update this thread with the Cache-miss ratio. Just for additional information.

Thanks,
Neo.

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