When I change resources like cpu and memory on limits ECK does nothing, the only way for me to have the sts to be update with my changes is to edit the sts manifest with kubectl edit for applying new values to the sts
Here is the manifest used to create the cluster, you see here all the resources requested and limited but on the first try only memory limit have been set.
The result you wanted
kubectl get elasticsearch -A
NAMESPACE NAME HEALTH NODES VERSION PHASE AGE
cdn-bigdata sophie-int green 19 8.6.0 Ready 24h
cdn-bigdata sophie-mon green 3 8.6.0 Ready 24h
kubectl get es/sophie-int -o jsonpath='{ .status }' -n cdn-bigdata
{
"availableNodes": 19,
"conditions": [{
"lastTransitionTime": "2023-01-18T08:45:43Z",
"status": "True",
"type": "ReconciliationComplete"
}, {
"lastTransitionTime": "2023-01-17T13:08:36Z",
"message": "All nodes are running version 8.6.0",
"status": "True",
"type": "RunningDesiredVersion"
}, {
"lastTransitionTime": "2023-01-17T13:09:55Z",
"message": "Service cdn-bigdata/sophie-int-es-internal-http has endpoints",
"status": "True",
"type": "ElasticsearchIsReachable"
}, {
"lastTransitionTime": "2023-01-17T13:08:38Z",
"message": "Cannot get compute and storage resources from Elasticsearch resource generation 2: cannot compute resources for NodeSet \"master\": memory request and limit do not have the same value",
"status": "False",
"type": "ResourcesAwareManagement"
}],
"health": "green",
"inProgressOperations": {
"downscale": {
"lastUpdatedTime": "2023-01-17T13:08:36Z"
},
"upgrade": {
"lastUpdatedTime": "2023-01-18T08:45:03Z"
},
"upscale": {
"lastUpdatedTime": "2023-01-17T13:08:36Z"
}
},
"monitoringAssociationStatus": {
"cdn-bigdata/sophie-mon": "Established"
},
"observedGeneration": 2,
"phase": "Ready",
"version": "8.6.0"
}
Correct me if I’m wrong but why requests and limits need to be the same ? for me it’s a non-sense because requests and limits doesn’t have the same function.
The status states that the resource is Reconciled. Either it is actually the case, or you applied a change but the operator is not (correctly) running. Could you please:
Provide the operator logs (see the command in my previous message)
Get a diff between the actual state and the expected state.
Also "applying new values to the sts" should not work as expected since there are controlled by the operator.
Regarding the memory requests and limits I would suggest to read this documentation.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.