-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add cacheable lookup #95
Conversation
Hi @Amy0511 can you provide some context to the PR? Thanks. |
Sure. Updated in short description section. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx @Amy0511
@tlawrie @tlawrie @marcusdroy @florentinvintila Could you please help to review the PR? |
@Amy0511 One additional thought, do you include any cache "time to live" type configuration so we ensure it refreshes the cache periodically? I know for most of our domains they won't change but this change will affect all public domain lookups. Also, do we make this caching optional, i.e., adding a new cache enable/disable feature (with cache setting values) in the Flow helm chart? I don't want to make this change bigger than it needs to be, however we need to consider all use cases here, not just our internal IBM one. |
Thank you @gchickma ! I will think about questions. Fow now, I didn't add "time to live" and the switch for DNS cache. |
Closes #
When our worker.flow processes execute HTTP tasks specifically on artifactory, Boomerang Essentials OCP cluster is configured to delegate these DNS lookup requests to our own DNS (named) service running on a VM (we do this because we need to override the default/public DNS IP address with a 10.x.x.x private IP address)]
During high load, i.e., large number of concurrently running Flow workflows executing HTTP tasks, we see some timeouts with this error:
parameters: {"response":"getaddrinfo EAI_AGAIN tools.servicesessentials.ibm.com"}
As Node.js does not cache DNS lookups by default, we add cacheable-lookup and may reduce/eliminate the timeouts.
Changelog
New
Changed
Removed
Testing / Reviewing
{{ Add descriptions, steps or a checklist for how reviewers can verify this PR works or not }}