config

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2020 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"
	LmdbMdPageSizeKey      = "lmdbMdPageSize"
	UseBcacheKey           = "useBCache"
	UseBcacheWBKey         = "useBCacheWB"
	UseMetadataMaskKey     = "useMetadataMask"
	UseMetadataOffloadKey  = "useMetadataOffload"
	UseAllSSDKey           = "useAllSSD"
	RtPlevelOverrideKey    = "rtPLevelOverride"
	SyncKey                = "sync"
	ZoneKey                = "zone"
	UseRtkvsBackendKey     = "useRtkvsBackend"
	WalModeKey             = "walMode"
	PayloadS3URLKey        = "payloadS3URL"
	PayloadS3RegionKey     = "payloadS3Region"
	PayloadS3MinKbKey      = "payloadS3MinKb"
	PayloadS3CapacityKey   = "payloadS3CapacityGB"
	PayloadS3SecretKey     = "payloadS3Secret"
	PayloadS3SyncGetMaxKey = "payloadS3SyncGetMax"
)

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"`
	// 4096, 8192, 16384 or 32768
	LmdbMdPageSize int `json:"lmdbMdPageSize,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/rtkvs only, max size to use per directory (journal in rtkvs), 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"`
	// Use RTKVS IO engine with specified backend name
	UseRtkvsBackend string `json:"useRtkvsBackend,omitempty"`
	// Write-ahead-log mode
	WalMode int `json:"walMode,omitempty"`
	// S3 payload bucket's URL
	PayloadS3URL string `json:"payloadS3URL,omitempty"`
	// S3 pyaload bucket's region
	PayloadS3Region string `json:"payloadS3Region,omitempty"`
	// Minimal payload size to be stored in a S3 bucket
	PayloadS3MinKb int `json:"payloadS3MinKb,omitempty"`
	// Capacity of the S3 paylod bucket
	PayloadS3Capacity int `json:"payloadS3Capacity,omitempty"`
	// k8s secret name to be used as a S3 secret file
	PayloadS3Secret string `json:"payloadS3Secret,omitempty"`
	// Maximum number of simultaneous S3 GET requests per node
	PayloadS3SyncGetMax int `json:"payloadS3SyncGetMax,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