apache / pinot

Apache Pinot - A realtime distributed OLAP datastore
https://pinot.apache.org/
Apache License 2.0
5.42k stars 1.27k forks source link

trying to upgrade minion pod memory and getting failed #11459

Open teamiumtree opened 1 year ago

teamiumtree commented 1 year ago

i can not upgrade helm chart and reinstall because there is 200GB data runing on production, but need to upgrade minion pod memory as its exausted and its running with statless set. when trying to update in running pod its giving issue .

Failed to save resource: Pod "pinot-minion-stateless-55967477d5-g8bxv" is invalid: spec: Forbidden: pod updates may not change fields other than spec.containers[*].image, spec.initContainers[*].image, spec.activeDeadlineSeconds, spec.tolerations (only additions to existing tolerations) or spec.terminationGracePeriodSeconds (allow it to be set to 1 if it was previously negative) core.PodSpec{ Volumes: {{Name: "config", VolumeSource: {ConfigMap: &{LocalObjectReference: {Name: "pinot-minion-stateless-config"}, DefaultMode: &420}}}, {Name: "data", VolumeSource: {EmptyDir: &{}}}, {Name: "kube-api-access-rqr6l", VolumeSource: {Projected: &{Sources: {{ServiceAccountToken: &{ExpirationSeconds: 3607, Path: "token"}}, {ConfigMap: &{LocalObjectReference: {Name: "kube-root-ca.crt"}, Items: {{Key: "ca.crt", Path: "ca.crt"}}}}, {DownwardAPI: &{Items: {{Path: "namespace", FieldRef: &{APIVersion: "v1", FieldPath: "metadata.namespace"}}}}}}, DefaultMode: &420}}}}, InitContainers: nil, Containers: []core.Container{ { ... // 5 identical fields Ports: {{Name: "minion", ContainerPort: 9514, Protocol: "TCP"}}, EnvFrom: nil, Env: []core.EnvVar{ { Name: "JAVA_OPTS", Value: strings.Join({ "-XX:ActiveProcessorCount=",

Jackie-Jiang commented 1 year ago

cc @xiangfu0

I guess this is a general cloud operation issue?

teamiumtree commented 1 year ago

changes in deployment.yaml worked for me.

thanks for responce

xiangfu0 commented 1 year ago

@teamiumtree do you want to submit a PR to fix the deployment.yaml?