Comments (8)
It looks that nothing is requested to the runtime when only a memory request is changed:
kubernetes/pkg/kubelet/kuberuntime/kuberuntime_manager.go
Lines 589 to 590 in 5df8e15
Even if a resizePolicy
is RestartContainer
, a container is not restarted in this case. requests.memory
in a container status is copied from allocatedResources
:
kubernetes/pkg/kubelet/kubelet_pods.go
Lines 2112 to 2114 in 5df8e15
I think the problem in this issue is that it takes 60-90 seconds to update requests.memory
in a container status. Currently, this is updated at a regular resync for the pod because nothing triggers status update. It would be better to update it earlier.
from kubernetes.
Resizing memory requests with utilizing cgroup v2 may be supported in the future by #121218. It looks being still discussed, though.
from kubernetes.
Yes, after a few minutes the resize goes through properly.
from kubernetes.
This issue is currently awaiting triage.
If a SIG or subproject determines this is a relevant issue, they will accept it by applying the triage/accepted
label and provide further guidance.
The triage/accepted
label can be added by org members by writing /triage accepted
in a comment.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.
from kubernetes.
/sig node
from kubernetes.
/assign
from kubernetes.
Could you please confirm if the requests.memory
in the container status is updated to 400Mi
90 seconds after the resize request is patched?
from kubernetes.
Good to read, @dshebib !
from kubernetes.
Related Issues (20)
- [Flaking Test] ci-node-e2e (container lifecycle - liveness probes) HOT 4
- [Flaking Test] Integration-master flakes on test/integration/apiserver/admissionwebhook.admissionwebhook HOT 4
- Logs endpoint does not seem to support compression (Accept-Encoding: gzip) HOT 6
- Add more info into webhook to differentiate if a request is originating from custom controller or from other clients like kubectl in webhook stage to have different behaivor HOT 2
- flaky test: TestCustomResourceDefaultingWithoutWatchCache HOT 8
- kube-scheduler split-brain occurs after the time is changed HOT 8
- pods with PVs stuck Pending even though PVCs bound to PVs correctly HOT 6
- Unable to set enforceNodeAllocatable for system-reserved on cgroup v1 systems HOT 5
- Expose GPU specific requests and limits via Downward API HOT 13
- unexpected grpc error (use of closed network connection) during apiserver lifecycle HOT 3
- CEL: CallCost the function args mix receiver with argument in way that is prone to misuse HOT 2
- ValidatingAdmissionPolicy could not find ConfigMap HOT 2
- Allow authorization webhooks to request SARs in proto format HOT 3
- container finished log does not include pod name - this makes it difficult to identify out of memory kills HOT 6
- Invalid kube-reserved configuration in kubelet causes frequent node status patch updates ignoring node-status-report-frequency HOT 3
- [Flaking Test] gce-ubuntu-master-containerd (DisruptionController related) HOT 2
- pull-kubernetes-typecheck doesn't notice compile errors in staging test files HOT 3
- NodePort service with endpoints has "has no local endpoints" in iptables HOT 8
- Graduate RotateKubeletServerCertificate HOT 7
- Pod starting order after restart doesn't follow pod priorities HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kubernetes.