masterserver

package
v0.0.0-...-a3a5c94 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: MIT Imports: 9 Imported by: 0

README

Main node service function description

  • Working model

  • The master node can have multiple working points. In principle, the instance of the cloud help management node works as the master node model.

  • The work task of the master node is based on ETCD to achieve uniqueness. For example, processing the execution record of a task is completed by only one Master instance.

  • Job creation

  • When the Task starts to schedule execution, a Job object is created and executed based on the ETCD notification to the execution node.

  • Process job execution results

  • Installation task result processing, serial group installation tasks, global configuration, etc.

  • Detect task result processing, trigger the next task execution according to the strategy, or user alarm.

  • Handle group task execution.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MasterServer

type MasterServer struct {
	*store.Client
	*client.HostNode
	Cluster *node.Cluster
	// contains filtered or unexported fields
}

MasterServer

func NewMasterServer

func NewMasterServer(modelnode *client.HostNode, kubecli kubecache.KubeClient) (*MasterServer, error)

NewMasterServer

func (*MasterServer) GetRegistry

func (m *MasterServer) GetRegistry() *prometheus.Registry

GetRegistry

func (*MasterServer) Start

func (m *MasterServer) Start(errchan chan error) error

Start master node

func (*MasterServer) Stop

func (m *MasterServer) Stop(i interface{})

Stop

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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