Kalc - the Kubernetes Calculator core
kalc, the Kubernetes calculator
kalc is application aware Kubernetes rebalancing tool built on pure AI planning.
- Linux x86_64
- Python 3.7+
- 6+ GB RAM, decent CPU
- Up to 20GB of disk space in
/tmpfor generated models
kubectlinstalled and connected to cluster
pip install kalc
If your Linux host has other versions of Python installed you will recieve an error regarding "Could not find a version that satisfies the requirement kalc (from versions: )No matching distribution found for kalc"... If you recieve this, type the following to install kalc
python3.7 -m pip install kalc
kalc-optimize will generate
bash scripts containing
kubectl commands to get to more optimal states. Have a look at those scripts and execute any one of them, then stop and re-run
kalc can optimize your cluster in background, gradually increasing reliability by rebalancing and reducing cost by freeing nodes with low utilization. You can run
kalc-optimize as a cron job, wait for X minutes and then run the most recent generated script file.
kalc-optimizewill download current cluster state by executing
kubectl get alland will start generating
bashscripts into current folder
- Each generated
bashscript contains a sequence of
kubectlcommands to get the cluster in a more optimal state: better balanced nodes for availability and OOM/eviction resilience and a more compact packing
kalccontinues to compute, it will emit more optimal states and bigger bash scripts with kubectl commands
kalc aims to take into account current policies, anti-affility, SLO levels and best practices from successful production Kubernetes clusters.
kalc is a developer preview and currently supports a subset of Kubernetes resources and behaviour model.
We invite you to follow @criticalhop on Twitter and to chat with the team at
#kalc on freenode. If you have any questions or suggestions - feel free to open a github issue or contact email@example.com directly.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size kalc-0.1.5-py3-none-any.whl (61.0 kB)||File type Wheel||Python version py3||Upload date||Hashes View hashes|
|Filename, size kalc-0.1.5.tar.gz (48.2 kB)||File type Source||Python version None||Upload date||Hashes View hashes|