Skip to content

Commit 5d87de1

Browse files
authored
Describe memtx_memory minimum value
* Provide a valid memtx_memory value in an example * Add minimum value of memtx_memory to config reference Resolves #2299 Part of #2313
1 parent c717d57 commit 5d87de1

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

doc/reference/configuration/cfg_storage.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929

3030
| Type: float
3131
| Default: 256 * 1024 * 1024 = 268435456 bytes
32+
| Minimum: 33554432 bytes (32 MB)
3233
| Environment variable: TT_MEMTX_MEMORY
3334
| Dynamic: **yes** but it cannot be decreased
3435

doc/reference/configuration/index.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ server will be used or if ports need to be opened. For example, suppose
243243
#!/usr/bin/env tarantool
244244
box.cfg{
245245
listen = os.getenv("LISTEN_URI"),
246-
memtx_memory = 100000,
246+
memtx_memory = 33554432,
247247
pid_file = "tarantool.pid",
248248
wal_max_size = 2500
249249
}
@@ -257,12 +257,12 @@ Then the screen might look like this:
257257
258258
$ export LISTEN_URI=3301
259259
$ ~/tarantool/src/tarantool script.lua ARG
260-
... main/101/script.lua C> version 1.7.0-1216-g73f7154
260+
... main/101/script.lua C> Tarantool 2.8.3-0-g01023dbc2
261261
... main/101/script.lua C> log level 5
262-
... main/101/script.lua I> mapping 107374184 bytes for a shared arena...
262+
... main/101/script.lua I> mapping 33554432 bytes for memtx tuple arena...
263263
... main/101/script.lua I> recovery start
264264
... main/101/script.lua I> recovering from './00000000000000000000.snap'
265-
... main/101/script.lua I> primary: bound to 0.0.0.0:3301
265+
... main/101/script.lua I> set 'listen' configuration option to "3301"
266266
... main/102/leave_local_hot_standby I> ready to accept requests
267267
Starting ARG
268268
... main C> entering the event loop

0 commit comments

Comments
 (0)