<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jagdish Komakula on Medium]]></title>
        <description><![CDATA[Stories by Jagdish Komakula on Medium]]></description>
        <link>https://medium.com/@jagxlnc?source=rss-4c13df5f0099------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*MfMC_HrX54lTlEp9RX4_xQ.jpeg</url>
            <title>Stories by Jagdish Komakula on Medium</title>
            <link>https://medium.com/@jagxlnc?source=rss-4c13df5f0099------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 18:51:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jagxlnc/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[IBM APIConnect v2018/v10 on K8s/OCP — Capacity Planning and Monitoring.]]></title>
            <link>https://medium.com/ibm-cloud-paks-help-and-guidance-from-ibm-cloud/ibm-apiconnect-v2018-v10-on-k8s-ocp-capacity-planning-and-monitoring-6fb8eab91ef3?source=rss-4c13df5f0099------2</link>
            <guid isPermaLink="false">https://medium.com/p/6fb8eab91ef3</guid>
            <category><![CDATA[capacity-planning]]></category>
            <category><![CDATA[grafana]]></category>
            <category><![CDATA[cloud-capacity-management]]></category>
            <category><![CDATA[resource-quota]]></category>
            <category><![CDATA[apiconnect]]></category>
            <dc:creator><![CDATA[Jagdish Komakula]]></dc:creator>
            <pubDate>Mon, 28 Sep 2020 12:14:00 GMT</pubDate>
            <atom:updated>2020-09-28T12:24:18.210Z</atom:updated>
            <content:encoded><![CDATA[<h3>IBM APIConnect v2018/v10 on K8s/OCP — Resource Management with Licensing Considerations</h3><p>Co-author : <a href="https://medium.com/@deepjagdish">Deepak Khandelwal</a> &amp; <a href="https://medium.com/@ananth.mkh_ibm">Anantha Narayanan</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*At65omRv8Tx1bz-diNq8jQ.jpeg" /></figure><p><a href="https://en.wikipedia.org/wiki/Capacity_planning">Resource Allocation and planning</a> for Kubernetes workloads is ‘the most important step’ in successfully building, deploying an optimized cost-effective production infrastructure. You will need to consider multiple factors and configure your cluster accordingly before deploying on shared infrastructure.</p><p>Let’s take an example of installing <a href="https://www.ibm.com/support/knowledgecenter/SSMNED_v10/com.ibm.apic.overview.doc/capim_overview_apiconnectcomponents.html">IBM API Connect(APIC)</a> on a managed Kubernetes Cluster. The APIC includes the following server types on Kubernetes / on-premises cloud.</p><blockquote><strong><em>1: Management server: </em></strong><em>Stores all of the cloud configuration, and controls communication between the other servers within API Connect.</em></blockquote><blockquote><strong><em>2: Analytics server: </em></strong><em>Provides analytic functions that collect and store information about APIs and API users.</em></blockquote><blockquote><strong><em>3: Gateway server: </em></strong><em>Processes and manages security protocols and stores relevant user and appliance authentication data.</em></blockquote><blockquote><strong><em>4: Developer Portal server: </em></strong><em>Provides a customizable social developer portal with a full-featured content management system, and includes clustering capability.</em></blockquote><p>These server types are deployed as Pods and Jobs on Kubernetes based environments. Most of the pods have CPU requests defined but setting up limits is not recommended. These pods will use more CPUs based on the traffic. The typical HA configuration of APIC would require more than 48 CPUs with most the pod’s replica counts are limited to three (3). The default CPU resource Limits and Requests of pods/jobs on a Highly Available (HA) setup would look like this table.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fairtable.com%2Fembed%2Fshrwb5omzrOBeG9sV%2Ftbl8KtDcOrLxo1aIB&amp;display_name=Airtable&amp;url=https%3A%2F%2Fairtable.com%2Fshrwb5omzrOBeG9sV%2Ftbl8KtDcOrLxo1aIB&amp;image=https%3A%2F%2Fstatic.airtable.com%2Fimages%2Foembed%2Fairtable.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=airtable" width="800" height="533" frameborder="0" scrolling="no"><a href="https://medium.com/media/664db1e675045f483d184ace640a3e1a/href">https://medium.com/media/664db1e675045f483d184ace640a3e1a/href</a></iframe><h3>Pointers to consider before deploying IBM APIC</h3><p>1: Organizations usually procure a fixed number of APIC licenses (CPU Cores) based on the anticipated traffic and would like to keep resource utilization under this limit. In a Virtual Machine (VM) based environments, this is typically done by building VMs with the required resources. In a managed Kubernetes environment this still can be done using node selectors. Using the Node selector, the nodes will become dedicated to APIC and no other pods can be scheduled on them. In case of a node failure, scheduling of APIC pods to other worker nodes becomes a challenge. Also, some CPU cores get utilized by other resources like OS, Kubelet, Container engine, etc.</p><p>2: Organizations would like to use Kubernetes features such as Horizontal Pod Autoscaler (HPA) to scale up/down APIC pods based on CPU / Memory utilization patterns. If the desired set of replicas are fixed, organizations may not utilize scalability feature of container orchestration.</p><p>3: Organization would like to understand resource utilization patterns to tune Pods and to procure new licenses if required. They would like to have a command line or dashboard utilities to understand the historical utilization pattern of deployed licenses.</p><h4><a href="https://kubernetes.io/docs/concepts/policy/resource-quotas/">Create ResourceQuota for APIC</a></h4><p>To utilize resources under the procured numbers, namespace <a href="https://kubernetes.io/docs/concepts/policy/resource-quotas/">ResourceQuota</a> can be defined. This provides constraints that limit aggregate resource consumption per namespace. It can limit the total amount of compute resources that may be consumed by resources in that namespace. As shown below, CPU limits and requests are capped on 36 cores where memory limits and requests are capped at 200GB accumulating all the pods in “apic” namespace.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0bcad30adc2df9853c0f3a6b77c55774/href">https://medium.com/media/0bcad30adc2df9853c0f3a6b77c55774/href</a></iframe><p>Once <a href="https://kubernetes.io/docs/concepts/policy/resource-quotas/">ResourceQuota</a> is assigned to the namespace, administrators can view the current utilization of CPU/memory, limits/requests by kubectl commands.</p><pre><strong><em>kubectl describe  resourcequota mem-cpu-quota  -n apic</em></strong></pre><pre>Name:            mem-cpu-quota<br>Namespace:       apic<br>Resource         Used      Hard<br>--------         ----      ----<br>limits.cpu       27500m    36<br>limits.memory    136576Mi  200Gi<br>requests.cpu     17745m    36<br>requests.memory  95964Mi   200Gi</pre><pre><strong><em>kubectl get resourcequota mem-cpu-quota -o yaml -n apic</em></strong></pre><pre>apiVersion: v1<br>kind: ResourceQuota<br>metadata:<br>  creationTimestamp: &quot;2020-09-27T19:38:56Z&quot;<br>  name: mem-cpu-quota<br>  namespace: apic<br>  resourceVersion: &quot;188016939&quot;<br>  selfLink: /api/v1/namespaces/apic/resourcequotas/mem-cpu-quota<br>  uid: 15068c5c-00f9-11eb-8239-5254008e9445<br>spec:<br>  hard:<br>    limits.cpu: &quot;36&quot;<br>    limits.memory: 200Gi<br>    requests.cpu: &quot;36&quot;<br>    requests.memory: 200Gi<br>status:<br>  hard:<br>    limits.cpu: &quot;36&quot;<br>    limits.memory: 200Gi<br>    requests.cpu: &quot;36&quot;<br>    requests.memory: 200Gi<br>  used:<br>    limits.cpu: 27500m<br>    limits.memory: 136576Mi<br>    requests.cpu: 17745m<br>    requests.memory: 95964Mi</pre><p>If the resource limit/request has reached to quota assigned, the new deployments, scaling will be in the Pending state till the time resources are released.</p><h4><a href="https://kubernetes.io/docs/tasks/run-application/scale-stateful-set/">Create a Pod/Statefulsets Scaling Policy for APIC</a></h4><p>Now since namespaces are capped at the number of procured licenses using ResourceQuota, organizations would like to use all resources in full capacity by creating a scaling policy. Some of the deployments for APIC already have HPA by default. You may need to consider implementing scaling for Kubernetes statefulsets, especially gateway pods which is the runtime for API traffic.</p><pre># Scale Statefulsets </pre><pre>kubectl scale statefulsets &lt;stateful-set-name&gt; --replicas=&lt;replicaNumber&gt; </pre><pre>For Example: </pre><pre><strong>kubectl scale statefulsets r8a4435c9ec-apiconnect-cc --replicas=5</strong></pre><pre><strong>kubectl scale statefulsets r46e1934c3d-dynamic-gateway-service --replicas=5</strong></pre><h4><a href="https://grafana.com/grafana/dashboards/13080">Grafana Dashboards to monitor resource limits/requests/quota.</a></h4><p>Grafana dashboard can be used to visualize the current utilization of CPU/memory against the resource quota assigned. <em>IBM APIC Resources Consumption Dashboard </em>is available at <a href="https://grafana.com/grafana/dashboards/13080">Grafana Labs</a> to use.</p><p><a href="https://grafana.com/grafana/dashboards/13080">IBM APIC Resources Consumption Dashboard dashboard for Grafana</a></p><p>This dashboard provides Resource level details for all pods within <strong>“apic” </strong>namespace.</p><blockquote><a href="https://grafana.com/grafana/dashboards/13080"><strong><em>Singlestat panels: </em></strong></a><em><br></em>CPU Requests Allocated / CPU Requests Quota<br>CPU Limits Allocated / CPU Limits Quota<br>Memory Requests Allocated / Memory Requests Quota<br>Memory Limits Allocated / Memory Limits Quota</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Z3N0j4uizdFOXZRu.png" /></figure><blockquote><a href="https://grafana.com/grafana/dashboards/13080"><strong><em>Table panels:</em></strong></a><em><br></em>CPU request/limit for all pods<br>Memory request/limit for all pods</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ol0Wk7G5W4c7PSZ5.png" /></figure><blockquote><a href="https://grafana.com/grafana/dashboards/13080"><strong><em>Graph Panels:</em></strong></a><em><br></em>CPU Usage Pattern for all pods<br>Memory Usage Pattern for all Pods</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*N-DAkw62SanC5vSt.png" /></figure><p>The dynamic nature of cloud-based systems makes traditional capacity planning very challenging. Proper planning, configuring and monitoring Kubernetes resources as mentioned above should help in achieving predictive technical and business outcomes.</p><ul><li><a href="https://medium.com/@deepjagdish">Deepak Khandelwal - Medium</a></li><li><a href="https://medium.com/@ananth.mkh_ibm">Anantha Narayanan K - Medium</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6fb8eab91ef3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ibm-cloud-paks-help-and-guidance-from-ibm-cloud/ibm-apiconnect-v2018-v10-on-k8s-ocp-capacity-planning-and-monitoring-6fb8eab91ef3">IBM APIConnect v2018/v10 on K8s/OCP — Capacity Planning and Monitoring.</a> was originally published in <a href="https://medium.com/ibm-cloud-paks-help-and-guidance-from-ibm-cloud">IBM Cloud Pak’s Help and Guidance from IBM Expert Labs Asia Pacific</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>