Skip to content

Commit

Permalink
improve default resource limits
Browse files Browse the repository at this point in the history
  • Loading branch information
maltesander committed Jun 28, 2023
1 parent cab71c0 commit 2009ba1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions docs/modules/hdfs/pages/usage-guide/resources.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,11 @@ dataNodes:
config:
resources:
cpu:
max: '4'
min: '100m'
max: '2'
min: '500m'
storage:
data:
capacity: 2Gi
----

For data nodes the `data` capacity is 5Gi.
4 changes: 2 additions & 2 deletions rust/crd/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -738,8 +738,8 @@ impl HdfsPodRef {
fn default_resources_fragment() -> ResourcesFragment<HdfsStorageConfig, NoRuntimeLimits> {
ResourcesFragment {
cpu: CpuLimitsFragment {
min: Some(Quantity("100m".to_owned())),
max: Some(Quantity("4".to_owned())),
min: Some(Quantity("500m".to_owned())),
max: Some(Quantity("2".to_owned())),
},
memory: MemoryLimitsFragment {
limit: Some(Quantity("1Gi".to_owned())),
Expand Down

0 comments on commit 2009ba1

Please sign in to comment.