惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

K
Kaspersky official blog
T
Threat Research - Cisco Blogs
N
News and Events Feed by Topic
Hacker News: Ask HN
Hacker News: Ask HN
Project Zero
Project Zero
Application and Cybersecurity Blog
Application and Cybersecurity Blog
博客园 - 叶小钗
Security Latest
Security Latest
Spread Privacy
Spread Privacy
aimingoo的专栏
aimingoo的专栏
N
News and Events Feed by Topic
Webroot Blog
Webroot Blog
U
Unit 42
Cyberwarzone
Cyberwarzone
小众软件
小众软件
Scott Helme
Scott Helme
Engineering at Meta
Engineering at Meta
Microsoft Security Blog
Microsoft Security Blog
T
The Blog of Author Tim Ferriss
A
About on SuperTechFans
爱范儿
爱范儿
S
Schneier on Security
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Schneier on Security
Schneier on Security
Latest news
Latest news
GbyAI
GbyAI
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Simon Willison's Weblog
Simon Willison's Weblog
The Register - Security
The Register - Security
WordPress大学
WordPress大学
博客园_首页
Blog — PlanetScale
Blog — PlanetScale
PCI Perspectives
PCI Perspectives
Jina AI
Jina AI
AI
AI
NISL@THU
NISL@THU
I
Intezer
G
GRAHAM CLULEY
B
Blog
S
Secure Thoughts
IT之家
IT之家
宝玉的分享
宝玉的分享
Recent Announcements
Recent Announcements
Y
Y Combinator Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
酷 壳 – CoolShell
酷 壳 – CoolShell
有赞技术团队
有赞技术团队
V2EX - 技术
V2EX - 技术
Recorded Future
Recorded Future
Hacker News - Newest:
Hacker News - Newest: "LLM"

Apptio

