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 Recommendation: kmemsize.lim-kmemsize.bar should be > 245760 \ (currently, 221184) Recommendation: dgramrcvbuf.bar should be > 132096 (currently, 98304) Validation completed: success
Now
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. |
||||
|