Summary:
Calculates an optimal sample Container configuration.
Request specification:
Name |
Min/Max |
Type |
Description |
|
|
|
|
|
|
|
|
|
|
|
The projected number of Containers. |
|
|
|
|
Returns:
Name |
Min/Max |
Type |
Description |
|
|
The calculated sample configuration. |
Description:
If you know that a given Hardware Node will be hosting a certain maximum number of Containers, you can use the get_split_conf
call to calculate an optimal sample Container configuration, which can be used to create Containers. The calculation is done based on the available Hardware Node resources by dividing them equally between the projected number of Containers. Before creating Containers using the sample configuration produced by this call, it is important to validate the configuration with the validate
call.
The get_split_conf
call utilizes a Virtuozzo command-line tool called vzsplit
. For more information on vzsplit
please refer to Virtuozzo documentation.
Example:
Getting the sample configuration for the total of 20 Virtuozzo Containers.
Input
<packet version="4.0.0" id="2">
<target>vzaenvm</target>
<data>
<vzaenvm>
<get_split_conf
>
<number>20</number>
</get_split_conf
>
</vzaenvm>
</data>
</packet>
Output
<ns1:packet priority="0" version="4.0.0">
<ns1:origin>vzaenvm</ns1:origin>
<ns1:data>
<ns2:vzaenvm>
<ns2:env_config xsi:type="ns3:venv_configType">
<ns3:qos>
<ns3:id>avnumproc</ns3:id>
<ns3:hard>96</ns3:hard>
</ns3:qos>
<ns3:qos>
<ns3:id>cpuunits</ns3:id>
<ns3:hard>6677</ns3:hard>
</ns3:qos>
<ns3:qos>
<ns3:id>dcachesize</ns3:id>
<ns3:hard>1769472</ns3:hard>
<ns3:soft>1717933</ns3:soft>
</ns3:qos>
<ns3:qos>
<ns3:id>dgramrcvbuf</ns3:id>
<ns3:hard>497780</ns3:hard>
<ns3:soft>497780</ns3:soft>
</ns3:qos>
<ns3:qos>
<ns3:id>diskinodes</ns3:id>
<ns3:hard>88000</ns3:hard>
<ns3:soft>80000</ns3:soft>
</ns3:qos>
<ns3:qos>
<ns3:id>diskspace</ns3:id>
<ns3:hard>225280</ns3:hard>
<ns3:soft>204799</ns3:soft>
</ns3:qos>
<ns3:qos>
<ns3:id>kmemsize</ns3:id>
<ns3:hard>8692068</ns3:hard>
<ns3:soft>7901880</ns3:soft>
</ns3:qos>
<ns3:qos>
<ns3:id>lockedpages</ns3:id>
<ns3:hard>385</ns3:hard>
<ns3:soft>385</ns3:soft>
</ns3:qos>
<ns3:qos>
<ns3:id>numfile</ns3:id>
<ns3:hard>3072</ns3:hard>
</ns3:qos>
<ns3:qos>
<ns3:id>numflock</ns3:id>
<ns3:hard>337</ns3:hard>
<ns3:soft>307</ns3:soft>
</ns3:qos>
<ns3:qos>
<ns3:id>numiptent</ns3:id>
<ns3:hard>100</ns3:hard>
</ns3:qos>
<ns3:qos>
<ns3:id>numothersock</ns3:id>
<ns3:hard>400</ns3:hard>
</ns3:qos>
<ns3:qos>
<ns3:id>numproc</ns3:id>
<ns3:hard>400</ns3:hard>
</ns3:qos>
<ns3:qos>
<ns3:id>numpty</ns3:id>
<ns3:hard>40</ns3:hard>
</ns3:qos>
<ns3:qos>
<ns3:id>numsiginfo</ns3:id>
<ns3:hard>1024</ns3:hard>
</ns3:qos>
<ns3:qos>
<ns3:id>numtcpsock</ns3:id>
<ns3:hard>400</ns3:hard>
</ns3:qos>
<ns3:qos>
<ns3:id>oomguarpages</ns3:id>
<ns3:hard>2147483647</ns3:hard>
<ns3:soft>11701</ns3:soft>
</ns3:qos>
<ns3:qos>
<ns3:id>othersockbuf</ns3:id>
<ns3:hard>2136180</ns3:hard>
<ns3:soft>497780</ns3:soft>
</ns3:qos>
<ns3:qos>
<ns3:id>physpages</ns3:id>
<ns3:hard>2147483647</ns3:hard>
<ns3:soft>0</ns3:soft>
</ns3:qos>
<ns3:qos>
<ns3:id>privvmpages</ns3:id>
<ns3:hard>12871</ns3:hard>
<ns3:soft>11701</ns3:soft>
</ns3:qos>
<ns3:qos>
<ns3:id>shmpages</ns3:id>
<ns3:hard>1170</ns3:hard>
</ns3:qos>
<ns3:qos>
<ns3:id>tcprcvbuf</ns3:id>
<ns3:hard>2633960</ns3:hard>
<ns3:soft>995560</ns3:soft>
</ns3:qos>
<ns3:qos>
<ns3:id>tcpsndbuf</ns3:id>
<ns3:hard>2633960</ns3:hard>
<ns3:soft>995560</ns3:soft>
</ns3:qos>
<ns3:qos>
<ns3:id>vmguarpages</ns3:id>
<ns3:hard>2147483647</ns3:hard>
<ns3:soft>11701</ns3:soft>
</ns3:qos>
</ns2:env_config>
</ns2:vzaenvm>
</ns1:data>
</ns1:packet>