User`s guide

46
C HAPTER 6
Managing Resources
The main goal of resource control in OpenVZ is to provide Service Level Management or
Quality of Service (QoS) for Virtual Private Servers. Correctly configured resource control
settings prevent serious impacts resulting from the resource over-usage (accidental or malicious)
of any Virtual Private Server on the other Virtual Private Servers. Using resource control
parameters for Quality of Service management also allows to enforce fairness of resource usage
among Virtual Private Servers and better service quality for preferred VPSs, if necessary.
In This Chapter
What are Resource Control Parameters?............................................................................... 46
Managing Disk Quotas.......................................................................................................... 47
Managing CPU Share............................................................................................................ 53
Managing System Parameters............................................................................................... 55
Managing VPS Resources Configuration ............................................................................. 60
What are Resource Control
Parameters?
The system administrator controls the resources available to a Virtual Private Server through a
set of resource management parameters. All these parameters are defined either in the OpenVZ
global configuration file (
/etc/sysconfig/vz), or in the respective VPS configuration
files (
/etc/sysconfig/vz-scripts/VPSID.conf), or in both. You can set them by
manually editing the corresponding configuration files, or by using the OpenVZ command-line
utilities. These parameters can be divided into the disk, network, CPU, and system categories.
The table below summarizes these groups:
Group Description Parameter names Explained in
Disk This group of parameters determines
disk quota in OpenVZ. The OpenVZ
disk quota is realized on two levels:
the per-VPS level and the per-
user/group level. You can turn on/off
disk quota on any level and configure
its settings.
DISK_QUOTA, DISKSPACE,
DISKINODES, QUOTATIME,
QUOTAUGIDLIMIT
Managing Disk
Quotas
CPU This group of parameters defines the
CPU time different VPSs are
guaranteed to receive.
VE0CPUUNITS, CPUUNITS
Managing CPU
Share