EngineTrackedDaemonHost

internal data class EngineTrackedDaemonHost(val daemon: DockerDaemon, val isMainHost: Boolean) : DaemonHost

Constructors

Link copied to clipboard
constructor(daemon: DockerDaemon, isMainHost: Boolean)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class TrackedRunner(val runner: Runner, val allocTime: Instant) : DaemonHost.TrackedRunner

Properties

Link copied to clipboard
private var _gpuDevices: Option<MutableSet<GpuDevice>>
Link copied to clipboard
Link copied to clipboard
open override val cpuFree: Double

The current amount of unallocated CPU.

Link copied to clipboard
protected val cpuOvercommitRatio: Double
Link copied to clipboard
open override val daemon: DockerDaemon

Encapsulated Docker daemon.

Link copied to clipboard
private val engineInfo: Info
Link copied to clipboard
open override val gpuAllocation: Map<GpuDevice, Boolean>

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

Link copied to clipboard
open override val gpuCapabilities: Map<GpuDevice, Runner?>

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
open override val isInitialized: Boolean

Whether this daemon is initialized.

Link copied to clipboard
open override 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
open override val maxCpuAlloc: Double

The maximum amount of allocatable CPU by runners.

Link copied to clipboard
open override val maxMemAlloc: Long

The maximum amount of allocatable memory by runners.

Link copied to clipboard
open override val memFree: Long

The current amount of unallocated memory.

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

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

Functions

Link copied to clipboard
open override 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
Link copied to clipboard
open override 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
open override fun removeRunnerInstance(runner: Runner)

Unbinds runner to this Docker daemon.

Link copied to clipboard
open override fun updateEngineInfo()

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