<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Kubernetes dynatrace operator one agent cpu requests and limits against cpu throttling in Container platforms</title>
    <link>https://community.dynatrace.com/t5/Container-platforms/Kubernetes-dynatrace-operator-one-agent-cpu-requests-and-limits/m-p/193357#M140</link>
    <description>&lt;P&gt;Hi Folks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the Dynatrace operator documentation I have not found any recommondation or quide line for the one agent cpu requests and limits setting. I have already read a lot of forums about the kubernetes requests and limits best practises and the missunderstanding around the limits.&amp;nbsp;&lt;A href="https://medium.com/omio-engineering/cpu-limits-and-aggressive-throttling-in-kubernetes-c5b20bd8a718" target="_blank" rel="noopener"&gt;CPU limits and aggressive throttling in Kubernetes | by Fayiz Musthafa | Omio Engineering | Medium&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have a relatively small test (acceptance environment) kubernetes cluster with 16 nodes and&amp;nbsp; we have instrumented only 6 worker nodes with oneagent. The cpu requests and limites have been sligthly increased in the classicfullstack.yaml:&lt;/P&gt;
&lt;P&gt;requests: 100m - &amp;gt; 200m&lt;/P&gt;
&lt;P&gt;limits: 300m -&amp;gt; 500m&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In spite of the change on the initial cpu requests and limits values the oneagent pods cpu throttling countiounsly (between 300 mCores - 900 mCores). What would be the ideal values of the requests and limits? Do you have any idea?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Environment information: openshift 4.10, dynatrace operator 0.8.1, pod count is between 50 - 60 / worker node.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Br, Mizső&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Aug 2022 07:22:27 GMT</pubDate>
    <dc:creator>Mizső</dc:creator>
    <dc:date>2022-08-29T07:22:27Z</dc:date>
    <item>
      <title>Kubernetes dynatrace operator one agent cpu requests and limits against cpu throttling</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/Kubernetes-dynatrace-operator-one-agent-cpu-requests-and-limits/m-p/193357#M140</link>
      <description>&lt;P&gt;Hi Folks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the Dynatrace operator documentation I have not found any recommondation or quide line for the one agent cpu requests and limits setting. I have already read a lot of forums about the kubernetes requests and limits best practises and the missunderstanding around the limits.&amp;nbsp;&lt;A href="https://medium.com/omio-engineering/cpu-limits-and-aggressive-throttling-in-kubernetes-c5b20bd8a718" target="_blank" rel="noopener"&gt;CPU limits and aggressive throttling in Kubernetes | by Fayiz Musthafa | Omio Engineering | Medium&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have a relatively small test (acceptance environment) kubernetes cluster with 16 nodes and&amp;nbsp; we have instrumented only 6 worker nodes with oneagent. The cpu requests and limites have been sligthly increased in the classicfullstack.yaml:&lt;/P&gt;
