Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Adjust resizable queue lower bounds to align with the default capacity(200/1000) suggested by ES #483

Merged
merged 2 commits into from
Oct 22, 2020

Conversation

rguo-aws
Copy link
Contributor

Fixes #:

Description of changes:
Our queue related performance experiments indicate that downsizing of the write queue could potentially increase heap pressure when a lot of rejection occurs within a short amount of time. So this PR will adjust the default queue lower bound back to the default queue capacity used by ES. This would at least guarantee that our resizable queue does not introduce extra heap pressure when compared with the vanilla ES.
So now for the write queue, the lower/upper bounds are [200/1000]
and for search queue, the lower/upper bounds are [1000/2000]

Tests:
update UT as well so that the UTs are independent of the actual values being set for queue's lower/upper bounds

If new tests are added, how long do the new ones take to complete
n/a

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@rguo-aws rguo-aws added the enhancement Enhancements to existing codebase label Oct 21, 2020
Copy link
Contributor

@sidheart sidheart left a comment

Choose a reason for hiding this comment

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

lgtm

}
},
// Action Configurations
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to add all of these configurations? Wont just changing the default queue lower bounds suffice?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We don't have to add all configurations in the rca conf but I remember Joydeep once asked me to explicitly add all rca conf into the file so that people who are not familiar with the settings can easily understand and set it

@rguo-aws rguo-aws merged commit 202a8a6 into master Oct 22, 2020
@rguo-aws rguo-aws deleted the rguo-update-lower-bound branch October 22, 2020 17:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Enhancements to existing codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants