-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Human readable memory for VPA #7094
Comments
/area vertical-pod-autoscaler |
Would also love human-readable memory! |
/retitle Human readable memory for VPA |
This has been merged to master, and should be available in the next VPA release. Thanks @omerap12 for doing this one! |
@adrianmoisey: Closing this issue. In response to this:
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. |
My pleasure 😀 |
Hi all, I tried with 1.3.0 image with "--humanize-memory=true" today, but found the MEM value now having more digits with the unit "milibyte". This value looks to align with the code design 272063528960/1000/1024/1024=259.46Mi, but seems more unreadable. Is there some configuration I missed?
|
Can you give us some steps to reproduce this?
I then turned the setting off, and the recommendation reverted to the non-human-readable format:
|
Hi @adrianmoisey , my vpa is installed with tag=1.3.0; helm upgrade -i -n kube-system vpa fairwinds-stable/vpa -f vpa-values.yaml --set recommender.image.tag=$tag,updater.image.tag=$tag,admissionController.image.tag=$tag # vpa-values.yaml
recommender:
# recommender.enabled -- If true, the vpa recommender component will be installed.
enabled: true
# recommender.extraArgs -- A set of key-value flags to be passed to the recommender
extraArgs:
v: "4"
humanize-memory: true # starting from 1.3.0
pod-recommendation-min-cpu-millicores: 10
pod-recommendation-min-memory-mb: 50
target-cpu-percentile: 0.50
target-memory-percentile: 0.50
replicaCount: 1 Without "humanize-memory: true", I get this result, seems already worse than yours :\
With "humanize-memory: true", I get a result where 50Mi looks good but the others not.
Thanks for your help! |
Can you share the recommender logs? We print wether we convert the metrics or not |
Can you paste your VPA objects here too please? At least for the VPA components. |
Ah, I reproduced it by increasing memory usage:
I didn't get a log similar to:
|
@omerap12 my logs recommender.log @adrianmoisey My VPA Objects for the VPA components. ---
apiVersion: autoscaling.k8s.io/v1
kind: VerticalPodAutoscaler
metadata:
name: vpa-admission-controller
namespace: kube-system
spec:
targetRef:
apiVersion: apps/v1
kind: Deployment
name: vpa-admission-controller
updatePolicy:
updateMode: Auto
---
apiVersion: autoscaling.k8s.io/v1
kind: VerticalPodAutoscaler
metadata:
name: vpa-recommender
namespace: kube-system
spec:
targetRef:
apiVersion: apps/v1
kind: Deployment
name: vpa-recommender
updatePolicy:
updateMode: Auto
resourcePolicy:
containerPolicies:
- containerName: '*'
minAllowed:
memory: 50Mi
---
apiVersion: autoscaling.k8s.io/v1
kind: VerticalPodAutoscaler
metadata:
name: vpa-updater
namespace: kube-system
spec:
targetRef:
apiVersion: apps/v1
kind: Deployment
name: vpa-updater
updatePolicy:
updateMode: Auto |
@kyleli666 could you open a new bug issue for this? It's strange to keep discussion on a closed issue |
Here it is #7770 |
Hello,
I have 2 questions that I cannot find answers for online
question 1:
is it possible to have the indication of memory in a more human readable fashion? like in Kb, Mb, Gb, etc
NAMESPACE NAME MODE CPU MEM PROVIDED AGE
default analyzer-vpa Off 1038m 4992073454 True 72m
default input-manager-vpa Off 25m 262144k True 72m
question 2:
is the indication of the cpu and memory usage per pods or per deployment? if I activate the autoscaler, would it divide the request and limit per pods accordingly?
thank you in advance
The text was updated successfully, but these errors were encountered: