agent

package
v0.0.0-...-3cc9250 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2017 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Package agent runs on servers with computing resources, and executes tasks sent by driver.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunAgentServer

func RunAgentServer(option *AgentServerOption)

Types

type AgentServer

type AgentServer struct {
	Option *AgentServerOption
	Master string
	// contains filtered or unexported fields
}

func (*AgentServer) Delete

Delete deletes a particular dataset shard

func (*AgentServer) Execute

func (as *AgentServer) Execute(request *pb.ExecutionRequest, stream pb.GleamAgent_ExecuteServer) error

Execute executes a request and stream stdout and stderr back

type AgentServerOption

type AgentServerOption struct {
	Master       *string
	Host         *string
	Port         *int32
	Dir          *string
	DataCenter   *string
	Rack         *string
	MaxExecutor  *int32
	MemoryMB     *int64
	CPULevel     *int32
	CleanRestart *bool
}

type LocalDatasetShardsManager

type LocalDatasetShardsManager struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewLocalDatasetShardsManager

func NewLocalDatasetShardsManager(dir string, port int) *LocalDatasetShardsManager

func (*LocalDatasetShardsManager) CreateNamedDatasetShard

func (m *LocalDatasetShardsManager) CreateNamedDatasetShard(name string) store.DataStore

func (*LocalDatasetShardsManager) DeleteNamedDatasetShard

func (m *LocalDatasetShardsManager) DeleteNamedDatasetShard(name string)

func (*LocalDatasetShardsManager) WaitForNamedDatasetShard

func (m *LocalDatasetShardsManager) WaitForNamedDatasetShard(name string) store.DataStore

type LocalDatasetShardsManagerInMemory

type LocalDatasetShardsManagerInMemory struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewLocalDatasetShardsManagerInMemory

func NewLocalDatasetShardsManagerInMemory() *LocalDatasetShardsManagerInMemory

func (*LocalDatasetShardsManagerInMemory) Cleanup

func (m *LocalDatasetShardsManagerInMemory) Cleanup(name string)

func (*LocalDatasetShardsManagerInMemory) CreateNamedDatasetShard

func (m *LocalDatasetShardsManagerInMemory) CreateNamedDatasetShard(name string, readerCount int) *trackedChannel

func (*LocalDatasetShardsManagerInMemory) WaitForNamedDatasetShard

func (m *LocalDatasetShardsManagerInMemory) WaitForNamedDatasetShard(name string) *util.Piper

Jump to

Keyboard shortcuts

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