{"name":"cpu","version":"2.0.0","description":"Manage CPU Governor on linux","long_description":"# cpu Cookbook\n[![Cookbook Version](https://img.shields.io/cookbook/v/cpu.svg)](https://supermarket.getchef.com/cookbooks/cpu) [![Build Status](http://img.shields.io/travis/redguide/cpu/master.svg)](https://travis-ci.org/redguide/cpu)\n\nManage CPU Governor on linux\n\n## Requirements\n\n### Platforms\n\n- Ubuntu\n- Debian\n\n### Chef\n\n- Chef 12.5+\n\n### Cookbooks\n\n_No dependencies defined_\n\n\n## Attributes\n\n- `node['cpu']['governor']` - Defaults to `\"ondemand\"`.\n\n## Recipes\n\n- `cpu::affinity` - deprecated\n- `cpu::default` - deprecated\n- `cpu::governor` - Sets the CPU governer based on the attribute above\n\n## Resources\n\n- [cpu_affinity](#cpu_affinity)\n- [cpu_nice](#cpu_nice)\n\n### cpu_affinity\n\n#### Actions\n\n- set: Default action.\n\n#### Properties\n\n- pid:\n- cpu:\n\n#### Examples\n\n```ruby\ncpu_affinity 1234 do\n  cpu 0\nend\n```\n\nSet affinity to processor 0,1,2 for process nginx\n\n```ruby\ncpu_affinity 'set affinity for nginx' do\n  pid '/var/run/nginx.pid'\n  cpu '0-2'\nend\n```\n\n### cpu_nice\n\n#### Actions\n\n- set: Default action.\n\n#### Properties\n\n- pid:\n- priority:\n\n#### Examples\n\n```ruby\ncpu_nice 1234 do\n  priority 12\nend\n```\n\n```ruby\ncpu_nice 'set affinity for nginx' do\n  pid '/var/run/nginx.pid'\n  priority 19\nend\n```\n\n## License and Maintainer\n\nMaintainer:: Guilhem Lettron ([guilhem.lettron@youscribe.com](mailto:guilhem.lettron@youscribe.com))\n\nLicense:: Apache v2.0\n","maintainer":"Guilhem Lettron","maintainer_email":"guilhem@lettron.fr","license":"Apache-2.0","platforms":{"ubuntu":">= 0.0.0","debian":">= 0.0.0","redhat":">= 0.0.0","fedora":">= 0.0.0","scientific":">= 0.0.0","oracle":">= 0.0.0","amazon":">= 0.0.0"},"dependencies":{},"recommendations":{},"suggestions":{},"conflicting":{},"providing":{},"replacing":{},"attributes":{},"groupings":{},"recipes":{},"source_url":"https://github.com/redguide/cpu","issues_url":"https://github.com/redguide/cpu/issues","chef_version":[[">= 12.5"]],"ohai_version":[]}