Open magec opened 7 months ago
Change looks good. Please add how have you tested it?
I added a test for this parameter, the same way it is done for the rest of the exported config ones (this link) . What else do you need?
I added a test for this parameter, the same way it is done for the rest of the exported config ones (this link) . What else do you need?
I was asking about manual tests. If you have done any? Please add in description.
Added some comments!
Any chance this could be merged? asking for a friend.
I am working on a project where several nodes come and go pretty fast, was testing
consul-esm
reaping functionality an saw that the de-registering is only triggered after two health status updates, the first one that sets it to critical, and then it waits for a second one to trigger the de-registering. To speed this up I neededNodeHealthRefreshInterval
to be configurable.This change makes it configurable while maintaining the default value it had before it also adds some documentation explaining this 'use case'.
Without this, if you configure consul-esm with:
The 'non responding' node will be kept registered until 1 hour passes. Changing
node_health_refresh_interval
value and setting it to, let's say:will deregister the node after (at most) 5m 10s. I have personally tested this behavior.