Documentation ¶
Overview ¶
Package localresources ensures locally executed tasks have enough resources to run.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TotalRAMMBs ¶
func TotalRAMMBs() int64
TotalRAMMBs returns the amount of system memory in MegaBytes.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager is the manager of local resources.
func NewDefaultManager ¶
func NewDefaultManager() *Manager
NewDefaultManager retrieves a Manager with default local resources.
func NewFractionalDefaultManager ¶
NewFractionalDefaultManager retrieves a Manager with the given fraction of default local resources.
func NewManager ¶
NewManager is used to initialize the manager with non default local resources.
Click to show internal directories.
Click to hide internal directories.