apisix icon indicating copy to clipboard operation
apisix copied to clipboard

help request: init.lua:349: store_token(): ext-plugin:set valid items forcibly overwritten

Open ZhangShangyu opened this issue 2 years ago • 5 comments

Description

got many warning in apisix error log, this is the msg:

2022/08/11 14:36:00 [warn] 58#58: *71699987 [lua] init.lua:349: store_token(): ext-plugin:set valid items forcibly overwritten

what is the log indicate? can any master to explain this?

Environment

  • APISIX version 2.13-0

ZhangShangyu avatar Aug 11 '22 10:08 ZhangShangyu

@ZhangShangyu Hi, the variable shdict is shared memory which name is "ext-plugin", the log indicate that "forcible: a boolean value to indicate whether other valid items have been removed forcibly when out of storage in the shared memory zone." may be you can change the value of "ext-plugin" in config-default.yaml.

Hazel6869 avatar Aug 12 '22 02:08 Hazel6869

thanks your explanation. so this log just a tips, not related to a performance or business issue?

@ZhangShangyu Hi, the variable shdict is shared memory which name is "ext-plugin", the log indicate that "forcible: a boolean value to indicate whether other valid items have been removed forcibly when out of storage in the shared memory zone." may be you can change the value of "ext-plugin" in config-default.yaml.

ZhangShangyu avatar Aug 12 '22 12:08 ZhangShangyu

so this log just a tips, not related to a performance or business issue?

we would better to do as change the value of "ext-plugin" in config-default.yaml., we can make the shared dict size of ext-plugin in config-default.yaml to be large. Or you can submit an PR to do this.

tzssangglass avatar Aug 15 '22 07:08 tzssangglass

so this log just a tips, not related to a performance or business issue?

we would better to do as change the value of "ext-plugin" in config-default.yaml., we can make the shared dict size of ext-plugin in config-default.yaml to be large. Or you can submit an PR to do this.

1m maybe small, how about change to 10m like most other config value in lua_shared_dict? @tzssangglass

ZhangShangyu avatar Aug 18 '22 11:08 ZhangShangyu

1m maybe small, how about change to 10m like most other config value in lua_shared_dict? @tzssangglass

you can set it to 10M by yourself.

tzssangglass avatar Aug 18 '22 13:08 tzssangglass