cookbook 'cpu', '= 2.0.0'
cpu
(18) Versions
2.0.0
-
Follow9
Manage CPU Governor on linux
cookbook 'cpu', '= 2.0.0', :supermarket
knife supermarket install cpu
knife supermarket download cpu
cpu Cookbook
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
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
CPU Changelog
This file is used to list changes made in each version of the cpu cookbook.
v2.0.0 (2017-04-07)
- This cookbook now requires Chef 12.5 or later
- Fixed failures on RHEL in the affinity recipe
- Fixed helper methods that were leaking into the global Ruby namespace
- Added support for RHEL derivatives to the metadata
- Updated the affinity resource to install the necessary package. There is no longer a need to include the recipe first now.
- Added deprecation warnings to the legacy recipes that are no longer required
- Converted the LWRPs to custom resources. This adds why-run support for the resources
- Added full integration testing on RHEL/Ubuntu in Travis CI
- Simplified testing with Delivery local
- Added a test recipe that tests the governor recipe and also the resources. Previously only the empty default recipe was being tested
- Removed test gems from the Gemfile as testing should be done with ChefDK instead
- Added a basic Chefspec test for the governor recipe
- Updated the governor recipe to warn instead of failing on RHEL 7 and Fedora
v1.0.0 (2016-11-02)
- Moved maintenance to the redguide group
- Added use_inline_resources to the providers to properly notify on updates
- Removed Chef 10 compatibility
- Resolved all cookstyle warnings
- Added new metadata for Supermarket
- Added testing in Travis
- Added local testing with rake and test kitchen
- Added the Apache 2.0 license file
- Add a Berksfile
- Refactored the Readme
- Added a chefignore file
Collaborator Number Metric
2.0.0 passed this metric
Contributing File Metric
2.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
2.0.0 passed this metric
No Binaries Metric
2.0.0 passed this metric
Testing File Metric
2.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
2.0.0 passed this metric
2.0.0 passed this metric
2.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
2.0.0 passed this metric
No Binaries Metric
2.0.0 passed this metric
Testing File Metric
2.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
2.0.0 passed this metric
2.0.0 passed this metric
2.0.0 passed this metric
Testing File Metric
2.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
2.0.0 passed this metric
2.0.0 failed this metric
2.0.0 passed this metric