Skip to content

Commit 7abce3b

Browse files
fix: Bump default memory reservation to 768Mi (#578)
* fix: Bump default memory reservation to 768Mi * chore: Update changelog * Apply suggestions from code review Co-authored-by: Sebastian Bernauer <sebastian.bernauer@stackable.de> --------- Co-authored-by: Sebastian Bernauer <sebastian.bernauer@stackable.de>
1 parent 32aa4a9 commit 7abce3b

File tree

7 files changed

+13
-11
lines changed

7 files changed

+13
-11
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ All notable changes to this project will be documented in this file.
1414
### Changed
1515

1616
- Default to OCI for image metadata and product image selection ([#561]).
17+
- Increase default memory reservation to `768Mi` to avoid `OOMKilled` ([#578]).
1718

1819
### Fixed
1920

@@ -29,6 +30,7 @@ All notable changes to this project will be documented in this file.
2930
[#561]: https://github.com/stackabletech/hive-operator/pull/561
3031
[#572]: https://github.com/stackabletech/hive-operator/pull/572
3132
[#574]: https://github.com/stackabletech/hive-operator/pull/574
33+
[#578]: https://github.com/stackabletech/hive-operator/pull/578
3234

3335
## [24.11.1] - 2025-01-10
3436

docs/modules/hive/pages/usage-guide/resources.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ A minimal HA setup consisting of 2 Hive metastore instances has the following ht
77

88
* `100m` CPU request
99
* `3000m` CPU limit
10-
* `1280m` memory request and limit
10+
* `1792Mi` memory request and limit
1111
1212
Of course, additional services, require additional resources. For Stackable components, see the corresponding documentation on further resource requirements.
1313

@@ -22,10 +22,10 @@ metastore:
2222
resources:
2323
requests:
2424
cpu: "250m"
25-
memory: "512Mi"
25+
memory: "768Mi"
2626
limits:
2727
cpu: "1000m"
28-
memory: "512Mi"
28+
memory: "768Mi"
2929
----
3030

3131
The operator may configure an additional container for log aggregation. This is done when log aggregation is configured as described in xref:concepts:logging.adoc[]. The resources for this container cannot be configured using the mechanism described above. Use xref:home:concepts:overrides.adoc#_pod_overrides[podOverrides] for this purpose.

rust/operator-binary/src/config/jvm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ mod tests {
127127
-Djavax.net.ssl.trustStorePassword=changeit \
128128
-Djavax.net.ssl.trustStoreType=pkcs12"
129129
);
130-
assert_eq!(hadoop_heapsize_env, "409");
130+
assert_eq!(hadoop_heapsize_env, "614");
131131
}
132132

133133
#[test]

rust/operator-binary/src/crd/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ impl MetaStoreConfig {
475475
max: Some(Quantity("1000m".to_owned())),
476476
},
477477
memory: MemoryLimitsFragment {
478-
limit: Some(Quantity("512Mi".to_owned())),
478+
limit: Some(Quantity("768Mi".to_owned())),
479479
runtime_limits: NoRuntimeLimitsFragment {},
480480
},
481481
storage: MetastoreStorageConfigFragment {

tests/templates/kuttl/kerberos-hdfs/60-assert.yaml.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ spec:
1515
resources:
1616
limits:
1717
cpu: "1"
18-
memory: 512Mi
18+
memory: 768Mi
1919
requests:
2020
cpu: 250m
21-
memory: 512Mi
21+
memory: 768Mi
2222
{% if lookup('env', 'VECTOR_AGGREGATOR') %}
2323
- name: vector
2424
{% endif %}

tests/templates/kuttl/kerberos-s3/60-assert.yaml.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ spec:
1515
resources:
1616
limits:
1717
cpu: "1"
18-
memory: 512Mi
18+
memory: 768Mi
1919
requests:
2020
cpu: 250m
21-
memory: 512Mi
21+
memory: 768Mi
2222
{% if lookup('env', 'VECTOR_AGGREGATOR') %}
2323
- name: vector
2424
{% endif %}

tests/templates/kuttl/smoke/60-assert.yaml.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ spec:
1515
resources:
1616
limits:
1717
cpu: "1"
18-
memory: 512Mi
18+
memory: 768Mi
1919
requests:
2020
cpu: 250m
21-
memory: 512Mi
21+
memory: 768Mi
2222
{% if lookup('env', 'VECTOR_AGGREGATOR') %}
2323
- name: vector
2424
{% endif %}

0 commit comments

Comments
 (0)