config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package config for Edgefs target config managed by the operator

Index

Constants

View Source
const (
	RtVerifyChidKey       = "rtVerifyChid"
	MaxSizeGB             = "maxSizeGB"
	MDReserved            = "mdReserved"
	HDDReadAhead          = "hddReadAhead"
	LmdbPageSizeKey       = "lmdbPageSize"
	UseBcacheKey          = "useBCache"
	UseBcacheWBKey        = "useBCacheWB"
	UseMetadataMaskKey    = "useMetadataMask"
	UseMetadataOffloadKey = "useMetadataOffload"
	UseAllSSDKey          = "useAllSSD"
	RtPlevelOverrideKey   = "rtPLevelOverride"
	SyncKey               = "sync"
	ZoneKey               = "zone"
)

Variables

This section is empty.

Functions

func GetConfigStoreName

func GetConfigStoreName(nodeName string) string

Types

type StoreConfig

type StoreConfig struct {
	// 0 (disabled), 1 (verify on write) or 2(verify on read/write)
	RtVerifyChid int `json:"rtVerifyChid,omitempty"`
	// 4096, 8192, 16384 or 32768
	LmdbPageSize int `json:"lmdbPageSize,omitempty"`
	// in 10..99% of potential SSD partition
	MDReserved int `json:"mdReserved,omitempty"`
	// applies to data chunks on HDD partitions, in KBs
	HDDReadAhead int `json:"hddReadAhead,omitempty"`
	// rtlfs only, max size to use per directory, in bytes
	MaxSize uint64 `json:"maxsize,omitempty"`
	// enable use of bcache
	UseBCache bool `json:"useBCache,omitempty"`
	// enable write back cache
	UseBCacheWB bool `json:"useBCacheWB,omitempty"`
	// what guts needs to go to SSD and what not
	UseMetadataMask string `json:"useMetadataMask,omitempty"`
	// when useAllSSD is false, enable metadata offload on SSD
	UseMetadataOffload bool `json:"useMetadataOffload,omitempty"`
	// only look for SSD/NVMe
	UseAllSSD bool `json:"useAllSSD,omitempty"`
	// if > 0, override automatic partitioning numbering logic
	RtPLevelOverride int `json:"rtPLevelOverride,omitempty"`
	// sync cluster option [0:3]
	Sync int `json:"sync"`
	// apply edgefs cluster zones id to whole cluster or node if zone value > 0
	Zone int `json:"zone,omitempty"`
}

func DefaultStoreConfig

func DefaultStoreConfig() StoreConfig

func ToStoreConfig

func ToStoreConfig(config map[string]string) StoreConfig

Jump to

Keyboard shortcuts

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