yocaning commented on issue #5168:
URL: https://github.com/apache/apisix/issues/5168#issuecomment-942881128
> > ok ,i find that why i cant get ,because the etcd data dont change ,so
the table dont update after i restart my apisix. by the way ,what should i do
if i want the cache `authorizations_etcd` update after restart apisix 。
>
> Apache APISIX always fetch the full data from ETCD as it just starts. And
now, the default behavior is that APISIX will load them in the init phase
(before any requests can be handled).
yes,see my code,init phase code
function _M.init():
authorizations_etcd, error = core.config.new("/authorizations", {
automatic = true,
item_schema = app_scheme
})
if not authorizations_etcd then
core.log.error("failed to create etcd instance for fetching
authorizations: " .. error)
return
end
end
but when i restart apisix ,the etcd dont hava data until i change the key
,my etcd is ok ,and have data ,the apisix restart dont have
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]