openresty / openresty/lua-nginx-module
你好,咨询个关于lua_code_cache开启的下的内存问题
Open
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 11.8k
- Forks
- 2.1k
- Avg merge
- 6h 1m
- Merged PRs (30d)
- 6
Description
你好,openresty,麻烦咨询个问题:在lua_code_cache开启的情况下,我在某个worker中初始化的模块变量(仅初始化一次),能在另外的worker中获得这个模块变量的初始值吗?还望你的及时回答。源码中,其中有一个全局注册表的概念,他的机制是怎么样的?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the lua_code_cache behavior and the global registry mechanism in the lua-nginx-module source; the issue does not name specific files or tests. Determine whether module variables initialized in one worker are visible to another, then document the worker-scope behavior and registry mechanism as the completion criteria.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, lua, nginx
- Domain
- backend
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100