Skip to content

Instantly share code, notes, and snippets.

@dnishimura
Last active October 24, 2017 19:24
Show Gist options
  • Save dnishimura/d47ba8a2bc3f479a58e0a2dbc96543ac to your computer and use it in GitHub Desktop.
Save dnishimura/d47ba8a2bc3f479a58e0a2dbc96543ac to your computer and use it in GitHub Desktop.
CGroup

yum install libcgroup

sudo service cgconfig start

sudo vim /etc/cgconfig.conf

Add the samza group (https://gist.github.com/dnishimura/79d1e97ec064e3f79805ebc1d23161f2) to the conf file

sudo service cgconfig restart

sudo cgcreate -t <username>:<group> -a <username>:<group> -g memory,cpuset:/samza

Run the unit tests: cgexec -g memory,cpuset:samza ./gradlew clean build

Note: Everytime you run sudo service cgconfig restart, you have to run the cgcreate command above afterwards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment