File: example.cfg

package info (click to toggle)
tarantool-lts 1.5.5.37.g1687c02-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 15,124 kB
  • ctags: 18,819
  • sloc: ansic: 118,797; cpp: 22,178; sh: 18,496; xml: 10,692; python: 2,083; java: 1,759; perl: 972; makefile: 719; ruby: 84
file content (63 lines) | stat: -rw-r--r-- 1,539 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#
# 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

#
# Read only and read-write port.
primary_port = 33013

# Read-only port.
secondary_port = 33014

# ************* Debian option ***********************
# count of file descriptors
#
opt file_descriptors = 8192
# ***************************************************

# ************* Debian option ***********************
#  Count of snapshots to save (default = 10). COUNT=0
# disables removing
#
opt save_snapshots = 10
# ***************************************************
  

# ************* Debian option ***********************
# Snapshot creating period (hours), (default = 24)
#
opt snapshot_period = 12
# ***************************************************

#
# The port for administrative commands.
#
admin_port = 33015

#
# directory that contains lua procedures
# (the first script must have name 'init.lua')
#
script_dir = /usr/share/tarantool/lua/

#
# 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 = 50000

# Define a simple space with 1 HASH-based
# primary key.
space[0].enabled = 1
space[0].index[0].type = "HASH"
space[0].index[0].unique = 1
space[0].index[0].key_field[0].fieldno = 0
space[0].index[0].key_field[0].type = "NUM"