DS
Size: a a a
DS
VS
DS
DS
A
k
MF
DS
k
С
main txn.c:586 W> too long WAL write: 1 rows at LSN 243272014: 1.238 sec
expirationd = require("expirationd")
function is_expired(args,tuple)
if (tuple[1] < fiber.time() - ttlPeriodCompress) then return true end
return false
end
function compress_tuple(space_id, args, tuple)
box.space[space_id]:delete{tuple[1]}
end
for k, v in box.space._space:pairs() do
if (v[1] > 500 and v[4] == "memtx") then
expirationd.start(v[3] .. "_ttl",v[1],is_expired,{
process_expired_tuple = compress_tuple,
args = nil,
atomic_iteration = true,
full_scan_time=3600,
iteration_delay=240,
full_scan_delay=60
})
end
endDS
DS
DS
ZL
С
DS
DS
С
DS
DS