For 1), we need to implement a list of Lua APIs in the plugin.
For 2), we need to collect information when the server is handling the
context of the request in stage 30.

Is that correct?

I think we can get the server configuration from the global variable
"config", the plugin lists
from the parameter "plugin", memory usage from another parameter
"session_request *sr".

Regards,



On Wed, Mar 5, 2014 at 12:32 PM, Eduardo Silva <[email protected]> wrote:

>
>
>
> On Mon, Mar 3, 2014 at 4:23 PM, Kai Dong <[email protected]> wrote:
>
>> So the lua scripts should interact with the plugin.
>> When the server start up, the scripts send information to
>> the plugin for configuration, and during the runtime of the
>> server, the plugin gets information and sends them to lua
>> scripts for further handling?
>>
>> Best,
>>
>>
> the answer could be longer, but there are two main points:
>
> 1) The server must be able to run and send back responses generated by Lua
> scripts.
>
> 2) Lua scripts must be able to receive Core internals, for more details i
> suggest you check the STAGE_30 where handler receives the context of the
> request.
>
> note: check the getting_started page, specifically the blog post about
> Monkey internals.
>
> regards,
>
_______________________________________________
Monkey mailing list
[email protected]
http://lists.monkey-project.com/listinfo/monkey

Reply via email to