https://github.com/sous-chefs/control_groups
Development repository for the control_groups cookbook
https://github.com/sous-chefs/control_groups
chef chef-cookbook chef-resource control-groups hacktoberfest managed-by-terraform
Last synced: 3 months ago
JSON representation
Development repository for the control_groups cookbook
- Host: GitHub
- URL: https://github.com/sous-chefs/control_groups
- Owner: sous-chefs
- License: apache-2.0
- Created: 2012-08-23T22:48:26.000Z (almost 14 years ago)
- Default Branch: main
- Last Pushed: 2024-12-04T16:10:41.000Z (over 1 year ago)
- Last Synced: 2025-07-08T06:03:25.673Z (12 months ago)
- Topics: chef, chef-cookbook, chef-resource, control-groups, hacktoberfest, managed-by-terraform
- Language: Ruby
- Homepage: https://supermarket.chef.io/cookbooks/control_groups
- Size: 115 KB
- Stars: 4
- Watchers: 22
- Forks: 12
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Control Groups
[](https://supermarket.chef.io/cookbooks/control_groups)
[](https://github.com/sous-chefs/control_groups/actions?query=workflow%3Aci)
[](#backers)
[](#sponsors)
[](https://opensource.org/licenses/Apache-2.0)
Manage control groups (cgroups) via chef!
## Maintainers
This cookbook is maintained by the Sous Chefs. The Sous Chefs are a community of Chef cookbook maintainers working together to maintain important cookbooks. If you’d like to know more please visit [sous-chefs.org](https://sous-chefs.org/) or come chat with us on the Chef Community Slack in [#sous-chefs](https://chefcommunity.slack.com/messages/C2V7B88SF).
## Example usage
```ruby
control_groups_entry 'lackresources' do
memory('memory.limit_in_bytes' => '1M')
cpu('cpu.shares' => 1)
end
control_groups_rule 'someuser' do
controllers [:cpu, :memory]
destination 'lackresources'
end
```
This will restrict all processes created by `someuser` into the `lackresources` control group.
## Contributors
This project exists thanks to all the people who [contribute.](https://opencollective.com/sous-chefs/contributors.svg?width=890&button=false)
### 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.









