Giter Club home page Giter Club logo

clusterautoscaler's Introduction

ClusterAutoscaler

Implementation of Kubernetes Cluster Autoscaler in Golang

Command to execute the project

go run main.go -path=pass_kubeConfig_file_path -promIP=Prometheus-Server_IP_with_port

What is Cluster Autoscaler?

The cluster autoscaler is a Kubernetes tool that increases or decreases the size of a Kubernetes cluster (by adding or removing nodes), based on the presence of pending pods and node utilization metrics.

When Cluster Autoscaler scales up?

Cluster Autoscaler scales up when it sees pending pods which are unscheduled as the resources requested by them can't be allocated because of lack of resources OR there are no amount of resource left of a particular type such as Memory, CPU time, Process IDs, etc. so it scales up the number of nodes and the pending pods gets scheduled on the newly created nodes with the help of scheduler.

When Cluster Autoscaler scales down?

When the cluster autoscaler sees that certain nodes are underutilized (i.e resources such as CPU, Memory is being utilized lesser than the specified minimum threshold for them), the CA does the pre-removal checks on them. These pre-removal checks involve making sure that the node that has being selected to be removed does not contain pods which have their local storage attached or the pods have PDB (Pod Disruption Budget) defined for them, etc. If the selected nodess pass these pre-removal checks then they are taken down.

Architecture Diagram

1. k8s Cluster Architecture

image

2. Upscaling Decision Making Process

image

3. Downscaling Decision Making Process

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.