How IBM Apptio Delivers Data Center Value in the Age of AI - Apptio Managing K8s Agent Updates at Scale with Helm and Terraform - Apptio GitOps with IBM Kubecost: Preventing Argo CD Rollbacks - Apptio GitOps with IBM Kubecost: API-Driven Rightsizing - Apptio It’s Here: Meet the New IBM Apptio Report Studio – A Faster, More Intuitive Approach to Reporting - Apptio New Tech, Same Rules: Cloud Lessons for an AI Advantage - Apptio IBM Cloudability Advanced Containers for Kubernetes FinOps - Apptio The Next Era of IT Financial Management Reporting with the New IBM Apptio Report Studio - Apptio From Guesswork to Confidence: Introducing Intelligent Forecasting for Tech Spend Planning - Apptio Smarter Technology Spend with AI-Driven Financial Intelligence - Apptio Budgets Are Up, Confidence Isn't: 2026 Global Tech Investment Insights - Apptio IBM Kubecost 3.1: Kubernetes Resource Quota Rightsizing - Apptio Driving FinOps Forward in 2025 and Beyond - Apptio ITFM Maturity: The Next CIO Imperative in the Age of Innovation - Apptio How Banks Can Optimize IT Spend Without Sacrificing Impact - Apptio Introducing IBM Apptio Product TCO: Turn Product Spend into Strategic Investments with Clear, End-to-End Total Cost of Ownership and Unit Costs: Creating a Strategic Lens for IT Investment Decisions - Apptio Workforce Management: The Engine of Strategic Portfolio Management - Apptio FinOps for AI: Enabling the Next Wave of Cloud Innovation - Apptio IBM Kubecost 3.0: Faster, Smarter, and Built for Scale - Apptio Introducing IBM Apptio Mainframe TCO: Complete Visibility into Mainframe Costs and Usage - Apptio Essential K8s Cost Metrics for Reducing Spend - Apptio The New Standard for Strategic Portfolio Management: Financial Visibility at Every Level - Apptio K8s Cost Ownership: Who’s Responsible and How to Make It Work - Apptio Kubecost 2.8: Centralized Custom Pricing and a Big Performance Leap with ClickHouse - Apptio Unlock the Power of IT Financial Management with IBM Apptio Essentials - Apptio Full Transparency for Smart AI Investments with IBM Apptio’s AI Total Cost of Ownership & Usage - Apptio What’s New in IBM Apptio Planning - Apptio Labeling in Kubernetes: From Metadata to Money-Saving Insights - Apptio Innovative Approaches to Drive Tech Spend Management with AI, Analytics, and Automation - Apptio Discover Kubecost on Apptio’s Website: Enhancing FinOps with Kubernetes Insights - Apptio How Kubecost Collections Works: From the Engineers Who Built It - Apptio Kubecost 2.7 Release Highlights - Apptio Introducing Hybrid IT TCO Impact: IBM Apptio’s Newest Solution to Manage Your Evolving Hybrid Environment - Apptio FinOps Essentials: Best Practices for Finance Teams - Apptio Upgrading Your Kubecost Experience - Apptio Kubecost 2.6 Release Highlights - Apptio Kubernetes Efficiency: Cut Waste, Not Performance - Apptio FinOps Essentials: Best Practices for Product Teams - Apptio Optimizing GPU Monitoring for AI Efficiency - Apptio Kubecost 2.5 Release Highlights - Apptio FinOps Essentials: Strategies for Smarter Cloud Spending - Apptio Achieving Cost-Effective Scaling in Kubernetes - Apptio Celebrating OpenCost’s Journey to CNCF Incubation - Apptio Unlocking Technology Value: The Essential Role of TBM in Modern IT Management - Apptio The Complex Costs of AI: Investments, Funding, and ROI Tracking - Apptio Addressing Carbon Emissions in IT: The New Business Imperative - Apptio Kubecost Brings NVIDIA GPU cost monitoring for AI workloads in 2.4 - Apptio Kubecost Launches Support for Oracle Cloud - Apptio Kubecost 2.4 Release Highlights - Apptio Evolving Container Cost Visibility with IBM Cloudability - Apptio Transforming the Way You Manage Your Digital Portfolios: IBM Apptio and ServiceNow - Apptio Maximizing Kubernetes Cost Efficiency with Kubecost and Amazon EKS - Apptio FinOps Foundations: Strategies for Cross-Team Alignment - Apptio Managing Kubernetes Costs in a Multi-Cloud Environment - Apptio Unlock Kubernetes Savings with Kubecost’s Automated Actions - Apptio Celebrating a Milestone: Kubecost Surpasses 10 Million Installs - Apptio Kubernetes Pricing: On-Premises Versus Cloud Environments - Apptio Maximizing Multi-Cloud Efficiency with Kubecost APIs - Apptio Aligning Tech Financials and Labor Resources - Apptio Kubecost 2.3 Release Highlights - Apptio IBM Cloudability Introduces New Innovations for FinOps Practitioners - Apptio Kubecost Launches the First Kubecost Certification - Apptio Enhancing Cloud Reporting: Attributing Costs to Kubernetes Applications - Apptio Building a FinOps Solution for All - Apptio Navigating the Growing Complexities of Technology Spend Management - Apptio Apptio Introduces New Products to Elevate Technology Value - Apptio Developing a Strategy for Kubernetes Cost Monitoring - Apptio Visualize your Kubernetes Network Costs - Apptio Getting Highly Accurate and Granular Cost Metrics with Kubecost - Apptio 8 Steps to Achieve Enterprise Agile Planning Success - Apptio FinOps and TBM at Public Sector Summit - Apptio Introducing Kubecost Collections - Apptio Apptio & ServiceNow launch new Application Portfolio Management capabilities - Apptio Beyond the Hype: A Balanced View of AI Adoption - Apptio 2.1 Release Highlights - Apptio Starting your Technology Business Management Journey: A Guide for Smart Technology Investments with Apptio Cost Management - Apptio IBM Cloudability: 2023 Innovation in Review - Apptio Kubecost 2.0 Packaging - Apptio Kubernetes Readiness Probe: Tutorial & Examples - Apptio Kubernetes Health Check - How-To and Best Practices - Apptio Introducing Kubecost 2.0 - Apptio Kubernetes Liveness Probe: Tutorial & Examples - Apptio EKS Cost Monitoring: The Kubecost and AWS Solution - Apptio Kubernetes Deployment Strategies: Tutorial & Examples - Apptio Guide to Kubernetes Management Tools - Apptio Automate Your Rightsizing Workflows with IBM Cloudability and ServiceNow - Apptio Kyverno and Kubecost: Real-time Kubernetes Cost Management - Apptio Making Smarter IT Decisions With Apptio Plus ServiceNow Breaking Down Silos Between Finance and Agile Teams With Lean Budgeting - Apptio Maximize Cloud Savings Without Running Afoul of AWS RI Marketplace Enforcements - Apptio Cost-Effective Deployment Policies With Kyverno - Apptio Tracking Waste on Kubernetes Clusters - Apptio Blending FinOps With Observability - Apptio 3 Key Opportunities for Finance Teams in SAFe 6.0 - Apptio Kubecost Predict Part 2: Introducing the Admission Controller - Apptio The CEO as the Chief Transformation Officer - Apptio Client Challenge Client Challenge Client Challenge
Kubernetes Cluster Size: Your Guide to Optimization - Apptio
Mike Miller · 2024-01-29 · via Apptio

