Sophie

Sophie

distrib > Mageia > 7 > x86_64 > by-pkgid > ad68a08043dd538f790a10507bc4a38d > files > 1202

cherokee-1.2.103-17.1.mga7.x86_64.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
                "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Language" content="en-us" />
    <meta name="ROBOTS" content="ALL" />
    <meta http-equiv="imagetoolbar" content="no" />
    <meta name="MSSmartTagsPreventParsing" content="true" />
    <meta name="Keywords" content="cherokee web server httpd http" />
    <meta name="Description" content="Cherokee is a flexible, very fast, lightweight Web server. It is implemented entirely in C, and has no dependencies beyond a standard C library. It is embeddable and extensible with plug-ins. It supports on-the-fly configuration by reading files or strings, TLS/SSL (via GNUTLS or OpenSSL), virtual hosts, authentication, cache friendly features, PHP, custom error management, and much more." />
    <link href="media/css/cherokee_doc.css" rel="stylesheet" type="text/css" media="all" />
  </head>
<body>
<h2 id="_a_href_index_html_index_a_8594_a_href_config_html_configuration_a"><a href="index.html">Index</a> &#8594; <a href="config.html">Configuration</a></h2>
<div class="sectionbody">
</div>
<h2 id="_advanced_configuration">Advanced Configuration</h2>
<div class="sectionbody">
<div class="paragraph"><p>Through this section you can fine-tune several of Cherokee&#8217;s
parameters. You should not attempt to do so unless you really know
what you are doing. For most cases the default parameters will work
just fine.</p></div>
<div class="imageblock">
<div class="content">
<img src="media/images/admin_advanced0.png" alt="media/images/admin_advanced0.png" />
</div>
<div class="image-title">Warning</div>
</div>
<div class="paragraph"><p>You should at least read the chapter
<a href="cookbook_optimizations.html">Optimizing Cherokee</a> before you
start tweaking things here.</p></div>
<h3 id="connections">Connections</h3><div style="clear:left"></div>
<div class="ulist"><ul>
<li>
<p>
KeepAlive:
  Enables the global keep-alive support for the client requests. It
  increases the client performance by reusing a connection for more
  than one request. It should most probably be turned on.
</p>
</li>
<li>
<p>
Max keepalive reqs:
  This limits the number of HTTP requests that can be served by each
  keepalive connection. Keepalive connections improve performance, but
  surpassing certain amount of requests per each connection is an
  indicator that something out of the ordinary is happening. This
  prevents the appearance of any problems related to these situations.
</p>
</li>
<li>
<p>
Chunked encoding:
  Enabled by default to try to keep enabled Keep-Alive.
</p>
</li>
<li>
<p>
Polling Method: This affects the internal file descriptor polling
  method among the ones supported by the OS. The full list of options
  is <tt>epoll()</tt>, <tt>kqueue</tt>, <tt>poll()</tt>, <tt>Solaris ports</tt>, <tt>select()</tt> and
  <tt>Win32</tt>. Only the alternatives available for your specific
  architectures are shown. If you don&#8217;t know what this is or how this
  affects performance, just choose <tt>Automatic</tt>. This will choose the
  most efficient one among the present at any given time.
</p>
</li>
<li>
<p>
Sendfile min/max size:
  These allow to configure the range of file sizes that can be sent
  with <tt>sendfile()</tt>. Default: [32768 Bytes - 2 GB].
</p>
</li>
</ul></div>
<div class="imageblock">
<div class="content">
<img src="media/images/admin_advanced1.png" alt="media/images/admin_advanced1.png" />
</div>
<div class="image-title">Connections</div>
</div>
<h3 id="resources">Resources</h3><div style="clear:left"></div>
<div class="ulist"><ul>
<li>
<p>
Thread Number:
  Adjust the number of threads for Cherokee to work with. Increasing
  this will allow for better parallelization at the cost of system
  resources. Highly constrained environments such as embedded devices
  will probably be fine with just one. This doesn&#8217;t translate into
  just one connection at the time, since a thread can handle many.
</p>
</li>
<li>
<p>
Thread Policy:
  Defines the thread policy to be applied by the OS: FIFO, Round Robin
  or Dynamic.
