limits

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package limits contains function to calculate pod create/deletion limits.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculatePodToCreateAndDelete

func CalculatePodToCreateAndDelete(params Parameters) (nbCreation, nbDeletion int)

CalculatePodToCreateAndDelete from the parameters return: * nbCreation: the number of pods to create * nbDeletion: the number of pods to delete.

Types

type Parameters

type Parameters struct {
	NbNodes             int
	NbPods              int
	NbAvailablesPod     int
	NbOldAvailablesPod  int
	NbCreatedPod        int
	NbUnresponsiveNodes int

	MaxPodCreation      int
	MaxUnavailablePod   int
	MaxUnschedulablePod int
}

Parameters use to provide the parameters to the Calculation function.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL