Skip to content

Commit

Permalink
Deployed 3a7441c with MkDocs version: 1.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
antweiss committed May 9, 2024
1 parent c281408 commit 9d225d3
Show file tree
Hide file tree
Showing 13 changed files with 304 additions and 4 deletions.
3 changes: 3 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@
<a class="w3-bar-item w3-padding-16 w3-button w3-hover-theme w3-theme-l4" href="/golden-signals/">
The Golden Signals of Kubernetes Cost Optimization
</a>
<a class="w3-bar-item w3-padding-16 w3-button w3-hover-theme w3-theme-l4" href="/resources/">
The Economics of Kubernetes Resource Allocation
</a>
<a class="w3-bar-item w3-padding-16 w3-button w3-hover-theme w3-theme-l4" href="/over-under-idle-waste/">
The 4 Focus Areas of Kubernetes Cost Optimization
</a>
Expand Down
Binary file added assets/idle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions cloud-discounts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@
<a class="w3-bar-item w3-padding-16 w3-button w3-hover-theme w3-theme-l4" href="../golden-signals/">
The Golden Signals of Kubernetes Cost Optimization
</a>
<a class="w3-bar-item w3-padding-16 w3-button w3-hover-theme w3-theme-l4" href="../resources/">
The Economics of Kubernetes Resource Allocation
</a>
<a class="w3-bar-item w3-padding-16 w3-button w3-hover-theme w3-theme-l4" href="../over-under-idle-waste/">
The 4 Focus Areas of Kubernetes Cost Optimization
</a>
Expand Down
3 changes: 3 additions & 0 deletions cluster-autoscaling/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@
<a class="w3-bar-item w3-padding-16 w3-button w3-hover-theme w3-theme-l4" href="../golden-signals/">
The Golden Signals of Kubernetes Cost Optimization
</a>
<a class="w3-bar-item w3-padding-16 w3-button w3-hover-theme w3-theme-l4" href="../resources/">
The Economics of Kubernetes Resource Allocation
</a>
<a class="w3-bar-item w3-padding-16 w3-button w3-hover-theme w3-theme-l4" href="../over-under-idle-waste/">
The 4 Focus Areas of Kubernetes Cost Optimization
</a>
Expand Down
24 changes: 22 additions & 2 deletions cost-perf-r9y/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@
<a class="w3-bar-item w3-padding-16 w3-button w3-hover-theme w3-theme-l4" href="../golden-signals/">
The Golden Signals of Kubernetes Cost Optimization
</a>
<a class="w3-bar-item w3-padding-16 w3-button w3-hover-theme w3-theme-l4" href="../resources/">
The Economics of Kubernetes Resource Allocation
</a>
<a class="w3-bar-item w3-padding-16 w3-button w3-hover-theme w3-theme-l4" href="../over-under-idle-waste/">
The 4 Focus Areas of Kubernetes Cost Optimization
</a>
Expand All @@ -134,18 +137,35 @@
</nav>

<div class="w3-overlay w3-hide-huge w3-animate-opacity" onclick="w3_close()" style="cursor:pointer;" id="myOverlay"></div>

<nav class="w3-sidebar w3-bar-block w3-collapse w3-animate-right w3-theme-l4" style="z-index:3;width:300px;right:0;" id="myTocbar">
<div id="myToc">
<a href="#balancing-cost-with-performance-and-reliability" class="w3-bar-item w3-button w3-hover-theme w3-theme-l4">Balancing Cost with Performance and Reliability</a>
<a href="#understanding-the-pod-qos-model" class="w3-bar-item w3-small w3-button w3-hover-theme w3-theme-l4">Understanding the Pod QoS Model</a>
</div>
<div class="w3-container w3-large" style="height: 8em;" >&nbsp;</div>
</nav>

<div id="main-view" class="w3-main-custom" style="margin-left:300px;">
<div id="main-view" class="w3-main-custom" style="margin-left:300px; margin-right:300px;">

<div class="w3-container" style="padding: 32px;">
<div class="w3-right w3-margin-bottom no-print">
<div class="w3-dropdown-hover w3-hide-large" id="myTocButton" style="z-index:1;">
<button class="w3-button w3-hover-theme w3-theme-l3 w3-hover-theme"><svg class="svg-1em"><use xlink:href="#toc" /></svg></button>
<div class="w3-dropdown-content w3-bar-block" style="right:0;">
<a href="#balancing-cost-with-performance-and-reliability" class="w3-bar-item w3-button w3-hover-theme w3-theme-l3">Balancing Cost with Performance and Reliability</a>
<a href="#understanding-the-pod-qos-model" class="w3-bar-item w3-small w3-button w3-hover-theme w3-theme-l3">Understanding the Pod QoS Model</a>
</div>
</div>
</div>
<h1 id="balancing-cost-with-performance-and-reliability">Balancing Cost with Performance and Reliability</h1>
<p>Kubernetes cost optimization comes down to pinpointing the correct resource allocations and auto-scaling factors for our workloads.</p>
<p>But "correct" in this context doesn't mean "the least possible amount of resources". It's a delicate interplay of cost vs. performance vs.reliability. </p>
<p>In order to run our clusters in the most cost-effective way without compromising either performance or reliability it's vitally inportant to understand the Pod QoS model and the implications of PodDisruptionBudget.</p>
<h2 id="understanding-the-pod-qos-model">Understanding the Pod QoS Model</h2>
<p>Kubernetes cost optimization starts with correct resource allocation for application containers that Kubernetes orchestrates.</p>
<p>Each container can have requests and limits defined for either memory or cpu or both. </p>
<ul>
<li>Understanding the Pod QoS Model https://services.google.com/fh/files/misc/state_of_kubernetes_cost_optimization.pdf</li>
<li>PodDisruptionBudget and application disruption</li>
</ul>
<div id="mkdocs_search_modal" class="w3-modal">
Expand Down
3 changes: 3 additions & 0 deletions golden-signals/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@
<a class="w3-bar-item w3-padding-16 w3-button w3-hover-theme w3-theme-l2" href="./">
The Golden Signals of Kubernetes Cost Optimization
</a>
<a class="w3-bar-item w3-padding-16 w3-button w3-hover-theme w3-theme-l4" href="../resources/">
The Economics of Kubernetes Resource Allocation
</a>
<a class="w3-bar-item w3-padding-16 w3-button w3-hover-theme w3-theme-l4" href="../over-under-idle-waste/">
The 4 Focus Areas of Kubernetes Cost Optimization
</a>
Expand Down
6 changes: 5 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@
<a class="w3-bar-item w3-padding-16 w3-button w3-hover-theme w3-theme-l4" href="golden-signals/">
The Golden Signals of Kubernetes Cost Optimization
</a>
<a class="w3-bar-item w3-padding-16 w3-button w3-hover-theme w3-theme-l4" href="resources/">
The Economics of Kubernetes Resource Allocation
</a>
<a class="w3-bar-item w3-padding-16 w3-button w3-hover-theme w3-theme-l4" href="over-under-idle-waste/">
The 4 Focus Areas of Kubernetes Cost Optimization
</a>
Expand Down Expand Up @@ -162,6 +165,7 @@ <h3 id="welcome-to-the-kubernetes-cost-optimization-guide">Welcome to the Kubern
<p>Browse our guides:</p>
<ul>
<li><a href="./golden-signals">The Golden Signals of Kubernetes Cost Optimization</a></li>
<li><a href="./resources">The Economics of Kubernetes Resource Allocation</a></li>
<li><a href="./over-under-idle-waste">The 4 Areas of Kubernetes Cost Optimization</a></li>
<li><a href="./cost-perf-r9y">Balancing Cost with Performance and Reliability</a></li>
<li><a href="./rightsizing">Kubernetes Workload Rightsizing</a></li>
Expand Down Expand Up @@ -223,5 +227,5 @@ <h3 id="welcome-to-the-kubernetes-cost-optimization-guide">Welcome to the Kubern

<!--
MkDocs version : 1.5.3
Build Date UTC : 2024-04-16 16:23:52.663257+00:00
Build Date UTC : 2024-05-09 11:41:59.966175+00:00
-->
4 changes: 4 additions & 0 deletions over-under-idle-waste/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@
<a class="w3-bar-item w3-padding-16 w3-button w3-hover-theme w3-theme-l4" href="../golden-signals/">
The Golden Signals of Kubernetes Cost Optimization
</a>
<a class="w3-bar-item w3-padding-16 w3-button w3-hover-theme w3-theme-l4" href="../resources/">
The Economics of Kubernetes Resource Allocation
</a>
<a class="w3-bar-item w3-padding-16 w3-button w3-hover-theme w3-theme-l2" href="./">
The 4 Focus Areas of Kubernetes Cost Optimization
</a>
Expand Down Expand Up @@ -173,6 +176,7 @@ <h2 id="wasted-resources">Wasted Resources</h2>
In most unoptimizaed clusters we're observing up to 50% of waste, which translates to thousands of dollars or euros monthly.</p>
<p>This waste comes from over-provisioning the containers in our pods.
Read on to understand the reasons and perils of over-provsioning.</p>
<p><img alt="idle-wated" class="w3-image" src="../assets/idle.png"/></p>
<h2 id="idle-resources">Idle Resources</h2>
<p>Kubernetes comes with a promise of automatic bin packing. I.e - it is supposed to fit the largest possible amount of pods on every node in the cluster. But this is again dependent on engineers correctly defining 1) resource requests and 2) node sizes. Even with smart and well-tuned autoscaling tools like Karpenter this doesn't always work and we find ourselves with nodes that are more than half empty - with resources that were neither requested nor utilized. All these are <strong>idle resources</strong> and taking care of reducing them is an important focus area of Kubernetes Cost Optimization.</p>
<h2 id="overprovisioning">Overprovisioning</h2>
Expand Down
3 changes: 3 additions & 0 deletions pod-autoscaling/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@
<a class="w3-bar-item w3-padding-16 w3-button w3-hover-theme w3-theme-l4" href="../golden-signals/">
The Golden Signals of Kubernetes Cost Optimization
</a>
<a class="w3-bar-item w3-padding-16 w3-button w3-hover-theme w3-theme-l4" href="../resources/">
The Economics of Kubernetes Resource Allocation
</a>
<a class="w3-bar-item w3-padding-16 w3-button w3-hover-theme w3-theme-l4" href="../over-under-idle-waste/">
The 4 Focus Areas of Kubernetes Cost Optimization
</a>
Expand Down
Loading

0 comments on commit 9d225d3

Please sign in to comment.