Introduction

One of the most impactful ways to reduce spend on Kubernetes infrastructure is to make sure your clusters are optimally sized for the workloads they run. It’s not always so obvious how to arrive at an optimally-sized cluster, even in autoscaling environments. Kubecost’s cluster right-sizing recommendations help users bridge this gap to newfound cost optimization. Users implementing this tool have realized savings in the range of 25-60%, even having a major impact in autoscaling environments. In this guide, we will cover the importance of right-sizing clusters and how Kubecost can help.

cluster savings

The Importance of Right-Sizing Kubernetes Clusters

Understanding the importance of right-sizing Kubernetes clusters is crucial in the complex landscape of Kubernetes. Oversized clusters lead to unnecessary expenses, as cluster resources are underutilized but still show up on your cloud bill. Conversely, undersized clusters can cause performance bottlenecks, leading to slow application performance and potential downtimes, which in turn can harm user experience and business operations. Right-sizing ensures that clusters are neither too large nor too small, but perfectly tailored to meet the specific needs of the applications they host. This balance is not just about cost optimization; it’s also about maximizing operational efficiency and ensuring reliability. By right-sizing Kubernetes clusters, organizations can achieve optimal resource management, maintain high performance, and avoid the pitfalls of over or under-provisioning, which are all key to a successful cloud-native strategy.

Kubecost’s Cluster Right-Sizing Recommendations

Managing Kubernetes clusters efficiently is a key concern for any organization looking to optimize costs and application performance. This is where Kubecost’s Cluster Right-Sizing Recommendations come in handy, offering a streamlined solution to ensure your clusters are configured in the most cost-effective manner possible.

Kubecost’s right-sizing tool is not just about providing recommendations; it’s about implementing them effectively. The tool distinguishes between two critical processes: viewing cluster recommendations and adopting them. This dual approach allows for a comprehensive understanding of your clusters’ needs before making any changes.

How it works

The tool generates context-aware cluster sizing recommendations after analyzing Kubernetes metrics on historical workloads and cloud billing data. As a user, you only need to provide the context of the cluster, i.e. whether it is being used for development, production, or high-availability workloads. We then recommend cluster configurations, which optimize for the respective balance of cost, simplicity, and performance/headroom. Because this solution is Kubernetes native, we consider the following when providing recommendations:

  • Analysis of historical pod/container resource consumption to predict future requirements
  • Consideration of both resource requests and usage
  • Ensuring largest workloads can be scheduled successfully
  • Accounting for DaemonSet/kube-system replication requirements for each node
  • Allocating headroom based on cluster context, e.g. dev, prod, high availability
  • Avoiding shared core machines for production/HA environments

Key features

