-
-
Notifications
You must be signed in to change notification settings - Fork 0
Make segment cache configurable #320
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 segment cache configurable #320
Conversation
…-use-emptydir-for-it
* configure emptyDir volume mount (no size yet) * set cache size in config properties
…-use-emptydir-for-it
Some things that came up to my mind so far:
|
@sbernauer wrote:
This is now done. It required replacing |
I'm not convinced this is a "resource thing". The fact that we use an emptyDir to store the segments is an implementation detail IMO. It's not clear to me why we consider volumes as "resources" and mix them up memory and cpu.
I disagree with your first sentence but you are right, this implementation goes against the current practice. I argued in the arch meeting of 26.10 that the current practice is wrong. |
…-use-emptydir-for-it
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.
Tests look nice!
From the issue
segment-cache size configurable. We default to 5% free percentage
you've used 10%, not sure how important this is
Thanks for refactoring the Druid config into 5 different structs!
max: "4" | ||
memory: | ||
limit: '2Gi' | ||
storage: |
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.
This CRD change should be discussed in the Architecture meeting
pub fn update_container(&self, pb: &mut PodBuilder, cb: &mut ContainerBuilder) { | ||
let volume_size = match self.segment_cache_size_gb { | ||
Some(v) => v, | ||
_ => 1, |
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.
I am not happy about this default value just being here in the function. especially since the 900m
in the product config depends on this value. I don't have an idea what to change though, so there's no need to change anything.
Co-authored-by: Felix Hennig <[email protected]>
Co-authored-by: Felix Hennig <[email protected]>
Co-authored-by: Felix Hennig <[email protected]>
Decided to split this PR into two and close it. The first PR that implements role based configuration is here: #332 The second PR that implements the actual functionality required here will depend on a new release of the operator framework and will follow. |
Part of: #306 This PR has been extracted from #320 which will be closed. The part that was left out is the actual configuration the of segment cache size. That will be implemented in a future PR and will require a new operator-rs release. :green_circle: CI https://ci.stackable.tech/view/02%20Operator%20Tests%20(custom)/job/druid-operator-it-custom/34/ Co-authored-by: Sebastian Bernauer <[email protected]>
Fixes #306
🟢 CI: https://ci.stackable.tech/view/02%20Operator%20Tests%20(custom)/job/druid-operator-it-custom/33/