</p>
</li>
<li>
<p>
File descriptors:
  This can alter the number of file descriptors handled by the server
  should handle. The default value is what <tt>ulimit -n</tt> reports. An
  increase in this value improves performance under very high server load.
</p>
</li>
<li>
<p>
Listening queue length: This specifies the size of the incoming
  connection queue. It is the effective buffer of connections that
  will be served even if there are no connection slots available at
  the moment.
</p>
</li>
<li>
<p>
Reuse connections:
  Cherokee implements an intelligent mechanism to reuse connections if
  possible, allowing it to improve performance by not having to
  reinitialize structures in memory that can serve perfectly well for
  more than one time. It defaults to 20. Though this mechanism is an obvious
  improvement, reducing this limit is useful for cases when a sudden
  burst of connections happens. In those cases it doesn&#8217;t make much
  sense to keep reusing many more connections than those of an average
  load for any other moment.
</p>
</li>
<li>
<p>
Log flush time:
  Time interval in seconds to wait between log updates. Defaults to 10
  seconds.
</p>
</li>
<li>
<p>
Nonces clean up time:
  Time interval in seconds between Nonce cache clean ups. Defaults to
  60 seconds.
</p>
</li>
</ul></div>
<div class="imageblock">
<div class="content">
<img src="media/images/admin_advanced2.png" alt="media/images/admin_advanced2.png" />
</div>
<div class="image-title">Resources</div>
</div>
<h3 id="io_cache">I/O cache</h3><div style="clear:left"></div>
<div class="ulist"><ul>
<li>
<p>
Status:
  Enabled by default. This is a system-wide setting required if you
  wish to enable caching in any of your virtual hosts. Useful for debugging.
</p>
</li>
<li>
<p>
Max pages:
  This specifies the maximum number of pages that are handled by the cache.
</p>
</li>
<li>
<p>
File Min Size:
  Specifies the smallest filesize limit to be cached.
</p>
</li>
<li>
<p>
File Max Size:
  Specifies the biggest filesize limit to be cached.
</p>
</li>
<li>
<p>
Lasting <em>stat</em>:
  Specifies the duration of the file information in the cache without
  refreshing.
</p>
</li>
<li>
<p>
Lasting <em>mmap</em>:
  Specifies how long the file contents last cached.
</p>
</li>
</ul></div>
<div class="imageblock">
<div class="content">
<img src="media/images/admin_advanced3.png" alt="media/images/admin_advanced3.png" />
</div>
<div class="image-title">IO/Cache</div>
</div>
<h3 id="special_files">Special Files</h3><div style="clear:left"></div>
<div class="ulist"><ul>
<li>
<p>
Panic action:
  This specifies the program that will be called in case the server
  fails. It defaults to <tt>cherokee-panic</tt>, which is provided with
  Cherokee. This in turn performs the actions specified in the
  <tt>CHEROKEE_PANIC_OUTPUT</tt> environment variable. If none is set, it will
  attempt to send an email to the system administrator with a
  backtrace of what happened. As a last resort, if no mailer is
  available in the system, it will simply try to show this information
  on screen if possible.
</p>
</li>
<li>
<p>
PID file:
  If specified, a PID file will be created in that path. This is
  useful to trace what is going on with Cherokee.
</p>
</li>
</ul></div>
<div class="imageblock">
<div class="content">
<img src="media/images/admin_advanced4.png" alt="media/images/admin_advanced4.png" />
</div>
<div class="image-title">Special files</div>
</div>
<h3 id="tls">TLS</h3><div style="clear:left"></div>
<div class="ulist"><ul>
<li>
<p>
DH parameters:
  Here you can specify the paths to your Diffie Hellman parameters PEM
  files for 512, 1024, 2048 and 4096 bits.
</p>
</li>
</ul></div>
<div class="imageblock">
<div class="content">
<img src="media/images/admin_advanced5.png" alt="media/images/admin_advanced5.png" />
</div>
<div class="image-title">TLS</div>
</div>
</div>
<div id="footer">
<div id="footer-text">
</div>
</div>
</body>
</html>