Skip to content

Commit

Permalink
Update sidecar mem limits (#541)
Browse files Browse the repository at this point in the history
  • Loading branch information
rashmichandrashekar authored Apr 22, 2021
1 parent 01e5529 commit b5d074a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
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

[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

0 comments on commit b5d074a

Please sign in to comment.