&lt;P&gt;requests: 100m - &amp;gt; 200m&lt;/P&gt;
&lt;P&gt;limits: 300m -&amp;gt; 500m&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In spite of the change on the initial cpu requests and limits values the oneagent pods cpu throttling countiounsly (between 300 mCores - 900 mCores). What would be the ideal values of the requests and limits? Do you have any idea?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Environment information: openshift 4.10, dynatrace operator 0.8.1, pod count is between 50 - 60 / worker node.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Br, Mizső&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 07:22:27 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/Kubernetes-dynatrace-operator-one-agent-cpu-requests-and-limits/m-p/193357#M140</guid>
      <dc:creator>Mizső</dc:creator>
      <dc:date>2022-08-29T07:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Kubernetes dynatrace operator one agent cpu requests and limits against cpu throttling</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/Kubernetes-dynatrace-operator-one-agent-cpu-requests-and-limits/m-p/193359#M141</link>
      <description>&lt;P&gt;As per samples form&amp;nbsp;&lt;A href="https://github.com/Dynatrace/dynatrace-operator/tree/v0.8.1/assets/samples" target="_blank"&gt;https://github.com/Dynatrace/dynatrace-operator/tree/v0.8.1/assets/samples&lt;/A&gt;&amp;nbsp;the proposed values are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;      # oneAgentResources:
      #   requests:
      #     cpu: 100m
      #     memory: 512Mi
      #   limits:
      #     cpu: 300m
      #     memory: 1.5Gi&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 13:56:18 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/Kubernetes-dynatrace-operator-one-agent-cpu-requests-and-limits/m-p/193359#M141</guid>
      <dc:creator>dannemca</dc:creator>
      <dc:date>2022-08-26T13:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Kubernetes dynatrace operator one agent cpu requests and limits against cpu throttling</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/Kubernetes-dynatrace-operator-one-agent-cpu-requests-and-limits/m-p/193389#M142</link>
      <description>&lt;P&gt;Hi dannemca,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This was the first try with the original / proposed values but the cpu trhottling was higher compare with the new values. That is why we increased the proposed values for requests 100 to 200 and limits 300 to 500 but we still observed cpu throttling. I hoped someone has a real user experience how can we define these values and I could avoid the step by step test of the value changes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Br, Mizső&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 07:07:35 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/Kubernetes-dynatrace-operator-one-agent-cpu-requests-and-limits/m-p/193389#M142</guid>
      <dc:creator>Mizső</dc:creator>
      <dc:date>2022-08-29T07:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Kubernetes dynatrace operator one agent cpu requests and limits against cpu throttling</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/Kubernetes-dynatrace-operator-one-agent-cpu-requests-and-limits/m-p/193802#M1248</link>
      <description>&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any hints regarding this topic?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Br, Mizső&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 19:37:04 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/Kubernetes-dynatrace-operator-one-agent-cpu-requests-and-limits/m-p/193802#M1248</guid>
      <dc:creator>Mizső</dc:creator>
      <dc:date>2022-09-02T19:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Kubernetes dynatrace operator one agent cpu requests and limits against cpu throttling</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/Kubernetes-dynatrace-operator-one-agent-cpu-requests-and-limits/m-p/193909#M1264</link>
      <description>&lt;P&gt;Hi Mizső,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just like memory demand variance (see: &lt;A href="https://www.dynatrace.com/support/help/shortlink/id-oneagent-code-module-memory-requirements" target="_blank"&gt;https://www.dynatrace.com/support/help/shortlink/id-oneagent-code-module-memory-requirements&lt;/A&gt;), the OneAgent CPU usage can be highly &lt;STRONG&gt;variable based on the monitored environment.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The sample that &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/18264"&gt;@dannemca&lt;/a&gt; has linked is a good place to start by un-commenting those default settings, so they become active.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I usually have the CPU limit removed for OneAgent, since I've seen busy environments where it frequently wants up to a whole core. Then I monitor to see it's usage and set an appropriate limit as you don't want too much CPU throttling.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other environments are quiet and use much less than sample settings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An example dashboard tile that could help you to monitor:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="The_AM_0-1662421101679.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/7451i0C5CB65D9BD3287E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="The_AM_0-1662421101679.png" alt="The_AM_0-1662421101679.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
  "metadata": {
    "configurationVersions": [
      6
    ],
    "clusterVersion": "1.249.165.20220902-174254"
  },
  "dashboardMetadata": {
    "name": "OneAgent CPU throttling and usage",
    "shared": false,
    "owner": "",
    "tags": [
      "Self-monitoring"
    ],
    "hasConsistentColors": false
  },
  "tiles": [
    {
      "name": "Total CPU usage vs throttling",
      "tileType": "DATA_EXPLORER",
      "configured": true,
      "bounds": {
        "top": 0,
        "left": 0,
        "width": 836,
        "height": 456
      },
      "tileFilter": {},
      "customName": "Total CPU usage vs throttling",
      "queries": [
        {
          "id": "A",
          "timeAggregation": "DEFAULT",
          "splitBy": [],
          "metricSelector": "builtin:containers.cpu.throttledMilliCores:avg:filter(and(eq(Container,dynatrace-oneagent))):splitBy(\"dt.entity.container_group_instance\",Container):sum:auto:sort(value(sum,descending)):limit(10)",
          "enabled": true
        },
        {
          "id": "B",
          "timeAggregation": "DEFAULT",
          "splitBy": [],
          "metricSelector": "builtin:containers.cpu.usageMilliCores:avg:filter(and(eq(Container,dynatrace-oneagent))):splitBy(\"dt.entity.container_group_instance\",Container):sum:auto:sort(value(sum,descending)):limit(10)",
          "enabled": true
        }
      ],
      "visualConfig": {
        "type": "GRAPH_CHART",
        "global": {
          "hideLegend": false
        },
        "rules": [
          {
            "matcher": "A:",
            "properties": {
              "color": "DEFAULT"
            },
            "seriesOverrides": []
          },
          {
            "matcher": "B:",
            "properties": {
              "color": "DEFAULT"
            },
            "seriesOverrides": []
          }
        ],
        "axes": {
          "xAxis": {
            "visible": true
          },
          "yAxes": [
            {
              "visible": true,
              "min": "AUTO",
              "max": "AUTO",
              "position": "LEFT",
              "queryIds": [
                "A",
                "B"
              ],
              "defaultAxis": true
            }
          ]
        },
        "heatmapSettings": {
          "yAxis": "VALUE"
        },
        "thresholds": [
          {
            "axisTarget": "LEFT",
            "rules": [
              {
                "color": "#7dc540"
              },
              {
                "color": "#f5d30f"
              },
              {
                "color": "#dc172a"
              }
            ],
            "queryId": "",
            "visible": true
          }
        ],
        "tableSettings": {
          "isThresholdBackgroundAppliedToCell": false
        },
        "graphChartSettings": {
          "connectNulls": false
        },
        "honeycombSettings": {
          "showHive": true,
          "showLegend": true,
          "showLabels": false
        }
      },
      "queriesSettings": {
        "resolution": ""
      },
      "metricExpressions": [
        "resolution=null&amp;amp;(builtin:containers.cpu.throttledMilliCores:avg:filter(and(eq(Container,dynatrace-oneagent))):splitBy(\"dt.entity.container_group_instance\",Container):sum:auto:sort(value(sum,descending)):limit(10)):limit(100):names,(builtin:containers.cpu.usageMilliCores:avg:filter(and(eq(Container,dynatrace-oneagent))):splitBy(\"dt.entity.container_group_instance\",Container):sum:auto:sort(value(sum,descending)):limit(10)):limit(100):names"
      ]
    }
  ]
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2022 23:39:26 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/Kubernetes-dynatrace-operator-one-agent-cpu-requests-and-limits/m-p/193909#M1264</guid>
      <dc:creator>The_AM</dc:creator>
      <dc:date>2022-09-05T23:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Kubernetes dynatrace operator one agent cpu requests and limits against cpu throttling</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/Kubernetes-dynatrace-operator-one-agent-cpu-requests-and-limits/m-p/193923#M1269</link>
      <description>&lt;P&gt;Hi Andrew,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your response. I have already un-commented the resource parameters and modified it but cpu throttling is still with us. Unfortunately at the client limit less configuration is not allowed in Production. In the test OP cluster I am going to try your apporche and cpu limits will be removed.&amp;nbsp;Thanks for the dashboard.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a nince day.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Br, Mizső&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 07:15:22 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/Kubernetes-dynatrace-operator-one-agent-cpu-requests-and-limits/m-p/193923#M1269</guid>
      <dc:creator>Mizső</dc:creator>
      <dc:date>2022-09-06T07:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Kubernetes dynatrace operator one agent cpu requests and limits against cpu throttling</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/Kubernetes-dynatrace-operator-one-agent-cpu-requests-and-limits/m-p/193928#M1270</link>
      <description>&lt;P&gt;Hi Andrew,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The dashboard is very useful perviously I used only the Kubernetes individual one-agent pods views to check the cpu throttling. After the current managed release update the situation is a little bit consolidated, there is still cpu throttling but not so huge. You can see the managed upgrade time in the dashboard. I am going to check the actual cpu throttling of on-agent pod with this dashboard:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mizs_0-1662450961876.png" style="width: 697px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/7457i16F2637606EEA367/image-dimensions/697x456?v=v2" width="697" height="456" role="button" title="Mizs_0-1662450961876.png" alt="Mizs_0-1662450961876.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So this is the current status, it is much better the before (acual setting is requests 200m - limits 500m)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mizs_1-1662451021098.png" style="width: 788px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/7458i5F0630E61DA4E5A9/image-dimensions/788x201?v=v2" width="788" height="201" role="button" title="Mizs_1-1662451021098.png" alt="Mizs_1-1662451021098.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks for your support.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;János&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 07:59:11 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/Kubernetes-dynatrace-operator-one-agent-cpu-requests-and-limits/m-p/193928#M1270</guid>
      <dc:creator>Mizső</dc:creator>
      <dc:date>2022-09-06T07:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Kubernetes dynatrace operator one agent cpu requests and limits against cpu throttling</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/Kubernetes-dynatrace-operator-one-agent-cpu-requests-and-limits/m-p/193929#M1271</link>
      <description>&lt;P&gt;You are welcome &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/47783"&gt;@Mizső&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 08:05:50 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/Kubernetes-dynatrace-operator-one-agent-cpu-requests-and-limits/m-p/193929#M1271</guid>
      <dc:creator>The_AM</dc:creator>
      <dc:date>2022-09-06T08:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Kubernetes dynatrace operator one agent cpu requests and limits against cpu throttling</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/Kubernetes-dynatrace-operator-one-agent-cpu-requests-and-limits/m-p/193930#M1272</link>
      <description>&lt;P&gt;I am glad to see it has been useful for you. Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 08:06:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/Kubernetes-dynatrace-operator-one-agent-cpu-requests-and-limits/m-p/193930#M1272</guid>
      <dc:creator>The_AM</dc:creator>
      <dc:date>2022-09-06T08:06:49Z</dc:date>
    </item>
  </channel>
</rss>

