Giter Site home page Giter Site logo

mweibel / cluster-overprovisioner Goto Github PK

View Code? Open in Web Editor NEW

This project forked from codecentric/cluster-overprovisioner

0.0 1.0 0.0 75 KB

Helm chart, that enables scheduled scaling of a target resource, intended to be add overprovisioning to an autoscaling k8s cluster.

License: Apache License 2.0

Smarty 89.90% Dockerfile 10.10%

cluster-overprovisioner's Introduction

Overprovisioning Helm Chart

Helm Chart for overprovisioning an autoscaling Kubernetes Cluster, based on the Cluster Proportional Autoscaler and a deployment, that's acting as a "placeholder" for overprovisioning which is inspired by Cluster Overprovisioning Helm Chart from Delivery Hero.

It combines both components into a single solution, so that cluster-size aware and time-dependent overprovisioning can be achieved.

Note: To read more about our use-case, using this Helm-Chart to speed up your CI/CD jobs, take a look at our blog post.

Prerequisites

To use this Chart in your cluster, you need:

TL;DR

helm install codecentric/cluster-overprovisioner

Component I: Cluster Proportional Austoscaler

The Cluster Proportional Autoscaler is used to scale a target ressource based on the cluster size. It is able to consider number of schedulable nodes or number of available cores. It provides two different methods to calculate the desired replica count - ladder and linear. For further information and examples, please head over to the official Github repository.

Component II: Overprovisioning Deployment

To achieve the desired overprovisioning, a second component - called overprovisioner - can be installed with this Helm chart. It is a deployment based on pods with a pause image and a very low priority class and a configurable amount of ressources to be reserved. These pods will be evicted, as soon as a new Pod with a higher priority assigned will be scheduled. Per default, the chart installs a default PriorityClass and an overprovisioning PriorityClass, that is assigned to the Pods of the overprovisioning deployment. For more detailed information, on how the overprovisiong works and interacts with the Cluster Proportional Autoscaler, see here.

Note: The image of the pause pod can of cause be replaced with any other image desired. It is also possible, to use your resource and disable the default op-deployment.

How does overprovisioning work

To achieve overprovisioning, you need some sort of placeholder in your cluster, that requests a certain amount of ressources.

Additional Features / Improvements

In addition to the functionality introduced by the components above, this charts adds the possibility to use different overprovisioning configurations based on cron-schedules.

Scheduling

The time-based scheduling feature uses Cronjobs, to replace the active configuration of the Cluster Proportional Autoscaler. This allows reducing the amount of overprovisioning for times where load will be lower or startup times of pods are irrelevant, i.e. night times or weekends.

For examples on how to configure scheduling, see the examples folder, the comments in the values.yaml or the Chart-Readme.

Helm Chart configuration

Please refer to the Chart-Readme for information on how to configure and deploy this chart.

cluster-overprovisioner's People

Contributors

grieshaber avatar

Watchers

 avatar

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.