Re: Proposal - arbitrary remap reload based on config file API

2020-07-21 Thread Evan Zelkowitz
Ok well in that case maybe this does make more sense to integrate as a part of the plugindso code via its own APIs, such as the ones to notify of a full remap reload pre/post. Instead have a new api in there of a per-plugin config file that it can keep track of and notify the plugin who registered

Re: Proposal - arbitrary remap reload based on config file API

2020-07-21 Thread Sudheer Vinukonda
I don't think periodic reload of config for regex_revalidate is optional. Pretty certain we used that functionality in the past (for purging tombstones that get added on the fly). Reloading just the config is not the same as reloading the remap DSO or conflicts with the remap reload even.  The

Re: Proposal - arbitrary remap reload based on config file API

2020-07-21 Thread Evan Zelkowitz
regex reval first uses the tsmgmtupdate call in all cases, so it will be triggered by a config reload and since it's a global plugin it can do that, the periodic reload is optional. During the last summit there was a lot of concern over remap.config reloading on its own outside of config reload du

Re: Proposal - arbitrary remap reload based on config file API

2020-07-21 Thread Sudheer Vinukonda
Hmm..I am not sure to understand the concern with reloading individual config files outside of "config reload". I think a reasonable approach is to use a background thread periodically polling for config file changes and load it in isolation (an example is regex_revalidate plugin). https://gith

Re: Proposal - arbitrary remap reload based on config file API

2020-07-21 Thread Evan Zelkowitz
Currently there is no way for a plugin to just reload its config file when it is running as a remap, unless you are running some sort of timer or checking on every remap call. The mgmtupdate cannot be used for remaps due to how it is designed. Using a timer you then start reloading configs outside

Re: Proposal - arbitrary remap reload based on config file API

2020-07-21 Thread John Rushford
IMO a config file change should just cause the config to be reloaded no the entire remap or plugin DSO. Thanks John On Tue, Jul 21, 2020 at 4:03 PM Sudheer Vinukonda < sudheervinuko...@yahoo.com> wrote: > I think it makes sense when "includes" are changed, but, I'm wondering if > it makes sense

Re: Proposal - arbitrary remap reload based on config file API

2020-07-21 Thread Sudheer Vinukonda
I think it makes sense when "includes" are changed, but, I'm wondering if it makes sense to reload the remap file when a specific config file for a plugin is changed.  Shouldn't a plugin config file change limit to reloading the plugin (or even just the config file for that plugin) as opposed t