[MXS-4264] Benchmark the overhead of the luafilter Created: 2022-08-29  Updated: 2023-09-06  Resolved: 2023-09-06

Status: Closed
Project: MariaDB MaxScale
Component/s: Filter
Affects Version/s: 22.08.0
Fix Version/s: 23.08.1

Type: Task Priority: Major
Reporter: markus makela Assignee: markus makela
Resolution: Fixed Votes: 0
Labels: None

Attachments: File patch.diff    
Sprint: MXS-SPRINT-190

 Description   

Knowing the overhead that the luafilter adds would be valuable as it can be used to customize the behavior of MaxScale. Testing just the raw overhead with the example script (in the documentation) should give us a good estimate of what it costs to use the filter.

Config:

[MyLuaFilter]
type=filter
module=luafilter
global_script=/path/to/script.lua

Script:

function createInstance(name)
 
end
 
function newSession(user, host)
 
end
 
function closeSession()
 
end
 
function routeQuery(query)
 
end
 
function clientReply(server)
 
end
 
function diagnostic()
 
end



 Comments   
Comment by markus makela [ 2023-09-06 ]

The overhead of the luafilter seems to be acceptably small to make it a suitable candidate for a generic filter on top of which more specialized functionality can be built.

Generated at Thu Feb 08 04:27:23 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.