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

Make MaxPollCount Configurable. #18

Merged
merged 2 commits into from
Aug 15, 2024

Conversation

hchepey-clari
Copy link
Contributor

Currently we are facing issue with having the MaxPollCount hard coded to 100. That has reduced the performance of our system drastically.

This change is to make it configurable.

@@ -1,6 +1,7 @@
dependencies {

implementation "redis.clients:jedis:${versions.revJedis}"
implementation 'org.springframework.boot:spring-boot-starter'
Copy link
Member

Choose a reason for hiding this comment

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

We would like to avoid bringing this in here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

May I know why?

This dependency is required to initialise QueueMonitorProperties

@@ -42,6 +42,14 @@ public abstract class QueueMonitor {

private int maxPollCount = 100;

public void setMaxPollCount(int maxPollCount) {
this.maxPollCount = maxPollCount;
Copy link
Member

Choose a reason for hiding this comment

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

The ArrayBlockingQueue is being initalized in the constructor with maxPollCount. If you wish to make use of this, please propagate it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for catching that. Done.

@hchepey-clari hchepey-clari requested a review from c4lm July 31, 2024 04:24
@hchepey-clari
Copy link
Contributor Author

@c4lm - Can you please review this PR again?

@hchepey-clari
Copy link
Contributor Author

@manan164 @v1r3n @LuisLainez @c4lm - Can you please review this PR?

@v1r3n v1r3n merged commit 76a829b into orkes-io:main Aug 15, 2024
2 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.

4 participants