Ferricstore.OperationalLimits (ferricstore v0.4.2)

Copy Markdown View Source

Capacity-derived operational budgets for a FerricStore node.

Defaults are ratios of the actual runtime environment: detected cgroup/host memory, the filesystem backing :data_dir, and scheduler count. Operators can override the detected ceilings in application config, but normal deployments should not need hand tuning when moving between instance sizes.

Summary

Types

level()

@type level() :: :ok | :warn | :pressure | :reject | :panic | :unknown

Functions

classify_ratio(ratio, arg2)

@spec classify_ratio(nil | number(), map()) :: level()

memory_limit_bytes(opts \\ [])

@spec memory_limit_bytes(keyword()) :: non_neg_integer()

snapshot(opts \\ [])

@spec snapshot(keyword()) :: map()