Methods |
public
|
get_usage(string $controller): array|false
Get controller usage
Returns
usage or controller exposes no data
|
#
|
public
|
get_controllers(): string[]
Get available system cgroup controllers
Get available system cgroup controllers
|
#
|
public
|
get_cgroup(): string|null
Get cgroup name
|
#
|
public
|
get_limits(): array
Get configured limits
|
#
|
public
|
reset_peak_memory(): void
Reset max memory usage
|
#
|
public
|
enabled(): bool
cgroups enabled for site
|
#
|
public
|
_verify_conf(ConfigurationContext $ctx): bool
|
#
|
public
|
_create()
|
#
|
public
|
_delete()
|
#
|
public
|
_edit()
|
#
|
public
|
_create_user(string $user)
|
#
|
public
|
_delete_user(string $user)
|
#
|
public
|
_edit_user(string $userold, string $usernew, array $oldpwd)
|
#
|
public
|
_housekeeping()
|
#
|
public
|
freeze(string $spec): bool
Convert site from thawed to frozen state
Convert site from thawed to frozen state
Parameters
$spec |
site, site id, domain, invoice or any matchable identifier
|
|
#
|
public
|
thaw(string $spec): bool
Convert site from frozen to thawed state
Convert site from frozen to thawed state
Parameters
$spec |
site, site id, domain, invoice or any matchable identifier
|
|
#
|
public
|
frozen(string $spec): bool
Site is in cgroup frozen state
Site is in cgroup frozen state
Parameters
$spec |
site, site id, domain, invoice or any matchable identifier
|
|
#
|
public
|
version(): int
|
#
|
public
|
_cron(Cronus $cron)
|
#
|