Central to its functionality are two primary recommendation types: simple, which utilizes a single node type, and complex, employing multiple node types for greater optimization. These recommendations are presented alongside your current cluster setup, providing a clear comparative view of total cost, node count, and resource usage. Customization is a key aspect, with multiple dropdown menus allowing users to tailor the recommendations to their specific needs. Users can select individual clusters, define the time window for analyzing recent activity, and even view optimization inputs, like resource requirements determined by DaemonSets or the largest single Pod resource allocation. Importantly, Kubecost considers the unique requirements of different cluster contexts — whether it’s Production, Development, or High Availability — and offers recommendations accordingly. Additionally, the tool supports both x86 and ARM architectures, with current ARM support focused on AWS clusters. This combination of detailed, context-sensitive analysis and user-friendly customization makes Kubecost’s right-sizing feature an effective tool for efficient Kubernetes cluster management.

How to use

Kubecost’s Cluster Right-Sizing Recommendations tool is user-friendly and accessible, designed for quick and free installation via Helm or a flat manifest. Once Kubecost is set up, simply head to the ‘Savings’ section in the left navigation and select the ‘Right-size your cluster nodes’ panel to access the feature. Initially, the tool presents recommendations for a ‘development’ cluster context, but you have the flexibility to switch to other cluster types, such as ‘Production’ or ‘High Availability’, for more tailored advice. Users can also fine-tune their cluster right-sizing configurations by selecting specific clusters, adjusting the time window for recent activity analysis, and toggling optimization inputs to understand minimum node sizes based on cluster resources used by DaemonSets, the largest Pods, and other factors. For those looking to apply these recommendations, prerequisites include having a GKE/EKS/AWS Kops cluster and granting write access to Kubecost through the Cluster Controller. The adoption process is streamlined – select ‘Adopt recommendation’ and ‘Adopt’ to implement the suggested right-sizing, which typically takes about 10-30 minutes. Additionally, Kubecost offers a Continuous Cluster Right-Sizing option, accessible via the ‘Actions’ page, for ongoing optimization, making it a comprehensive tool for efficient cluster management.

Kubecost Savings

Note: no data is egressed from your cluster with this product and everything runs with your infrastructure.

Working Example

The following example presents two potential strategies in a Production cluster. There is a tradeoff between cost and complexity in this scenario. The simpler of the two configurations requires only two nodes, but the complex solution of four nodes offers an additional 3% savings per month by bin packing resources more efficiently than otherwise possible with only one node type. Advanced metrics are available directly in the UI to better understand the rationale for these recommendations.

cluster right-sizing recommendations

Our Approach to Cluster Sizing

To generate accurate recommendations, a potential cluster must be adequately-sized such that it is possible to schedule all workloads on the cluster. To assess this requirement, workloads scheduled as DaemonSets must appear on each node, making total resource allocation a function of node count. Furthermore, one large workload may not be able to fit on a fleet of small nodes, even if the aggregate amount of resources would appear adequate. We are able to use metrics generated by the core Kubecost allocation model (open source) to calculate nth-percentile total resource allocation over time, the percentage attributed to DaemonSets, and the largest single workload.

As a function of the cluster context, e.g. dev or production, we then analyze the shape of historical resource consumption and apply the appropriate headroom budget. Requirements for production clusters include a minimum of two nodes and a target resource utilization of 75%. Requirements for development clusters include a minimum of one node and a target resource utilization of 80%. Requirements for high-availability clusters include a minimum of three nodes and a target resource utilization of 65%.

Beyond these requirements, we apply a heuristic to manage the tradeoff between cost and complexity. For example, many teams would agree that, given the choice between saving 30% with a simple option and saving 31% with an utterly complex one, the simple option sounds more attractive. Therefore, we’ve chosen to start with two implementation strategies instead of one, hence the recommendations in the aforementioned examples.

The Limitations of Autoscaling in Cluster Sizing

You might be wondering why cluster sizing can not be solved by autoscaling. In the time we’ve spent helping teams of all kinds optimize their Kubernetes environments, we’ve found that cluster autoscaling, while useful, does not always resolve right-sizing concerns.

