Skip to content
Snippets Groups Projects
Commit f7067319 authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

User-guide: add references to example configuration files.

parent 64ab6868
No related merge requests found
......@@ -5,7 +5,8 @@
-->
<!ENTITY tnt_version "@TARANTOOL_VERSION@">
<!-- Include the standard ISO 8879 publishing entities -->
<!ENTITY % isopub SYSTEM "http://www.w3.org/2003/entities/iso8879/isopub.ent">
<!ENTITY % isopub PUBLIC "ISO 8879:1986//ENTITIES Publishing//EN//XML"
"http://www.w3.org/2003/entities/iso8879/isopub.ent">
%isopub;
<!--
vim: syntax=dtd
......
......@@ -181,32 +181,50 @@ lsn:4 tm:1301572313.691 t:65534 127.0.0.1:52728 UPDATE_FIELDS n:0flags:00000000
<section>
<title>The option file</title>
<para>
All advanced configuration parameters must be specified in an option
file, which is required for server start.
If no path to option file is specified on the command line (see
<option xlink:href="#config-option"
xlink:title="--config=...">--config</option>),
the server looks for a file named <filename>tarantool.cfg</filename>
in the current working directory.
</para>
<para>
To facilitate centralized and automated configuration
management, runtime configuration modifications are supported
solely through <emphasis role="tntadmin"
xlink:href="tarantool-user-guide#reload-configuration"
xlink:title="reload configuration"
xlink:role="http://docbook.org/xlink/role/olink">reload
configuration</emphasis>
administrative statement. Thus, the procedure to change Tarantool
configuration at runtime is to edit the configuration file.
This ensures that, should the server get killed or restart, no
unexpected changes to configuration can occur.
</para>
<para>
Not all configuration file settings are changeable at runtime: such
settings will be specially outlined in this reference.
</para>
<para>
All advanced configuration parameters must be specified in an
option file, which is required for server start. If no path to
option file is specified on the command line (see
<option xlink:href="#config-option"
xlink:title="--config=...">--config</option>),
the server looks for a file named <filename>tarantool.cfg</filename>
in the current working directory.
</para>
<para>
To facilitate centralized and automated configuration
management, runtime configuration modifications are supported
solely through <emphasis role="tntadmin"
xlink:href="tarantool-user-guide#reload-configuration"
xlink:title="reload configuration"
xlink:role="http://docbook.org/xlink/role/olink">reload
configuration</emphasis> administrative statement. Thus, the
procedure to change Tarantool configuration at runtime is to
edit the configuration file. This ensures that, should the
server get killed or restart, no unexpected changes to
configuration can occur.
</para>
<para>
Not all configuration file settings are changeable at runtime:
such settings will be highlighted in this reference.
</para>
<para>
Tarantool maintains a set of all allowed configuration
parameters in two template files, which are easy to maintain
and extend:
<filename xlink:href="https://github.com/mailru/tarantool/blob/master/cfg/core_cfg.cfg_tmpl">cfg/core_cfg.cfg_tmpl</filename>,
<filename xlink:href="https://github.com/mailru/tarantool/blob/master/mod/box/box_cfg.cfg_tmpl">mod/box/box_cfg.cfg_tmpl</filename>.
These files can always be used as a reference for any
parameter in this manual.
</para>
<para>In addition, two working examples can be found in the source tree:
<filename xlink:href="https://github.com/mailru/tarantool/blob/master/test/box/tarantool.cfg">test/box/tarantool.cfg</filename>,
<filename xlink:href="https://github.com/mailru/tarantool/blob/master/test/box_big/tarantool.cfg">test/box_big/tarantool.cfg</filename>.
</para>
<section>
<title>Basic parameters</title>
<para>Parameter1</para>
</section>
</section>
</chapter>
......
#
# Limit of memory used to store tuples to 100MB
# (0.1 GB)
# This effectively limits the memory, used by
# Tarantool. However, index and connection memory
# is stored outside the slab allocator, hence
# the effective memory usage can be higher (sometimes
# twice as high).
#
slab_alloc_arena = 0.1
#
# Store the pid in this file. Relative to
# startup dir.
#
pid_file = "box.pid"
#
# Pipe the logs into the following process.
# Use -a rather than --append to work correctly on FreeBSD
#
logger="tee -a tarantool.log"
#
# Read only and read-write port.
primary_port = 33013
# Read-only port.
secondary_port = 33014
#
# The port for administrative commands.
#
admin_port = 33015
#
# Each write ahead log contains this many rows.
# When the limit is reached, Tarantool closes
# the WAL and starts a new one.
rows_per_wal = 50
# Define a simple namespace with 1 HASH-based
# primary key.
namespace[0].enabled = 1
namespace[0].index[0].type = "HASH"
namespace[0].index[0].unique = 1
......
......@@ -3,7 +3,7 @@ slab_alloc_arena = 0.1
pid_file = "box.pid"
# Use -a not -a to work correctly on FreeBSD
# Use -a rather than --append to work correctly on FreeBSD
#
logger="tee -a tarantool.log"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment