-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
fix: unnecessary YAML Config reloads #9065
fix: unnecessary YAML Config reloads #9065
Conversation
Test cases is needed, you could follow this: https://github.com/apache/apisix/blob/master/t/config-center-yaml/plugin.t |
Hey @monkeyDluffy6017, On a related not after reading https://apenwarr.ca/log/20181113 I'm thinking that we should add |
hi @boekkooi-lengoo, try to follow the following test cases: |
ping @boekkooi-lengoo |
f8e1377
to
a04cf84
Compare
Show how a reload is triggered when it's not needed.
In order to avoid unnecessary reloading of the yaml configuration. The time used to detect the last change to the config file is changed from `change` which is the time of the last file status change to the `modification` time wich is the time of the last data modification. For more information also checkou http://lunarmodules.github.io/luafilesystem/manual.html#reference and https://linux.die.net/man/2/stat Fixes: apache#9051
a04cf84
to
c3c014b
Compare
please merge the master |
@monkeyDluffy6017 Created merge commit 684c78d as requested |
Description
In order to avoid unnecessary reloading of the yaml configuration. The time used to detect the last change to the config file is changed from
change
which is the time of the last file status change to themodification
time wich is the time of the last data modification.For more information also checkout http://lunarmodules.github.io/luafilesystem/manual.html#reference and https://linux.die.net/man/2/stat
Fixes: #9051
Checklist