Understanding MaxScale's Lua Filter

MaxScale's Lua Filter (luafilter) processes queries with the specified Lua scripts.

When to Use the Lua Filter?

The Lua Filter (luafilter) allows you to:

  • Run a global Lua script when MaxScale is started

  • Run a session Lua script after a client connects to MaxScale

  • Run a session Lua script after a client disconnects from MaxScale

  • Run a global and/or session Lua script when a query is being routed

  • Run a global and/or session Lua script after a query has been routed

Next steps: