GithubHelp home page GithubHelp logo

Comments (3)

maxsmythe avatar maxsmythe commented on August 24, 2024 1

I don't know if there are any hard numbers on this that I can give you, but:

  • A larger response will take more RAM
  • A larger response will add to latency

Gatekeeper sets no limits on response size. Users do have the ability to "tune" G8r by increasing the amount of RAM it can use or adding CPU power (though I think Rego is evaluated single-threaded, so that's only helpful up to scheduling an entire CPU core).

Gatekeeper's mutation webhooks have a default timeout of 1 second and its validating webhooks have a timeout of 3 seconds.

I'd probably try to set some "reasonable" limits by choosing a standard G8r footprint for a typical Ratify user, use a typical constraint, then do some load testing.

Figure out at what size you start seeing problems (pods OOMing, requests taking longer than 3 or 1 seconds, etc.) and see what that gets you. Once you have a "ballpark" size, I'd consider choosing a much smaller maximum size (1/2, 1/10, 1/100, depending on what is reasonable for particular use cases) just to give you some headroom for either complexity of policies growing in the future, or users operating on smaller footprints.

from gatekeeper.

maxsmythe avatar maxsmythe commented on August 24, 2024

You could also consider letting the user configure the limit sizes, so they can tune things to meet their needs (the above may still be useful for setting a default value)

from gatekeeper.

susanshi avatar susanshi commented on August 24, 2024

thanks for your comment @maxsmythe. That is all we will need for now, issue closed.

from gatekeeper.

Related Issues (20)

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.