Tarantool development patches archive
 help / color / mirror / Atom feed
* [tarantool-patches] [PATCH 1/1] wal: deprecate wal_max_rows in favour of wal_max_size
@ 2019-09-07 13:51 Vladislav Shpilevoy
  2019-09-07 13:59 ` [tarantool-patches] " Vladislav Shpilevoy
  0 siblings, 1 reply; 2+ messages in thread
From: Vladislav Shpilevoy @ 2019-09-07 13:51 UTC (permalink / raw)
  To: tarantool-patches; +Cc: alexander.turenko

wal_max_rows does not allow to properly limit size of WAL logs.
A user would need to estimate size of each WAL row to do that.
Now WAL supports option wal_max_size allowing to limit WAL size
much more precise.

Part of #3762
---
Note: Based on branch 1.10. It should be pushed to 1.10 and cherry-picked to
all > 1.10 and < master.

Issue: https://github.com/tarantool/tarantool/issues/3762
Branch: https://github.com/tarantool/tarantool/tree/gerold103/gh-4282-box-cfg-rs-uuid

 src/box/lua/load_cfg.lua | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/box/lua/load_cfg.lua b/src/box/lua/load_cfg.lua
index 77f57eb05..432a3374b 100644
--- a/src/box/lua/load_cfg.lua
+++ b/src/box/lua/load_cfg.lua
@@ -291,6 +291,7 @@ local translate_cfg = {
     panic_on_snap_error = {'force_recovery', function (p) return not p end},
     panic_on_wal_error = {'force_recovery', function (p) return not p end},
     replication_source = {'replication'},
+    wal_max_rows = {'wal_max_size'},
 }
 
 -- Upgrade old config
-- 
2.20.1 (Apple Git-117)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-09-07 13:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-07 13:51 [tarantool-patches] [PATCH 1/1] wal: deprecate wal_max_rows in favour of wal_max_size Vladislav Shpilevoy
2019-09-07 13:59 ` [tarantool-patches] " Vladislav Shpilevoy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox