Manage CPU Governor on linux
No dependencies defined
node['cpu']['governor']
- Defaults to "ondemand"
.cpu::affinity
- deprecatedcpu::default
- deprecatedcpu::governor
- Sets the CPU governer based on the attribute abovecpu_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
Actions
Properties
Examples
cpu_nice 1234 do
priority 12
end
cpu_nice 'set affinity for nginx' do
pid '/var/run/nginx.pid'
priority 19
end
Original Maintainer:: Guilhem Lettron
License:: Apache v2.0
This project exists thanks to all the people who contribute.
Thank you to all our backers!
Support this project by becoming a sponsor. Your logo will show up here with a link to your website.