Updated at July 17, 2026 02:08 PM
Submodule box.cfg
The box.cfg submodule is used for specifying
server configuration parameters.
To view the current configuration, say box.cfg without braces:
tarantool> box.cfg---- checkpoint_count: 2too_long_threshold: 0.5slab_alloc_factor: 1.05memtx_max_tuple_size: 1048576background: false<...>...
To set particular parameters, use the following syntax:
box.cfg{key = value [, key = value ...]} (further referred to as
box.cfg{...} for short). For example:
tarantool> box.cfg{listen = 3301}
Parameters that are not specified in the box.cfg{...} call explicitly
will be set to the default values (see below).
If you say box.cfg{} with no parameters, Tarantool applies the
following default settings to all the parameters:
tarantool> box.cfg{}tarantool> box.cfg -- sorted in the alphabetic order---- background = falsecheckpoint_count = 2checkpoint_interval = 3600checkpoint_wal_threshold = 1000000000000000000coredump = falsecustom_proc_title = nilfeedback_enabled = truefeedback_host = 'https://feedback.tarantool.io'feedback_interval = 3600force_recovery = falsehot_standby = falseinstance_uuid = nil -- generated automaticallyio_collect_interval = niliproto_threads = 1listen = nillog = nillog_format = plainlog_level = 5log_nonblock = truememtx_dir = '.'memtx_max_tuple_size = 1024 * 1024memtx_memory = 256 * 1024 *1024memtx_min_tuple_size = 16net_msg_max = 768pid_file = nilreadahead = 16320read_only = falsereplicaset_uuid = nil -- generated automaticallyreplication = nilreplication_anon = falsereplication_connect_timeout = 30replication_skip_conflict = falsereplication_sync_lag = 10replication_sync_timeout = 0replication_timeout = 1slab_alloc_factor = 1.05snap_io_rate_limit = nilsql_cache_size = 5242880strip_core = truetoo_long_threshold = 0.5username = nilvinyl_bloom_fpr = 0.05vinyl_cache = 128 * 1024 * 1024vinyl_dir = '.'vinyl_max_tuple_size = 1024 * 1024* 1024 * 1024vinyl_memory = 128 * 1024 * 1024vinyl_page_size = 8 * 1024vinyl_range_size = nilvinyl_read_threads = 1vinyl_run_count_per_level = 2vinyl_run_size_ratio = 3.5vinyl_timeout = 60vinyl_write_threads = 4wal_dir = '.'wal_dir_rescan_delay = 2wal_max_size = 256 * 1024 * 1024wal_mode = 'write'worker_pool_threads = 4work_dir = nil
The first call to box.cfg{...} (with or without parameters) initiates
Tarantool's database module box.
box.cfg{...} is also the command that reloads
persistent data files into RAM upon restart
once we have data.