struct RailsApp::Entrypoints::Resources::Limits

Included Modules

Defined in:

rails_app_operator.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

def self.new(pull : JSON::PullParser) #

def self.new(*, cpu : Nil | String = nil, memory : Nil | String = nil) #

[View source]

Instance Method Detail

def cpu : String | Nil #

The number of CPU cores or fractions of a core.

Examples:

  • "1" # 1 CPU core
  • "500m" # 500 millicores, half of a CPU core

def memory : String | Nil #

The amount of bytes of memory expressed as a string using IEC prefixes.

Examples:

  • 100Mi # 100 Mibibytes
  • 2Gi # 2 Gibibytes

I can't believe I just wrote those words. They're absolutely ridiculous. But whatever, they're more accurate in this case.