vinyl: apply box.cfg.snap_io_rate_limit to dump/compaction
Vinyl worker threads can consume all disk bandwidth while performing dump or compaction, thus stalling DML requests, which also need some disk bandwidth for WAL. Memtx has a similar problem - it needs to write snapshot files. In case of memtx, we cope with this problem by limiting the write rate with box.cfg.snap_io_rate_limit option. Let's reuse this option for limiting vinyl dump/compaction rate. Closes #3220
Showing
- src/box/box.cc 5 additions, 0 deletionssrc/box/box.cc
- src/box/vinyl.c 6 additions, 0 deletionssrc/box/vinyl.c
- src/box/vinyl.h 6 additions, 0 deletionssrc/box/vinyl.h
- src/box/vy_run.c 6 additions, 1 deletionsrc/box/vy_run.c
- src/box/vy_run.h 2 additions, 0 deletionssrc/box/vy_run.h
- test/vinyl/snap_io_rate.result 85 additions, 0 deletionstest/vinyl/snap_io_rate.result
- test/vinyl/snap_io_rate.test.lua 38 additions, 0 deletionstest/vinyl/snap_io_rate.test.lua
Loading
Please register or sign in to comment