Scaling Container ConfigurationAny 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
The session below shows how to produce a configuration sample 50% heavier than the
# 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
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. |
||||
|