Autoscaling limitations

  • Lack of Node Type Diversity: Autoscaling often relies on a single node type, which can lead to inefficient resource management. In contrast, Kubecost’s right-sizing tool can recommend multiple node types (complex recommendation), leading to more efficient resource allocation and cost savings.
  • Over-Provisioning Risks: Autoscaling can result in over-provisioning, especially if the autoscaler’s node type doesn’t align well with the resource proportions of the workload. This can lead to increased costs without corresponding benefits in performance or reliability.
  • Delayed Response to Demand Fluctuations: Autoscaling reacts to changes in demand, which can sometimes lead to delays in scaling up or down. This delay might cause performance issues or unnecessary cost accrual during periods of low usage.
  • Limited Scope of Optimization: Autoscaling primarily focuses on responding to current demand, rather than analyzing historical data to predict and prepare for future needs. Kubecost’s tool, however, uses historical workload and cloud billing data for more comprehensive and forward-looking recommendations.
  • Does Not Address Cluster Context: Traditional autoscaling does not consider the specific context of the cluster (e.g., development, production, high availability), which can be crucial for ensuring the right balance between cost, performance, and reliability.

Consider that autoscaling, even when it is working, does not allow for the possibility of adding different node pools to a cluster. It’s still easy, therefore, to end up over-provisioning if the autoscaler’s single node type is inappropriate for the resource proportions of the given workload. Over-provisioning by an autoscaler can be a painful experience, whereas using the cluster sizing recommendation puts the control and information in your hands to right-size your cluster when the time is right, without fear of runaway costs due to a single resource spike, memory leak, or ill-fitting node type.

Beyond Cluster Sizing

Expanding beyond the cluster sizing, comprehensive Kubernetes cost management encompasses a wider spectrum of tools and strategies to optimize spending and efficiency in a Kubernetes environment. Kubecost offers a variety of tools designed to provide real-time visibility and control over Kubernetes spending, including:

  • Cost Allocation and Analysis: Break down costs by Kubernetes concepts like deployments, services, namespaces, and labels. This granular view enables teams to understand exactly where and how their resources are being spent, fostering more informed decision-making.
  • Showback and Chargeback: Allocate costs accurately across different teams or departments. This feature is key for enterprises looking to distribute Kubernetes costs fairly and transparently.
  • Resource Optimization Insights: Insights into resource optimization across the Kubernetes environment. We provide recommendations for reducing spend without sacrificing performance, to help organizations balance cost efficiency with operational effectiveness.
  • Budget Alerts and Governance: Prevent cost overruns by incorporating alerts. Alerts notify teams of spending anomalies or when budgets are nearing their limits, ensuring that costs remain within expected boundaries.
  • Multi-Cluster Visibility: For organizations operating multiple Kubernetes clusters, Kubecost offers a unified view of costs and usage across all clusters. This holistic perspective is vital for managing resources and costs at scale.
  • Custom Reporting: Customize reports enable organizations to tailor their cost and usage data reports to meet specific needs, whether for internal review or compliance purposes.

Conclusion

Kubecost’s Cluster Right-Sizing Recommendations represent a vital tool in the realm of Kubernetes cost management, offering a balanced approach to optimizing infrastructure expenditure and operational efficiency. This tool goes beyond mere cost-cutting, providing intelligent, context-aware recommendations tailored to various workload demands. It effectively addresses the limitations of traditional autoscaling by incorporating a comprehensive analysis of historical data and cluster-specific contexts. Alongside our right-sizing capabilities, we offer an extensive suite of features for Kubernetes cost management, including cost allocation, resource optimization insights, and budget alerts, creating an essential tool for teams looking to streamline their Kubernetes operations and elevate their FinOps strategy.

About us

Kubecost offers real-time visibility and monitoring of Kubernetes costs, playing a crucial role in efficient cloud infrastructure management. Kubecost can run on any Kubernetes environment, including Azure Kubernetes Service (AKS), Google Kubernetes Engine (GKE), Amazon Kubernetes Service (EKS), and on-prem. With capabilities like multi-cluster visibility and custom reporting, we are tailored to meet the diverse needs of complex enterprises, making us an effective tool for effective Kubernetes cost management and optimization. To learn more, reach out via email (team-kubecost@ibm.com), Slack, or visit our website.