Issue:
The way JVM xmx and xms are calculated limits each Cassandra container to 25% of memory defined in cdc.Spec.Resources.Limits.Memory().Value(). If we set container requests and limits to 10G our cassandra container will be only set with 2.5G of mem. Why is the value so low?
|
jvmHeapSize := maxInt64(minInt64(memoryLimit/2, GIBIBYTE), minInt64(memoryLimit/4, 8*GIBIBYTE)) |
Issue:
The way JVM xmx and xms are calculated limits each Cassandra container to 25% of memory defined in
cdc.Spec.Resources.Limits.Memory().Value(). If we set container requests and limits to 10G our cassandra container will be only set with 2.5G of mem. Why is the value so low?cassandra-operator/pkg/controller/cassandradatacenter/configmap.go
Line 222 in d36f6a0