Create and manage cgroups from Chef
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
attributes
libraries
providers
recipes
resources
CHANGELOG.md
README.md
metadata.rb

README.md

Control Groups

Manage control groups (cgroups) via chef!

Example usage:

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.

Repository: