-
Notifications
You must be signed in to change notification settings - Fork 440
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
Otel collector created using otel operator not setting hpa memory utilization config correctly #3283
Comments
can you share the generated HPA resource? |
@jaronoff97 this is the hpa configuration in my deployment yaml
Below is the generated hpa yaml
|
@jaronoff97 Could you add a test case for memory based autoscale here, so that you can reproduce it. https://github.com/open-telemetry/opentelemetry-operator/tree/main/tests/e2e-autoscale/autoscale |
@shine17 we already have a test case for CPU, i copied it for memory and was unable to reproduce your bug. Is this an issue with the operator? you mentioned deployment.yaml, where is that coming from for you? Is it possible your helm chart is misconfigured? if you are able to reproduce this locally, can you please provide a full working example? |
Component(s)
collector
What happened?
Description
Otel collector created using otel operator not setting hpa memory utilization config correctly
Steps to Reproduce
Deploy otel operator.
Create otel collector deployment object with min of 3 replicas and max of 6 replicas
The
targetMemoryUtilization
is not honored and hpa always scale the collector pods although the memory utilization is less than 30 percent of the limit for each collector pods.pod memory data -
NAME CPU(cores) MEMORY(bytes)
otel-gateway-collector-7898f79fdd-27l9j 1m 55Mi
hpa data -
otel-gateway-collector OpenTelemetryCollector/otel-gateway 112%/65%, 4%/80% 3 6 6 106m
Expected Result
Scaling should happen only based on
targetMemoryUtilization
percentage.Actual Result
Scaling happens since it calculates targetMemoryUtilization incorrectly.
Also please provide test cases for
targetMemoryUtilization
in the repo. I don't find test cases fortargetMemoryUtilization
in the repo https://github.com/open-telemetry/opentelemetry-operator/tree/main/tests/e2e-autoscale/autoscaleKubernetes Version
1.29.7
Operator version
0.108.0
Collector version
0.109.0
Environment information
Environment
OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: