Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-4264

Benchmark the overhead of the luafilter

Details

    • Task
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 22.08.0
    • 23.08.1
    • Filter
    • None
    • 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
      

      Attachments

        Activity

          markus makela markus makela added a comment -

          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.

          markus makela markus makela added a comment - 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.

          People

            markus makela markus makela
            markus makela markus makela
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.