manager: files watchdog for RPZ and some improvements
Improved files watchdog implementation now has two types of watched files:
- files that are reloaded by sending Lua command to all workers
- files that are reloaded by the resolver re-initialization (policy rules reload)
RPZ added to the files watchdog with /local-data/rpz/*/watchdog
configurable option.
Merge request reports
Activity
added 1 commit
- ee1faa48 - fixup! manager: files: watchdog: added RPZ files
added 1 commit
- f167fadf - fixup! manager: added asyncio main loop to avoid Lock error
added 1 commit
- 24a63608 - fixup! fixup! manager: added asyncio main loop to avoid Lock error
added 1 commit
- 82e9f8b7 - fixup! python: unification of modules execution
added 1 commit
- 76992822 - fixup! manager: files: watchdog: added RPZ files
added 1 commit
- 8a484ca9 - fixup! fixup! manager: files: watchdog: added RPZ files
added 1 commit
- 84733d86 - fixup! fixup! fixup! manager: files: watchdog: added RPZ files
requested review from @vcunat
I'm not sure about the way the reload of RPZ (policy rules) is triggered (API call
/renew
), but it seems to be working. I even managed to write a simple packaging test. I think it's right to do it through the API, as everything is already tested and ready there. I haven't even come up with another way, as it raises problems withasyncio
event loop and its Lock inconfig_store
. So when you have time @vcunat , please try to test it.