Considerations for large clusters (2024)

A cluster is a set of nodes (physicalor virtual machines) running Kubernetes agents, managed by thecontrol plane.Kubernetes v1.31 supports clusters with up to 5,000 nodes. More specifically,Kubernetes is designed to accommodate configurations that meet all of the following criteria:

  • No more than 110 pods per node
  • No more than 5,000 nodes
  • No more than 150,000 total pods
  • No more than 300,000 total containers

You can scale your cluster by adding or removing nodes. The way you do this dependson how your cluster is deployed.

Cloud provider resource quotas

To avoid running into cloud provider quota issues, when creating a cluster with many nodes,consider:

  • Requesting a quota increase for cloud resources such as:
    • Computer instances
    • CPUs
    • Storage volumes
    • In-use IP addresses
    • Packet filtering rule sets
    • Number of load balancers
    • Network subnets
    • Log streams
  • Gating the cluster scaling actions to bring up new nodes in batches, with a pausebetween batches, because some cloud providers rate limit the creation of new instances.

Control plane components

For a large cluster, you need a control plane with sufficient compute and otherresources.

Typically you would run one or two control plane instances per failure zone,scaling those instances vertically first and then scaling horizontally after reachingthe point of falling returns to (vertical) scale.

You should run at least one instance per failure zone to provide fault-tolerance. Kubernetesnodes do not automatically steer traffic towards control-plane endpoints that are in thesame failure zone; however, your cloud provider might have its own mechanisms to do this.

For example, using a managed load balancer, you configure the load balancer to send trafficthat originates from the kubelet and Pods in failure zone A, and direct that traffic onlyto the control plane hosts that are also in zone A. If a single control-plane host orendpoint failure zone A goes offline, that means that all the control-plane traffic fornodes in zone A is now being sent between zones. Running multiple control plane hosts ineach zone makes that outcome less likely.

etcd storage

To improve performance of large clusters, you can store Event objects in a separatededicated etcd instance.

When creating a cluster, you can (using custom tooling):

  • start and configure additional etcd instance
  • configure the API server to use it for storing events

See Operating etcd clusters for Kubernetes andSet up a High Availability etcd cluster with kubeadmfor details on configuring and managing etcd for a large cluster.

Addon resources

Kubernetes resource limitshelp to minimize the impact of memory leaks and other ways that pods and containers canimpact on other components. These resource limits apply toaddon resources just as they apply to application workloads.

For example, you can set CPU and memory limits for a logging component:

 ... containers: - name: fluentd-cloud-logging image: fluent/fluentd-kubernetes-daemonset:v1 resources: limits: cpu: 100m memory: 200Mi

Addons' default limits are typically based on data collected from experience runningeach addon on small or medium Kubernetes clusters. When running on largeclusters, addons often consume more of some resources than their default limits.If a large cluster is deployed without adjusting these values, the addon(s)may continuously get killed because they keep hitting the memory limit.Alternatively, the addon may run but with poor performance due to CPU timeslice restrictions.

To avoid running into cluster addon resource issues, when creating a cluster withmany nodes, consider the following:

  • Some addons scale vertically - there is one replica of the addon for the clusteror serving a whole failure zone. For these addons, increase requests and limitsas you scale out your cluster.
  • Many addons scale horizontally - you add capacity by running more pods - but witha very large cluster you may also need to raise CPU or memory limits slightly.The Vertical Pod Autoscaler can run in recommender mode to provide suggestedfigures for requests and limits.
  • Some addons run as one copy per node, controlled by a DaemonSet: for example, a node-level log aggregator. Similar tothe case with horizontally-scaled addons, you may also need to raise CPU or memorylimits slightly.

What's next

  • VerticalPodAutoscaler is a custom resource that you can deploy into your clusterto help you manage resource requests and limits for pods.
    Learn more about Vertical Pod Autoscalerand how you can use it to scale clustercomponents, including cluster-critical addons.

  • Read about cluster autoscaling

  • The addon resizerhelps you in resizing the addons automatically as your cluster's scale changes.

Feedback

Was this page helpful?

Thanks for the feedback. If you have a specific, answerable question about how to use Kubernetes, ask it onStack Overflow.Open an issue in the GitHub Repository if you want toreport a problemorsuggest an improvement.

Last modified June 27, 2024 at 8:31 AM PST: Update cluster-large.md (27ac207f0f)

Considerations for large clusters (2024)
Top Articles
Bible Gateway Deuteronomy 8 :: NIV
Why data-driven companies chose Snowflake's cloud-built data warehouse
Automated refuse, recycling for most residences; schedule announced | Lehigh Valley Press
Lengua With A Tilde Crossword
Places 5 Hours Away From Me
Craigslist Benton Harbor Michigan
What's New on Hulu in October 2023
State Of Illinois Comptroller Salary Database
Red Heeler Dog Breed Info, Pictures, Facts, Puppy Price & FAQs
Taylor Swift Seating Chart Nashville
Huge Boobs Images
iOS 18 Hadir, Tapi Mana Fitur AI Apple?
boohoo group plc Stock (BOO) - Quote London S.E.- MarketScreener
Mals Crazy Crab
Yakimacraigslist
The best TV and film to watch this week - A Very Royal Scandal to Tulsa King
Carson Municipal Code
No Hard Feelings - Stream: Jetzt Film online anschauen
Strange World Showtimes Near Roxy Stadium 14
Craigslist Southern Oregon Coast
Costco Great Oaks Gas Price
Gayla Glenn Harris County Texas Update
Project, Time & Expense Tracking Software for Business
Gina Wilson All Things Algebra Unit 2 Homework 8
U Of Arizona Phonebook
Shreveport City Warrants Lookup
Cookie Clicker Advanced Method Unblocked
When Does Subway Open And Close
Obituaries Milwaukee Journal Sentinel
Kirsten Hatfield Crime Junkie
Dmv In Anoka
Watson 853 White Oval
Wolfwalkers 123Movies
Uncovering the Enigmatic Trish Stratus: From Net Worth to Personal Life
Japanese Emoticons Stars
Emuaid Max First Aid Ointment 2 Ounce Fake Review Analysis
Courtney Roberson Rob Dyrdek
Chadrad Swap Shop
2487872771
Back to the Future Part III | Rotten Tomatoes
Arcadia Lesson Plan | Day 4: Crossword Puzzle | GradeSaver
Section 212 at MetLife Stadium
Callie Gullickson Eye Patches
Sdn Fertitta 2024
3 Zodiac Signs Whose Wishes Come True After The Pisces Moon On September 16
bot .com Project by super soph
Bellelement.com Review: Real Store or A Scam? Read This
The Quiet Girl Showtimes Near Landmark Plaza Frontenac
Call2Recycle Sites At The Home Depot
Game Akin To Bingo Nyt
Craigslist Cars And Trucks For Sale By Owner Indianapolis
Latest Posts
Article information

Author: Sen. Ignacio Ratke

Last Updated:

Views: 6015

Rating: 4.6 / 5 (76 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Sen. Ignacio Ratke

Birthday: 1999-05-27

Address: Apt. 171 8116 Bailey Via, Roberthaven, GA 58289

Phone: +2585395768220

Job: Lead Liaison

Hobby: Lockpicking, LARPing, Lego building, Lapidary, Macrame, Book restoration, Bodybuilding

Introduction: My name is Sen. Ignacio Ratke, I am a adventurous, zealous, outstanding, agreeable, precious, excited, gifted person who loves writing and wants to share my knowledge and understanding with you.