RE: Re: Couch database growing.. Can't compact (Performance)


Well, I finally got the compact and the views successfully. However, when clicking on Status, it can take 3-5 minutes for the results to return in the webui. Ii also drives the CPU on the chef-server to 50-60%. We only have about 80 or so clients, so I am a bit concerned.

The Chef server is running as a VM with 2 CPU’s ad 2 GB of RAM and the Virtual server is not overloaded.

I need to look into tuning this a bit as we have a large shop (3500+ servers). Anyone have any tips?


-----Original Message-----
From: AJ Christensen []
Sent: Saturday, February 04, 2012 1:16 AM
Subject: [chef] Re: Couch database growing… Can’t compact

Is there a couchdb process running?

On 4 February 2012 19:11, Van Fossan,Randy wrote:

I am trying to run a compact on the chef database and the instructions
on the Wiki are not working… It looks like couchdb isn’t running at
the advertised port. However, netstat doesn’t show it either.

What am I missing? Doesn’t chef-server utilize that port to
communicate with the database?

I run this command…

curl -H “Content-Type: application/json” -X POST


I get -> curl: (7) couldn’t connect to host



From: Adam Jacob []
Sent: Friday, February 03, 2012 11:40 PM
Subject: [chef] Re: remote_directory & notifies

Nice memory, Peter. :slight_smile:


Opscode, Inc.

Adam Jacob, Chief Customer Officer

T: (206) 619-7151 E:

On Feb 3, 2012, at 4:00 PM, Peter Struijk wrote:

This used to be a bug:

On Fri, Feb 3, 2012 at 3:51 PM, Max Gorbul wrote:


I have create a repo to test remote_directory resource. It work like
expected. Flag file is created only when folder is created/updated.


On Fri, Feb 3, 2012 at 3:38 PM, Adam Jacob wrote:

Have you filed a bug?


Opscode, Inc.
Adam Jacob, Chief Customer Officer
T: (206) 619-7151 E:

On Feb 3, 2012, at 2:24 PM, Jason J. W. Williams wrote:

As an FYI to everyone, remote_directory will fire its "notifies"
clauses EVERY time the recipe runs, not just when files in the source
directory change.


On Wed, Feb 1, 2012 at 2:34 PM, Max Gorbul wrote:

it won’t notify subscribers if there are no differences between
source and target dirs/files


On Wed, Feb 1, 2012 at 11:59 AM, Jason J. W. Williams wrote:

If one uses a remote_directory directive, and none of the files are
different between the source and target dirs, will any of the
notifies attached to the remote_directory block be fired? Thank you in advance!