How can i copy Couchbase data from disk to memory, due to memory increasing?
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
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
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?
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?
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!
Created issue at JIRA http://www.couchbase.com/issues/browse/MB-7438
If you need anything else please say.
Hi,
Could you please update this thread with the Cache-miss ratio. Just for additional information.
Thanks,
Neo.
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:
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.