daemon

package
v0.0.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StartContainerDuration  = 15 * time.Second
	ResourceMonitorDuration = 5 * time.Second
)
View Source
const (
	AvailabilityCheckSleepDuration = 5 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IControlPlane

type IControlPlane interface {
	Start()
	GracefullyShutdown()
	CheckTheDistributedTask()
}

func ProvideControlPlaneDaemon

func ProvideControlPlaneDaemon(
	workerNodePool pool.WorkerNode,
	controlPlaneService handlerservice.IControlPlane,
	taskService service.Task,
	jobService service.Job,
	cpTaskWatcher service.CPTaskWatcher,
	config config.ControlPlaneConfigModel,
) (IControlPlane, func())

type WorkerNode

type WorkerNode interface {
	Start()
}

func ProvideWorkerNodeDaemon

func ProvideWorkerNodeDaemon(
	dockerClient *client.Client,
	workerService handlerservice.IWorker,
	resourceMonitor service.IResourceMonitor,
	dynamicScaling service.IDynamicScaling,
	containerTakeDownLogic workerlogic.ContainerTakeDown,
	containerService service.IContainer,
) WorkerNode

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL