Closed luozhouyang closed 1 year ago
Hi @luozhouyang , start_server
starts a shared server that can be used to manage multiple plugins. In this use case, simply use the kong-python-pluginserver
command and point -d
to the directory containing all your plugin files.
@fffonion Thanks!
I found a example, just for someone need it:
I found that all examples use a
start_dedicated_server
function to start the plugin server. But there is also astart_server
function. If I am not wrong, thisstart_server
can serve multi plugins with onePluginServer
instance, but how should I use this function? Should I put these code in every python plugin file?If so, multi
PluginServer
instances will be created, is it right?