Hyper.Cfg.Budget (Hyper v0.1.0)

Copy Markdown View Source

This node's resource budget. Each field reads from config.exs (config :hyper, Hyper.Cfg.Budget, ..., typically set via the operator override file /etc/hyper/config.exs), then the [budget] table in /etc/hyper/config.toml, then its built-in default. Unit.* quantities may be given as Elixir terms in config.exs or as strings ("4GiB", "1GiBps") in TOML.

Summary

Types

t()

@type t() :: %Hyper.Cfg.Budget{
  cpu_max_cap: float() | nil,
  cpu_max_load: float(),
  disk_bw_cap: Unit.Bandwidth.t(),
  disk_bw_max_load: float(),
  disk_max: Unit.Information.t(),
  mem_max: Unit.Information.t(),
  net_bw_cap: Unit.Bandwidth.t(),
  net_bw_max_load: float()
}

Functions

get()

@spec get() :: t()

load()

@spec load() :: {:ok, t()} | {:error, term()}