cookbook 'cgroups', '~> 0.0.1'
cgroups (1) Versions 0.0.1 Follow1
Installs and conigures Cgroups
cookbook 'cgroups', '~> 0.0.1', :supermarket
knife supermarket install cgroups
knife supermarket download cgroups
Description
This cookbook provides to install and configuring the utility Cgroups
Requirements
OS : Red Hat Enterprise Linux Server release 6.2 (Santiago)
Attributes
- default['cgroups']['controllers'] = [ "memory" , "cpu" ]
- default['cgroups']['group_name'] = "foobar"
- default['cgroups']['parameters'] = [ "memory.limit_in_bytes = 256M", "memory.memsw.limit_in_bytes = 256M" ]
- default['cgroups']['task-uid'] = "root"
- default['cgroups']['task-gid'] = "root"
- default['cgroups']['admin-uid'] = "root"
- default['cgroups']['admin-gid'] = "root"
- default['cgroups']['users'] = [ "root" ]
- default['cgroups']['command'] = "/opt/myprogram/bin/mycommand"
- default['cgroups']['service'] = "fooService"
Template
- cgconfig.conf.erb
the configuration file /etc/cgconfig.conf
- cgrules.conf.erb
the configuration file /etc/cgrules.conf
At moment this cookbook has some limitations.
- is not possible configure more groups
- is not possible configure for users some different controllers.. but work in progress.
Usage
- after launch cgroups recipe check
cat /cgroup/memory/myfoogroup/tasks
you should see the PIDs of your target processes - after a change in /etc/cgconfig.conf or /etc/cgrules.conf the recipe restarts a specify service (only if that service exists)
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
0.0.1 failed this metric
Failure: Cookbook has 1 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.0.1 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
0.0.1 failed this metric
FC064: Ensure issues_url is set in metadata: cgroups/metadata.rb:1
FC065: Ensure source_url is set in metadata: cgroups/metadata.rb:1
FC066: Ensure chef_version is set in metadata: cgroups/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: cgroups/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.0.1 passed this metric
Testing File Metric
0.0.1 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
0.0.1 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
0.0.1 failed this metric
0.0.1 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
0.0.1 failed this metric
FC064: Ensure issues_url is set in metadata: cgroups/metadata.rb:1
FC065: Ensure source_url is set in metadata: cgroups/metadata.rb:1
FC066: Ensure chef_version is set in metadata: cgroups/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: cgroups/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.0.1 passed this metric
Testing File Metric
0.0.1 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
0.0.1 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
0.0.1 failed this metric
FC065: Ensure source_url is set in metadata: cgroups/metadata.rb:1
FC066: Ensure chef_version is set in metadata: cgroups/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: cgroups/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.0.1 passed this metric
Testing File Metric
0.0.1 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
0.0.1 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
0.0.1 failed this metric
0.0.1 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