[chef] Re: Re: Data Bag Search Delay


Chronological Thread 
  • From: Greg Zapp < >
  • To:
  • Subject: [chef] Re: Re: Data Bag Search Delay
  • Date: Thu, 3 Oct 2013 22:07:49 +1300

Wow.. This is going to throw a wrench in my grand orchestration plans.. As one of the primary methods for getting information into a chef run...  Having to insert delays into some other system because data saved into Chef server isn't actually available is not ideal.


On Thu, Oct 3, 2013 at 5:00 PM, Seth Falcon < " target="_blank"> > wrote:

"> writes:
> It takes 60 seconds from when I call "knife data bag from file somebag
> path/to/some.json" until "knife search somebag" will return the answer.
> Is there anything that can be done to make that faster?

The default config for the solr commit interval is 60000 ms (1
minute). Depending on your load and hardware specs, you can likely
reduce this time to reduce the latency between data updates and
search-ability of the data.

The config would go into /etc/chef-server/chef-server.rb and look like:

    chef_solr['commit_interval'] = 10000

+ seth


--
Seth Falcon | Development Lead | Opscode | @sfalcon





Archive powered by MHonArc 2.6.16.

§