HostKit.Runtime.Resources (host_kit v0.1.0-beta.0)

Copy Markdown View Source

Reusable cgroup resource controls for systemd-backed runtimes.

Summary

Types

t()

@type t() :: %HostKit.Runtime.Resources{
  cpu_quota: String.t() | nil,
  cpu_weight: pos_integer() | nil,
  io_weight: pos_integer() | nil,
  memory_high: String.t() | non_neg_integer() | nil,
  memory_max: String.t() | non_neg_integer() | nil,
  tasks_max: non_neg_integer() | nil
}

Functions

new(profile)

@spec new(map() | keyword() | atom()) :: t()

profile(atom)

@spec profile(atom()) :: t()