types

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: Apache-2.0, BSD-3-Clause, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EnvPort show server port
	EnvPort = "GINIT_PORT"
)

Variables

View Source
var (
	HadoopPath = "/hadoop-yarn"
	CgroupRoot = "/sys/fs/cgroup"

	// CgroupPath describe witch cgroup path to collect
	CgroupPath = []string{HadoopPath}

	CadvisorParameters = cadvisor.CadvisorParameter{
		MemCache:                memory.New(cadvisorCacheDuration, nil),
		SysFs:                   sysfs.NewRealSysFs(),
		IncludeMetrics:          cadvisorMetrics,
		MaxHousekeepingInterval: cadvisorMaxHousekeepingInterval,
	}
)

Functions

This section is empty.

Types

type RMApp

type RMApp struct {
	ID          string  `json:"id"`
	User        string  `json:"user"`
	Name        string  `json:"name"`
	Queue       string  `json:"queue"`
	State       string  `json:"state"`
	FinalStatus string  `json:"finalStatus"`
	Progress    float32 `json:"progress"`
	TrackingUI  string  `json:"trackingUI"`
	AmLogs      string  `json:"amContainerLogs"`
}

RMApp describe application options

type RMAppWrapper

type RMAppWrapper struct {
	App RMApp `json:"app"`
}

RMAppWrapper show the applications struct from nodemanager API

Jump to

Keyboard shortcuts

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