Editing UBC configuration examples

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 3: Line 3:
 
Table [[UBC configuration examples table]] contains example settings of the system resources
 
Table [[UBC configuration examples table]] contains example settings of the system resources
 
parameters. There are 4 example configurations — A, B, C and D, in the
 
parameters. There are 4 example configurations — A, B, C and D, in the
order of increasing container power.
+
order of increasing Virtual Environment power.
  
“Power” represents the power of the container. It is shown
+
“Power” represents the power of the Virtual Environment. It is shown
as the RAM size of the computer slash number of containers of
+
as the RAM size of the computer slash number of Virtual Environments of
 
this type that can be run on such a computer.  
 
this type that can be run on such a computer.  
  
Line 26: Line 26:
 
the units are explicitly specified). The natural units of measurement are the
 
the units are explicitly specified). The natural units of measurement are the
 
units in which the values are accepted by [[vzctl]] command and stored in
 
units in which the values are accepted by [[vzctl]] command and stored in
container configuration file.
+
Virtual Environment configuration file.
  
 
For parameters with names ending in “pages” the natural units of measurement are pages.
 
For parameters with names ending in “pages” the natural units of measurement are pages.
Line 36: Line 36:
  
 
=== Example A ===  
 
=== Example A ===  
This is a configuration of a most “light” container.
+
This is a configuration of a most “light” Virtual Environment.
 
It has 15 processes on average and can have up to 40 network connections.
 
It has 15 processes on average and can have up to 40 network connections.
 
This configuration allows to run a simple Web server, handling static and
 
This configuration allows to run a simple Web server, handling static and
Line 43: Line 43:
 
number of spawned processes and memory consumption.
 
number of spawned processes and memory consumption.
  
A computer with 2GB of RAM (+ 4GB swap) can run up to 400 of such containers.
+
A computer with 2GB of RAM (+ 4GB swap) can run up to 400 of such Virtual Environments.
  
Here is an example <code>pstree(1)</code> output inside such a container:
+
Here is an example <code>pstree(1)</code> output inside such a Virtual Environment:
 
<pre>[root@test /root]# pstree
 
<pre>[root@test /root]# pstree
 
init-+-crond
 
init-+-crond
Line 61: Line 61:
 
up to 80 network connections.
 
up to 80 network connections.
  
A computer with 2GB of RAM (+ 4GB swap) can run up to 120 of such containerrs.
+
A computer with 2GB of RAM (+ 4GB swap) can run up to 120 of such Virtual Environmentrs.
  
 
=== Example C ===
 
=== Example C ===
Line 69: Line 69:
 
up to 200 simultaneous clients can also work with this configuration. The
 
up to 200 simultaneous clients can also work with this configuration. The
 
configuration is designed for 200 processes on average, up to 500 network
 
configuration is designed for 200 processes on average, up to 500 network
connections and about 250MB of RAM for each container.
+
connections and about 250MB of RAM for each Virtual Environment.
  
 
=== Example D ===
 
=== Example D ===
Example D is a configuration for 1 container on a computer
+
Example D is a configuration for 1 Virtual Environment on a computer
 
and emulates a stand-alone server. It roughly corresponds to the default
 
and emulates a stand-alone server. It roughly corresponds to the default
 
configuration of a stand-alone Linux system.
 
configuration of a stand-alone Linux system.
Line 78: Line 78:
 
'''Caution''': it is not a safe configuration. Like a stand-alone Linux system,
 
'''Caution''': it is not a safe configuration. Like a stand-alone Linux system,
 
it can hang if too much memory is consumed. It isn't a security problem,
 
it can hang if too much memory is consumed. It isn't a security problem,
because it is a configuration for only 1 container on a computer.
+
because it is a configuration for only 1 Virtual Environment on a computer.
 
However, to make the configuration more robust and protect the system from
 
However, to make the configuration more robust and protect the system from
 
silent hangs, <code>[[numproc]]</code>, <code>[[kmemsize]]</code> and
 
silent hangs, <code>[[numproc]]</code>, <code>[[kmemsize]]</code> and
Line 88: Line 88:
  
 
For compatibility with future versions, the <code>limit</code>s of <code>[[vmguarpages]]</code>,
 
For compatibility with future versions, the <code>limit</code>s of <code>[[vmguarpages]]</code>,
<code>[[oomguarpages]]</code>, <code>[[physpages]]</code> should be set to [[LONG_MAX]]. The <code>barrier</code> of
+
<code>[[oomguarpages]]</code>, <code>[[physpages]]</code> should be set to [[MAX_ULONG]]. The <code>barrier</code> of
 
<code>[[physpages]]</code> should be set to 0.
 
<code>[[physpages]]</code> should be set to 0.

Please note that all contributions to OpenVZ Virtuozzo Containers Wiki may be edited, altered, or removed by other contributors. If you don't want your writing to be edited mercilessly, then don't submit it here.
If you are going to add external links to an article, read the External links policy first!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)

Templates used on this page: