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 branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
--> -->
<!ENTITY tnt_version "@TARANTOOL_VERSION@"> <!ENTITY tnt_version "@TARANTOOL_VERSION@">
<!-- Include the standard ISO 8879 publishing entities --> <!-- 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; %isopub;
<!-- <!--
vim: syntax=dtd vim: syntax=dtd
......
...@@ -181,32 +181,50 @@ lsn:4 tm:1301572313.691 t:65534 127.0.0.1:52728 UPDATE_FIELDS n:0flags:00000000 ...@@ -181,32 +181,50 @@ lsn:4 tm:1301572313.691 t:65534 127.0.0.1:52728 UPDATE_FIELDS n:0flags:00000000
<section> <section>
<title>The option file</title> <title>The option file</title>
<para> <para>
All advanced configuration parameters must be specified in an option All advanced configuration parameters must be specified in an
file, which is required for server start. option file, which is required for server start. If no path to
If no path to option file is specified on the command line (see option file is specified on the command line (see
<option xlink:href="#config-option" <option xlink:href="#config-option"
xlink:title="--config=...">--config</option>), xlink:title="--config=...">--config</option>),
the server looks for a file named <filename>tarantool.cfg</filename> the server looks for a file named <filename>tarantool.cfg</filename>
in the current working directory. in the current working directory.
</para> </para>
<para> <para>
To facilitate centralized and automated configuration To facilitate centralized and automated configuration
management, runtime configuration modifications are supported management, runtime configuration modifications are supported
solely through <emphasis role="tntadmin" solely through <emphasis role="tntadmin"
xlink:href="tarantool-user-guide#reload-configuration" xlink:href="tarantool-user-guide#reload-configuration"
xlink:title="reload configuration" xlink:title="reload configuration"
xlink:role="http://docbook.org/xlink/role/olink">reload xlink:role="http://docbook.org/xlink/role/olink">reload
configuration</emphasis> configuration</emphasis> administrative statement. Thus, the
administrative statement. Thus, the procedure to change Tarantool procedure to change Tarantool configuration at runtime is to
configuration at runtime is to edit the configuration file. edit the configuration file. This ensures that, should the
This ensures that, should the server get killed or restart, no server get killed or restart, no unexpected changes to
unexpected changes to configuration can occur. configuration can occur.
</para> </para>
<para> <para>
Not all configuration file settings are changeable at runtime: such Not all configuration file settings are changeable at runtime:
settings will be specially outlined in this reference. such settings will be highlighted in this reference.
</para> </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> </section>
</chapter> </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 slab_alloc_arena = 0.1
#
# Store the pid in this file. Relative to
# startup dir.
#
pid_file = "box.pid" pid_file = "box.pid"
#
# Pipe the logs into the following process.
# Use -a rather than --append to work correctly on FreeBSD # Use -a rather than --append to work correctly on FreeBSD
# #
logger="tee -a tarantool.log" logger="tee -a tarantool.log"
#
# Read only and read-write port.
primary_port = 33013 primary_port = 33013
# Read-only port.
secondary_port = 33014 secondary_port = 33014
#
# The port for administrative commands.
#
admin_port = 33015 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 rows_per_wal = 50
# Define a simple namespace with 1 HASH-based
# primary key.
namespace[0].enabled = 1 namespace[0].enabled = 1
namespace[0].index[0].type = "HASH" namespace[0].index[0].type = "HASH"
namespace[0].index[0].unique = 1 namespace[0].index[0].unique = 1
......
...@@ -3,7 +3,7 @@ slab_alloc_arena = 0.1 ...@@ -3,7 +3,7 @@ slab_alloc_arena = 0.1
pid_file = "box.pid" 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" 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