Cgroup_Module

Control group interfacing
extends Module\Skeleton\Standard implements Opcenter\Contracts\Hookable
Methods Summary
public
# get_usage( string $controller )
Get controller usage
public
# get_controllers( )
Get cgroup controllers
public
# get_cgroup( )
Get cgroup name
public
# get_limits( )
Get configured limits
public
# enabled( )
cgroups enabled for site
public
# _verify_conf( Opcenter\Service\ConfigurationContext $ctx )
public
public
public
public
public
public
# _edit_user( string $userold , string $usernew , array $oldpwd )
public
public
# _cron( Cronus $cron )
Methods inherited from Module\Skeleton\Standard
__construct(), setUserParameters(), autoloadModule(), __wakeup(), _invoke(), __debugInfo(), getExportedFunctions(), _reset(), cleanUserParameters(), query()
Constants Summary
public string CGROUP_LOCATION
# '/sys/fs/cgroup'
public array DEPENDENCY_MAP
# array ( 0 => 'siteinfo', )
public int DEFAULT_MEMORY
# 512
public int DEFAULT_CPU
# 10240
public int MAX_PROCS
in MB
# 25
public array METRIC_ATTR_CPU_USAGE
# array ( 0 => 'c-cpuacct-usage', 1 => 'c-cpuacct-system', 2 => 'c-cpuacct-user', )
Constants inherited from Module\Skeleton\Standard
DEPENDENCY_MAP
Properties Summary
protected $exportedFunctions

# array ( '*' => 11, )
Properties inherited from Module\Skeleton\Standard
$exportedFunctions, $username, $password, $domain, $user_id, $group_id, $permission_level, $session_id, $site, $site_id