Documentation
¶
Overview ¶
Package balloon provides an automatic libvirt memory balloon daemon.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Balloon ¶
type Balloon struct { Logger zerolog.Logger // Logger is the zerolog Logger. New creates a default, but feel free to override it. Interval time.Duration // Interval is the interval at which the daemon should refresh all domain balloons. DryRun bool // DryRun effectively pretends running actions like DomainSetMemory, but doesn't. FreeAllowance uint64 // FreeAllowance is the amount of memory, in kB, to allow the VM to have available. MemoryChunk uint64 // MemoryChunk is the chunk size of memory (in kB) to allocate or deallocate. This is a granularity slider. // contains filtered or unexported fields }
Balloon describes a hypervisor memory balloon interface.
func (Balloon) ProcessDomain ¶
func (balloon Balloon) ProcessDomain(dom libvirt.Domain)
ProcessDomain will process a domain's memory balloon and log to Balloon.Logger.
Click to show internal directories.
Click to hide internal directories.