config

package
v0.0.0-...-b966b38 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GlobalObjectStats

type GlobalObjectStats struct {
	Object     json.Number `json:"object"`
	Clean      json.Number `json:"clean"`
	Misplaced  json.Number `json:"misplaced"`
	Degraded   json.Number `json:"degraded"`
	Incomplete json.Number `json:"incomplete"`
}

type GlobalOpStats

type GlobalOpStats struct {
	Bytes json.Number `json:"bytes,omitempty"`
	Count json.Number `json:"count,omitempty"`
	Usec  json.Number `json:"usec,omitempty"`
	Bps   json.Number `json:"bps,omitempty"`
	Iops  json.Number `json:"iops,omitempty"`
	Lat   json.Number `json:"lat,omitempty"`
}

type ImageStats

type ImageStats struct {
	Count json.Number `json:"count,omitempty"`
	Usec  json.Number `json:"usec,omitempty"`
	Bytes json.Number `json:"bytes,omitempty"`
	Bps   json.Number `json:"bps,omitempty"`
	Iops  json.Number `json:"iops,omitempty"`
	Lat   json.Number `json:"lat,omitempty"`
}

type OSDStats

type OSDStats struct {
	Bytes int `json:"bytes,omitempty"`
	Count int `json:"count,omitempty"`
	Usec  int `json:"usec,omitempty"`
}

type VitastorConfig

type VitastorConfig struct {
	VitastorEtcdUrls []string `json:"etcd_address"`
	VitastorPrefix   string   `json:"etcd_prefix"`
}

type VitastorImageStats

type VitastorImageStats struct {
	RawUsed     json.Number `json:"raw_used"`
	ReadStats   ImageStats  `json:"read"`
	WriteStats  ImageStats  `json:"write"`
	DeleteStats ImageStats  `json:"delete"`
}

type VitastorMonitor

type VitastorMonitor struct {
	Ip       []string `json:"ip"`
	Hostname string   `json:"hostname"`
	Id       string   `json:"id,omitempty"`
}

type VitastorOSDState

type VitastorOSDState struct {
	Addresses         []string `json:"addresses"`
	BlockstoreEnabled bool     `json:"blockstore_enabled"`
	Host              string   `json:"host"`
	Port              int      `json:"port"`
	PrimaryEnabled    bool     `json:"primary_enabled"`
	State             string   `json:"state"`
}

type VitastorOSDStats

type VitastorOSDStats struct {
	BitmapGranularity int                 `json:"bitmap_granularity"`
	BlockstoreReady   bool                `json:"blockstore_ready"`
	DataBlockSize     int                 `json:"data_block_size"`
	Host              string              `json:"host"`
	Free              int                 `json:"free"`
	Size              int                 `json:"size"`
	OpStats           map[string]OSDStats `json:"op_stats"`
	SubopStats        map[string]OSDStats `json:"subop_stats"`
	RecoveryStats     map[string]OSDStats `json:"recovery_stats"`
}

type VitastorPoolConfig

type VitastorPoolConfig struct {
	Name               string      `json:"name"`
	Scheme             string      `json:"scheme"`
	PGSize             int32       `json:"pg_size"`
	ParityChunks       int32       `json:"parity_chunks,omitempty"`
	PGMinSize          int32       `json:"pg_minsize"`
	PGCount            int32       `json:"pg_count"`
	FailureDomain      string      `json:"failure_domain,omitempty"`
	MaxOSDCombinations int32       `json:"max_osd_combinations,omitempty"`
	BlockSize          int32       `json:"block_size,omitempty"`
	ImmediateCommit    string      `json:"immediate_commit,omitempty"`
	OSDTags            interface{} `json:"osd_tags,omitempty"`
}

type VitastorPoolStats

type VitastorPoolStats struct {
	UsedRawTb       float64 `json:"used_raw_tb"`
	TotalRawTb      float64 `json:"total_raw_tb"`
	RawToUsable     float64 `json:"raw_to_usable"`
	SpaceEfficiency float64 `json:"space_efficiency"`
}

type VitastorStats

type VitastorStats struct {
	OpStats       map[string]GlobalOpStats `json:"op_stats"`
	SubopStats    map[string]GlobalOpStats `json:"subop_stats"`
	RecoveryStats map[string]GlobalOpStats `json:"recovery_stats"`
	ObjectCounts  GlobalObjectStats        `json:"object_counts"`
	ObjectBytes   GlobalObjectStats        `json:"object_bytes"`
}

Jump to

Keyboard shortcuts

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