Previous page

Next page

Locate page in Contents

Print this page

Scaling Container Configuration

Any configuration or configuration sample file can prove insufficient for your needs. You might have an application which does not fit into existing configurations. The easiest way of producing a Container configuration is to scale an existing one.

Scaling produces a “heavier” or “lighter” configuration in comparison with an existing one. All the parameters of the existing configuration are multiplied by a given number. A heavier configuration is produced with a factor greater than 1, and a lighter one – with a factor between 0 and 1.

Note: If you create a new sample on the basis of an existing sample using the vzcfgscale command line utility, the resulting Container sample is put to the /etc/vz/conf directory. This sample can then be used by prlctl create when creating a new Container on its basis.

The session below shows how to produce a configuration sample 50% heavier than the basic configuration shipped with Virtuozzo:

# cd /etc/vz/conf

# vzcfgscale -a 1.5 -o ve-improved.conf-sample ve-basic.conf-sample

# vzcfgvalidate ve-improved.conf-sample

Validation completed: success

Now you can use the improved configuration file to create new Containers.

It is possible to use the same technique for scaling configurations of the existing Containers. Notice that the output file cannot be the same as the file being scaled. You have to save the scaling results into an intermediate file.