Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow add custom shared dict #1367

Merged
merged 3 commits into from Mar 31, 2020
Merged

Allow add custom shared dict #1367

merged 3 commits into from Mar 31, 2020

Conversation

griffenliu
Copy link
Contributor

NOTE: Please read the Contributing.md guidelines before submitting your patch:

https://github.com/apache/incubator-apisix/blob/master/Contributing.md#how-to-add-a-new-feature-or-change-an-existing-one

Summary

Allows you to add custom shared dict through configuration

Full changelog

  • config.yaml : lua_shared_dicts
  • apisix

@moonming
Copy link
Member

If you need to add one shared dict, then you will using this shared dict in Lua code, right?
So is this PR works with custom plugin?

@griffenliu
Copy link
Contributor Author

If you need to add one shared dict, then you will using this shared dict in Lua code, right?
So is this PR works with custom plugin?

Yes, I need add some custom plugin. I used the mlcache library, which needs to add some shared caches.

@moonming
Copy link
Member

Got it.

conf/config.yaml Outdated
@@ -111,6 +111,8 @@ nginx_config: # config for render the template to genarate n
real_ip_from: # http://nginx.org/en/docs/http/ngx_http_realip_module.html#set_real_ip_from
- 127.0.0.1
- 'unix:'
lua_shared_dicts:
ipc_shared_dict: 100m # custom shared cache
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be commented by default.

conf/config.yaml Outdated Show resolved Hide resolved
@moonming moonming merged commit 12677c3 into apache:master Mar 31, 2020
SaberMaster pushed a commit to SaberMaster/incubator-apisix that referenced this pull request Jun 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants