[
https://issues.apache.org/jira/browse/TS-4085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15063690#comment-15063690
]
James Fang edited comment on TS-4085 at 12/18/15 6:13 PM:
----------------------------------------------------------
Thank you for the advice, sounds good, i will try that.
I did some simple test, ts reload ts_lua if used as remap plugin.
although this works, i still wander if there are some other way to achieve
this global lua global things in ts_lua itself. can this be done ? how ?
will ts_lua support this in the future ?
was (Author: jamesf):
Thank you for the advice, sounds good, i will try that.
I did some simple test, ts reload ts_lua if used as remap plugin.
> shared global among all lua_newstate/lua_newthread ?
> -----------------------------------------------------
>
> Key: TS-4085
> URL: https://issues.apache.org/jira/browse/TS-4085
> Project: Traffic Server
> Issue Type: New Feature
> Components: Lua, Plugins
> Reporter: James Fang
> Assignee: Kit Chan
> Fix For: sometime
>
>
> suppose i have some acl rules that seldom changes,
> i would like to make them a global table that shared among all the lua
> coroutines.
> i also would like to update the rule without restarting traffic server, but
> there seems to be no way to update this global after they are initalized.
> should i modify ts_lua to call some dynamic uploaded chunk that
> update the global for each ts_lua_main_ctx ?
> any ideas ?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)