Skip to content

Commit

Permalink
test: set bigger readhead buffer on storages
Browse files Browse the repository at this point in the history
  • Loading branch information
ligurio committed Sep 1, 2021
1 parent 0de1953 commit 8aa5f51
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/entrypoint/srv_select.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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'},
Expand Down
5 changes: 5 additions & 0 deletions test/performance/select_perf_test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 8aa5f51

Please sign in to comment.