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

Fix #64: Rebind RELP connections after configurable amount of messages have been sent #66

Merged
merged 10 commits into from
May 24, 2024

Conversation

51-code
Copy link

@51-code 51-code commented May 16, 2024

Two new configuration properties: relp.rebindRequestAmount with a default of one million and relp.rebindEnabled with the default value false.

RelpConnectionPool keeps count of sent messages for each connection with a HashMap, and gives out a new connection when the rebindRequestAmount of sent messages is reached.

…en sent with it. Two new configuration parameters for rebinding.
@51-code 51-code added the enhancement New feature or request label May 16, 2024
@51-code 51-code requested a review from kortemik May 16, 2024 12:25
@51-code 51-code self-assigned this May 16, 2024
@kortemik
Copy link
Member

perhaps this kind of kortemik@80b5ee1 could be used for a generic pool?

@51-code 51-code linked an issue May 17, 2024 that may be closed by this pull request
@51-code 51-code requested a review from kortemik May 23, 2024 09:37
…e atleast once and not the connection itself. Change counter in CountingFrameDelegate to AtomicInteger.
Copy link
Member

@kortemik kortemik left a comment

Choose a reason for hiding this comment

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

really nice work here

Copy link

@StrongestNumber9 StrongestNumber9 left a comment

Choose a reason for hiding this comment

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

Looks good to me, I would add one extra test but approving as it is

src/test/java/RebindTest.java Show resolved Hide resolved
Copy link

@StrongestNumber9 StrongestNumber9 left a comment

Choose a reason for hiding this comment

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

Still good

@kortemik kortemik merged commit 3cce9b7 into teragrep:main May 24, 2024
1 check passed
@51-code 51-code deleted the fix_#64 branch May 27, 2024 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

relp rebind feature
3 participants