Giter Site home page Giter Site logo

garethahealy / quota-limits-generator Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 49 KB

[DEAD] A tool to generate YAML files for OCP quotas and limits based of pre-defined inputs

License: Apache License 2.0

Shell 1.91% Java 98.09%
openshift quota limits

quota-limits-generator's Introduction

Build Status Release Version License

quota-limits-generator

A tool to generate YAML files for OCP quotas and limits based of pre-defined inputs.


From Source

Build

mvn clean install

Run

java -jar target/quota-limits-generator-parent-*-jar-with-dependencies.jar \
    --instance-type-csv file:$(PWD)/data/instancetypes.csv --quality-of-service besteffort --instance-type small \
    --node-worker-count 2 --is-team-namespace true --request-ratio 3 \
    --output ${PWD}/output

From Release

Run

    curl -L http://central.maven.org/maven2/com/garethahealy/quota-limits-generator/quota-limits-generator-parent/1.0.1/quota-limits-generator-parent-1.0.1-jar-with-dependencies.jar -o quota-limits-generator.jar
java -jar quota-limits-generator.jar \
    --instance-type-csv file:$(PWD)/data/instancetypes.csv --quality-of-service besteffort --instance-type small \
    --node-worker-count 2 --is-team-namespace true --request-ratio 3 \
    --output ${PWD}/output

Options explained

Path to instance type CSV

--instance-type-csv file:$(PWD)/data/instancetypes.csv 

Quality of service required for the project

  • besteffort = no requests or limits required to be set.
  • burstable = forces the developer to use requests and limits
--quality-of-service besteffort

How much CPU and memory to use

--instance-type small

Number of nodes in the cluster

--node-worker-count 2 

Whether the limits/quotas apply to a group of OCP projects (true) or just a single project (false)

--is-team-namespace true

How much the limit can be above the request, i.e.:

  • request = 10mb
  • limit = 30mb MAX

In the above example, if you requested a limit of 31mb, the pod would fail.

--request-ratio 3

Output to where the YAML files will be created

--output ${PWD}/output

quota-limits-generator's People

Contributors

garethahealy avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

quota-limits-generator's Issues

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.