config

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 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"
	LmdbPageSizeKey       = "lmdbPageSize"
	UseBcacheKey          = "useBCache"
	UseBcacheWBKey        = "useBCacheWB"
	UseMetadataMaskKey    = "useMetadataMask"
	UseMetadataOffloadKey = "useMetadataOffload"
	UseAllSSDKey          = "useAllSSD"
	RtrdPlevelOverrideKey = "rtrdPLevelOverride"
)

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"`
	// enable use of back cache
	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
	RtrdPLevelOverride int `json:"rtrdPLevelOverride,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