Ohai::Config[:disable_plugins] = [ "password", "rackspace", "dmi", "dmi_common" ]Instead of N calls to Ohai::Config, which is over-writing the value.AdamOn Dec 9, 2011, at 9:45 AM, Chris wrote:I've been working on disabling plugins, but it doesn't seem to be working. I've added these to client.rb, but when running the client with debug output they still get loaded. Does order matter?Ohai::Config[:disabled_plugins] = ["passwd"]Ohai::Config[:disabled_plugins] = ["rackspace"]Ohai::Config[:disabled_plugins] = ["dmi"]Ohai::Config[:disabled_plugins] = ["dmi_common"]Ohai::Config[:disabled_plugins] = ["erlang"]Ohai::Config[:disabled_plugins] = ["groovy"]Ohai::Config[:disabled_plugins] = ["php"]Ohai::Config[:disabled_plugins] = ["eucalyptus"]Ohai::Config[:disabled_plugins] = ["network_listeners"]Ohai::Config[:disabled_plugins] = ["mono"]On Fri, Dec 9, 2011 at 8:34 AM, Daniel DeLeo < " target="_blank"> > wrote:
Disabling unneeded ohai plugins will probably provide the biggest benefit:
On Friday, December 9, 2011 at 7:46 AM, Chris wrote:
> ruby 1.8.7 (2011-02-18 patchlevel 334) -- CentOS 5.5(mostly)
http://wiki.opscode.com/display/chef/Disabling+Ohai+Plugins
You can also experiment with Ruby Enterprise Edition. The changes to memory allocation and GC tend to reduce heap fragmentation, which will in turn reduce RSS when chef-client is sleeping.
--
Dan DeLeo
--
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Archive powered by MHonArc 2.6.16.