From 8aa5f51fb306d3c4e9be3bfdac4df25c46e08e64 Mon Sep 17 00:00:00 2001 From: Sergey Bronnikov Date: Mon, 16 Aug 2021 16:18:08 +0300 Subject: [PATCH] test: set bigger readhead buffer on storages --- test/entrypoint/srv_select.lua | 5 +++++ test/performance/select_perf_test.lua | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/test/entrypoint/srv_select.lua b/test/entrypoint/srv_select.lua index 56d0d3d3e..b32ca0bea 100755 --- a/test/entrypoint/srv_select.lua +++ b/test/entrypoint/srv_select.lua @@ -13,6 +13,11 @@ package.preload['customers-storage'] = function() return { role_name = 'customers-storage', init = function() + rawset(_G, 'tarantool_tuning', function() + box.cfg{ + readahead = 10 * 1024 * 1024, + } + end) local customers_space = box.schema.space.create('customers', { format = { {name = 'id', type = 'unsigned'}, diff --git a/test/performance/select_perf_test.lua b/test/performance/select_perf_test.lua index 1e7311036..6eb4f2164 100644 --- a/test/performance/select_perf_test.lua +++ b/test/performance/select_perf_test.lua @@ -53,6 +53,11 @@ g.before_all = function() }, }) g.cluster:start() + helpers.call_on_servers(g.cluster, {'s1-master', 's1-replica', + 's2-master', 's2-replica', + 's3-master', 's3-replica'}, function(server) + server.net_box:call('tarantool_tuning') + end) end g.after_all = function()