Yeah, I was having compaction issues due to a bug in couchdb 1.0.1, the solution being to delete that file. compaction was failing, but not visibly (I only discovered that it was failing after looking at my couchdb logs).
...spike On Nov 26, 2012, at 2:10 PM, Chris wrote: Ah I see. No, compaction is working normally. It's just the .view files that need cleanup on a regular basis Sent from a phone
On Nov 26, 2012, at 11:07 AM, Spike Grobstein <
">
> wrote: yes.
/var/lib/couchdb/1.0.1/chef.couch.compact
apparently it was left over from some process that was doing a compaction process and wasn't properly cleaned up. After deleting, it, I was suddenly able to properly compact and reclaim space.
Are you also having an issue with your database not compacting?
...spike On Nov 26, 2012, at 2:04 PM, Chris wrote: And that's in your $database_dir? I see chef.couch, but not chef.couch.compact On Nov 26, 2012, at 10:48 AM, Spike Grobstein <
">
> wrote: I'm running couchdb 1.0.1 chef 10.16.2
...spike
On Nov 26, 2012, at 1:42 PM, Chris wrote: Interesting. I don't have that file. What version are you running again? Sent from a phone
On Nov 26, 2012, at 9:27 AM, Spike Grobstein <
">
> wrote: I finally solved this issue.
For those that are curious, the solution was:
After emailing the couchdb mailing list, it turned out that the issue was that I had an empty chef.couch.compact file. After deleting that and running the compaction script again, I went from 40GB of data down to 11MB.
The issue with the empty .compact file is the thing that's fixed in newer versions of couch, so this might not be an issue for new users, but it was a real problem for us.
...spike
On Nov 20, 2012, at 1:01 PM, Spike Grobstein wrote: good catch.
I'm running 1.0.2 according to this:
chef-server:~$ curl localhost:5984 {"couchdb":"Welcome","version":"1.0.1"}
I'll look into getting that upgraded.
I'm still looking for a way to delete the old sandbox data, though. I have no idea how to do that. I don't think compaction will help since it's not revisions, it's straight-up obsolete documents.
Thanks!
...spike On Nov 20, 2012, at 12:36 PM, Brian Hatfield wrote: Ah, that looks correct enough to me.
Apologies if I've also missed this, but what version of Couch are you running?
If it's not 1.2, I strongly recommend you upgrade; that may help ensure that the compaction and cleanup tasks actually work. I noticed a huge improvement in compaction and such under 1.2 vs. previous versions myself.
Brian
|