cpu Cookbook
(opens in a new tab)
(opens in a new tab)
(opens in a new tab)
Manage CPU Governor on linux
Requirements
Platforms
- Ubuntu
- Debian
- Centos
Chef
- Chef 15.3+
Cookbooks
No dependencies defined
Attributes
node['cpu']['governor']- Defaults to"ondemand".
Recipes
cpu::affinity- deprecatedcpu::default- deprecatedcpu::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
endSet affinity to processor 0,1,2 for process nginx
cpu_affinity 'set affinity for nginx' do
pid '/var/run/nginx.pid'
cpu '0-2'
endcpu_nice
Actions
- set: Default action.
Properties
- pid:
- priority:
Examples
cpu_nice 1234 do
priority 12
endcpu_nice 'set affinity for nginx' do
pid '/var/run/nginx.pid'
priority 19
endLicense and Maintainer
Original Maintainer:: Guilhem Lettron
License:: Apache v2.0
Contributors
This project exists thanks to all the people who contribute. (opens in a new tab)
Backers
Thank you to all our backers!
Sponsors
Support this project by becoming a sponsor. Your logo will show up here with a link to your website.