RailsApp::Entrypoints::Resources::Limits
Inherits YAML::Serializable / JSON::Serializable / Kubernetes::Serializable / Struct / Value / Object
Constructors
new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
new(pull : JSON::PullParser)
new(*, __pull_for_json_serializable pull : JSON::PullParser)
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
new(*, cpu : Nil | String = nil, memory : Nil | String = nil)
SourceInstance methods
cpu
The number of CPU cores or fractions of a core.
Examples:
- "1" # 1 CPU core
- "500m" # 500 millicores, half of a CPU core
memory
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.