openshift/crankcase — pull request #548 by markllama (2012-09-29 00:19:12+00:00)
Title: added cgroups setup

Implement Cgroup containment for Openshift gears.

Updates the rubygem-stickshift-node package.

Adds dependency on the libcgroup package.

This configures all of the cgroup subsystems under a single top group.
When new gears are created they are associated with a single cgroup under that top group.
The cgred rules are updated so that new processes owned by the gear's UNIX account are placed in to the cgroup.
The trap-user script is updated so the first action on login is to place the shell under the gear group.
cgroup settings are enforced from values in /etc/stickshift/resource-limit.conf.