Skip to content

k3cgrouparch

Action-CI Documentation Status Package

Set up cgroup directory tree according to configuration saved in zookeeper, and add pid to cgroup accordingly.

k3cgrouparch is a component of pykit3 project: a python3 toolkit set.

Installation

pip install k3cgrouparch

Quick Start

from k3cgrouparch import manager

# Initialize cgroup manager with zookeeper config
mgr = manager.Manager(zk_hosts='127.0.0.1:2181')

API Reference

k3cgrouparch

Name

cgrouparch

A python lib used to build cgroup directory tree, add set cgroup pid.

Status

This library is considered production ready.

Description

This lib is used to set up cgroup directory tree according to configuration saved in zookeeper, and add pid to cgroup accordingly.

License

The MIT License (MIT) - Copyright (c) 2015 Zhang Yanpo (张炎泼)