Added support for refresh_in time and optional debug log#19
Conversation
Replacing hardcoded 1000 ms to refresh_in which is derived based on TTL or default 1000
Added support for optional debug_log per dynamic upstream
|
Thanks for the contributions! Making resolve refresh interval configurable sounds like a great idea. A couple of notes on that:
Regarding the But overall this looks great, so thanks again for implementing these things! |
|
@GUI Thanks for your feedback. I will make following changes and resubmit.
regarding By the way, I had to disable this module due to some corruption/conflict with keepalive module. |
|
Hi @rohitjoshi and @GUI About the log level I agree with @GUI. We can review the number of messages and their sizes when debug is enabled, but if you use a lot of third party modules you will have the same issue with them. I commented on #18 asking for your help. That queue should never goes on infinity loop. |
|
@wandenberg Sure, we remove debug_log and move refresh interval separately. |
Removed debug_log
|
@rohitjoshi I was reviewing your code and remembered a good reason to not allow change the refresh interval. Please, try this code and if it's OK I will submit a pull request instead of this one. |
|
@wandenberg I like your approach over mine and will give a try. I had to disable this feature due to issue #18 |
|
Is there a reason not to use the |
|
'resolver valid' is still honored when TTL is used. This is about how often we should check if TTL is expired. |
I have added support for
resolvenow takes an optional value for refresh_in. egdebug_logsupport: during development, this module generates lot of debug logs so I have made it optional