stats

package
v0.3.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2020 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Overview

Package stats exposes internal data structures for Stat command

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DMap

type DMap struct {
	Name   string
	Length int

	// Statistics about memory representation of the dmap.
	SlabInfo SlabInfo
}

dmap denotes a distributed map instance on the cluster.

type Partition

type Partition struct {
	Owner          discovery.Member
	PreviousOwners []discovery.Member
	Backups        []discovery.Member
	Length         int
	DMaps          map[string]DMap
}

Partition denotes a partition and its metadata in the cluster.

type Runtime

type Runtime struct {
	GOOS         string
	GOARCH       string
	Version      string
	NumCPU       int
	NumGoroutine int
	MemStats     runtime.MemStats
}

Runtime exposes memory stats and various metrics from Go runtime.

type SlabInfo

type SlabInfo struct {
	// Total allocated space by the append-only log files.
	Allocated int

	// Total inuse memory space in the append-only log files.
	Inuse int

	// Total garbage(deleted key/value pairs) space in the append-only log files.
	Garbage int
}

SlabInfo denotes memory usage of the storage engine(a hash indexed append only log file).

type Stats

type Stats struct {
	Cmdline        []string
	ReleaseVersion string
	Runtime        Runtime
	Partitions     map[uint64]Partition
	Backups        map[uint64]Partition
}

Stats includes some metadata information about the cluster. The nodes add everything it knows about the cluster.

Jump to

Keyboard shortcuts

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