hrvolapeter opened a new issue #393:
URL: https://github.com/apache/solr-operator/issues/393


   I'm runnig solr operator on GKE Autopilot clust with example from 
[here](https://solr.apache.org/operator/articles/explore-v030-gke.html) - the 
example requires to round-up resource requests to values supported by 
autopilot. Hovewer, operator keeps rededeploying deployments due to change in 
resource requsts, but the 'to' and 'from' valus are exactly the same. This bug 
is best observable with prometheus exporthes which is redeployed couple times 
per second, the same is happening with cluster but less often - seem like every 
couple minutes.
   
   Logs, seem like relevant code is 
[this](https://github.com/apache/solr-operator/blob/94b62dc967ac4c6e1c8f16acf45d43298ca103d3/controllers/util/common.go#L545)
 - note the to and from clauses
   ```
   controller-runtime.manager.controller.solrprometheusexporter Update required 
because field changed {"reconciler group": "solr.apache.org", "reconciler 
kind": "SolrPrometheusExporter", "name": "explore-prom-exporter", "namespace": 
"default", "deployment": "explore-prom-exporter-solr-metrics", "kind": 
"deployment", "field": "Spec.Template.Spec.Containers[0].Resources", "from": 
{"limits":{"cpu":"250m","ephemeral-storage":"1Gi","memory":"512Mi"},"requests":{"cpu":"250m","ephemeral-storage":"1Gi","memory":"512Mi"}},
 "to": 
{"limits":{"cpu":"250m","ephemeral-storage":"1Gi","memory":"512Mi"},"requests":{"cpu":"250m","ephemeral-storage":"1Gi","memory":"512Mi"}}}
   ```
   ```
   Error
   2022-01-13T21:46:02.884596420Z2022-01-13T21:46:02.884Z INFO 
controller-runtime.manager.controller.solrcloud Update required because field 
changed {"reconciler group": "solr.apache.org", "reconciler kind": "SolrCloud", 
"name": "explore", "namespace": "default", "zookeeperCluster": 
"explore-solrcloud-zookeeper", "kind": "zookeeperCluster", "field": 
"Spec.Pod.Resources", "from": 
{"limits":{"cpu":"250m","ephemeral-storage":"512Mi","memory":"500Mi"},"requests":{"cpu":"250m","ephemeral-storage":"512Mi","memory":"500Mi"}},
 "to": 
{"limits":{"cpu":"250m","ephemeral-storage":"512Mi","memory":"500Mi"},"requests":{"cpu":"250m","ephemeral-storage":"512Mi","memory":"500Mi"}}}
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to