Skip to content
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

Update sidecar mem limits #541

Merged
merged 13 commits into from
Apr 22, 2021
6 changes: 3 additions & 3 deletions build/linux/installer/conf/td-agent-bit-prom-side-car.conf
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
Tag oms.container.perf.telegraf.*
Listen 0.0.0.0
Port 25229
Chunk_Size 1m
Buffer_Size 1m
Mem_Buf_Limit 20m
Chunk_Size 10m
Buffer_Size 10m
Mem_Buf_Limit 200m
rashmichandrashekar marked this conversation as resolved.
Show resolved Hide resolved

[OUTPUT]
Name oms
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/omsagent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ spec:
resources:
limits:
cpu: 500m
memory: 400Mi
memory: 1Gi
requests:
cpu: 75m
memory: 225Mi
Expand Down
2 changes: 1 addition & 1 deletion source/plugins/ruby/MdmMetricsGenerator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def appendPodMetrics(records, metricName, metricHash, batch_time, metricsTemplat
if metricName == Constants::MDM_STALE_COMPLETED_JOB_COUNT
metric_threshold_hash = getContainerResourceUtilizationThresholds
#Converting this to hours since we already have olderThanHours dimension.
jobCompletionThresholdHours = metric_threshold_hash[Constants::JOB_COMPLETION_TIME] / 60.0
jobCompletionThresholdHours = (metric_threshold_hash[Constants::JOB_COMPLETION_TIME] / 60.0).round(2)
record = metricsTemplate % {
timestamp: batch_time,
metricName: metricName,
Expand Down