DaemonHost

abstract class DaemonHost

The internal representation of a DockerDaemon.

Inheritors

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion
Link copied to clipboard
abstract class TrackedRunner

Properties

Link copied to clipboard
abstract val cpuFree: Double

The current amount of unallocated CPU.

Link copied to clipboard
protected val cpuOvercommitRatio: Double
Link copied to clipboard
abstract val daemon: DockerDaemon

Encapsulated Docker daemon.

Link copied to clipboard

Mapping of all GPUs on the host system to its occupancy status.

Link copied to clipboard

Mapping of all GPUs on the host system to the allocated Runner.

Link copied to clipboard
protected val hostReservedCpu: Double
Link copied to clipboard
protected val hostReservedMem: Long
Link copied to clipboard

Whether this daemon is connected to the Docker Engine.

Link copied to clipboard

Whether this daemon can be used for dispatched.

Link copied to clipboard
abstract val isInitialized: Boolean

Whether this daemon is initialized.

Link copied to clipboard
abstract val isMainHost: Boolean

Whether to treat this daemon host as a main host, i.e. reserve more resources for the host OS and its services.

Link copied to clipboard

A List of all runners managed by this DaemonHost.

Link copied to clipboard
abstract val maxCpuAlloc: Double

The maximum amount of allocatable CPU by runners.

Link copied to clipboard
abstract val maxMemAlloc: Long

The maximum amount of allocatable memory by runners.

Link copied to clipboard
abstract val memFree: Long

The current amount of unallocated memory.

Link copied to clipboard
protected val memOvercommitRatio: Double
Link copied to clipboard

A List of all runners tracked by this DaemonHost, stored as instances of TrackedRunner.

Functions

Link copied to clipboard
abstract fun addRunnerInstance(runner: Runner)

Binds runner to this Docker daemon.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun getAllocatedGpu(runner: Runner): GpuDevice?
Link copied to clipboard
private fun getOutputFromContainer(cmd: String, timeout: Duration, containerConfig: CreateContainerCmd.() -> Unit = {}): String

Wrapper for getting the stdout output from a container using the given cmd.

Link copied to clipboard

Queries the list of GPUs present on this daemon host.

Link copied to clipboard
abstract fun removeRunnerInstance(runner: Runner)

Unbinds runner to this Docker daemon.

Link copied to clipboard
abstract fun updateEngineInfo()

Tries to update the information of the engine from the daemon.