Skip to content
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 keepalive configs as templated strings and modify their values #3624

Merged
merged 2 commits into from
Nov 28, 2024

Conversation

JDPrabasha
Copy link

Purpose

Lower the 5-minute interval to check for liveness of adapter after establishing a connection to it to 1 minute. This would allow for faster detection when the local adapter goes down and enable faster switching to another replica. Additionally, by making these values dynamically configurable, we can adjust them as and when needed in the future.

Issues

Fixes https://github.com/wso2-enterprise/choreo/issues/32445

Automation tests

  • Unit tests added: No
  • Integration tests added: No

Tested environments

Not Tested


Maintainers: Check before merge

  • Assigned 'Type' label
  • Assigned the project
  • Validated respective github issues
  • Assigned milestone to the github issue(s)

keepalive_probes: 3
keepalive_time: 300
keepalive_interval: 30
keepalive_probes: '${KEEPALIVE_PROBES}'
Copy link
Contributor

@renuka-fernando renuka-fernando Nov 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we prefix ADAPTER to make these config more specific?

Suggested change
keepalive_probes: '${KEEPALIVE_PROBES}'
keepalive_probes: '${ADAPTER_KEEPALIVE_PROBES}'

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we can keep this as it is and use it in all places. Hence +1

@renuka-fernando renuka-fernando merged commit b300035 into wso2:choreo Nov 28, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants