Skip to content
Chef cookbook to manage CPU governor
Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.delivery
.github
attributes
libraries
recipes
resources
spec
test/cookbooks/test
.gitignore
.kitchen.dokken.yml
.kitchen.yml
.travis.yml
Berksfile
CHANGELOG.md
Gemfile
LICENSE
README.md
chefignore
metadata.rb
supermarket.pem.enc

README.md

cpu Cookbook

Cookbook Version Build Status

Manage CPU Governor on linux

Requirements

Platforms

  • Ubuntu
  • Debian

Chef

  • Chef 12.5+

Cookbooks

No dependencies defined

Attributes

  • node['cpu']['governor'] - Defaults to "ondemand".

Recipes

  • cpu::affinity - deprecated
  • cpu::default - deprecated
  • cpu::governor - Sets the CPU governer based on the attribute above

Resources

cpu_affinity

Actions

  • set: Default action.

Properties

  • pid:
  • cpu:

Examples

cpu_affinity 1234 do
  cpu 0
end

Set affinity to processor 0,1,2 for process nginx

cpu_affinity 'set affinity for nginx' do
  pid '/var/run/nginx.pid'
  cpu '0-2'
end

cpu_nice

Actions

  • set: Default action.

Properties

  • pid:
  • priority:

Examples

cpu_nice 1234 do
  priority 12
end
cpu_nice 'set affinity for nginx' do
  pid '/var/run/nginx.pid'
  priority 19
end

License and Maintainer

Maintainer:: Guilhem Lettron (guilhem.lettron@youscribe.com)

License:: Apache v2.0

You can’t perform that action at this time.