cookbook 'cpu', '= 3.0.9'
cpu
(19) Versions
3.0.9
-
Follow9
Manage CPU Governor on linux
cookbook 'cpu', '= 3.0.9', :supermarket
knife supermarket install cpu
knife supermarket download cpu
cpu Cookbook
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
- 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
Original Maintainer:: Guilhem Lettron
License:: Apache v2.0
Contributors
This project exists thanks to all the people who contribute.
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.
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.
3.0.9 - 2023-10-31
3.0.8 - 2023-09-28
3.0.7 - 2023-09-04
3.0.6 - 2023-07-10
3.0.5 - 2023-05-17
3.0.4 - 2023-05-03
3.0.3 - 2023-04-01
3.0.2 - 2023-03-02
- Standardise files with files in sous-chefs/repo-management
3.0.1 - 2023-02-14
- Standardise files with files in sous-chefs/repo-management
3.0.0 - 2022-08-04
- Remove delivery folder
- resolved cookstyle error: resources/affinity.rb:32:1 refactor:
Chef/Modernize/ClassEvalActionClass
- resolved cookstyle error: resources/nice.rb:30:1 refactor:
Chef/Modernize/ClassEvalActionClass
- Chef 17 updates: enable
unified_mode
on all resources - Bump required Chef Infra Client to >= 15.3
2.1.2 - 2021-08-31
- Standardise files with files in sous-chefs/repo-management
v2.1.0 (2020-10-24)
- resolved cookstyle error: metadata.rb:6:1 refactor:
ChefRedundantCode/LongDescriptionMetadata
- resolved cookstyle error: metadata.rb:18:1 refactor:
ChefModernize/RespondToInMetadata
- resolved cookstyle error: spec/unit/recipes/default_spec.rb:29:7 warning:
ChefDeprecations/DeprecatedChefSpecPlatform
- resolved cookstyle error: spec/unit/recipes/default_spec.rb:39:7 warning:
ChefDeprecations/DeprecatedChefSpecPlatform
- resolved cookstyle error: spec/unit/recipes/default_spec.rb:49:7 warning:
ChefDeprecations/DeprecatedChefSpecPlatform
- Adoption by Sous-Chefs
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
3.0.9 passed this metric
Contributing File Metric
3.0.9 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
Cookstyle Metric
3.0.9 passed this metric
No Binaries Metric
3.0.9 passed this metric
Testing File Metric
3.0.9 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
3.0.9 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 include a tag that matches this cookbook version number
3.0.9 passed this metric
3.0.9 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
Cookstyle Metric
3.0.9 passed this metric
No Binaries Metric
3.0.9 passed this metric
Testing File Metric
3.0.9 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
3.0.9 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 include a tag that matches this cookbook version number
3.0.9 passed this metric
3.0.9 passed this metric
Testing File Metric
3.0.9 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
3.0.9 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 include a tag that matches this cookbook version number
3.0.9 failed this metric
3.0.9 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 include a tag that matches this cookbook version number