config

package
v1.7.8 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: Apache-2.0 Imports: 1 Imported by: 43

Documentation

Overview

Package config for OSD config managed by the operator

Index

Constants

View Source
const (
	WalSizeMBKey       = "walSizeMB"
	DatabaseSizeMBKey  = "databaseSizeMB"
	JournalSizeMBKey   = "journalSizeMB"
	OSDsPerDeviceKey   = "osdsPerDevice"
	EncryptedDeviceKey = "encryptedDevice"
	MetadataDeviceKey  = "metadataDevice"
	DeviceClassKey     = "deviceClass"
	InitialWeightKey   = "initialWeight"
	PrimaryAffinityKey = "primaryAffinity"
)
View Source
const (
	// Bluestore represents a bluestore OSD
	Bluestore = "bluestore"
	// WalDefaultSizeMB is the default WAL size in Megabytes for Rocksdb in Bluestore
	WalDefaultSizeMB = 576
)

Variables

This section is empty.

Functions

func MetadataDevice

func MetadataDevice(config map[string]string) string

Types

type ConfiguredDevice added in v1.4.0

type ConfiguredDevice struct {
	ID          string      `json:"id"`
	StoreConfig StoreConfig `json:"storeConfig"`
}

ConfiguredDevice is a device with a corresponding configuration.

type StoreConfig

type StoreConfig struct {
	WalSizeMB       int    `json:"walSizeMB,omitempty"`
	DatabaseSizeMB  int    `json:"databaseSizeMB,omitempty"`
	OSDsPerDevice   int    `json:"osdsPerDevice,omitempty"`
	EncryptedDevice bool   `json:"encryptedDevice,omitempty"`
	MetadataDevice  string `json:"metadataDevice,omitempty"`
	DeviceClass     string `json:"deviceClass,omitempty"`
	InitialWeight   string `json:"initialWeight,omitempty"`
	PrimaryAffinity string `json:"primaryAffinity,omitempty"`
}

StoreConfig represents the configuration of an OSD on a device.

func NewStoreConfig added in v1.4.0

func NewStoreConfig() StoreConfig

NewStoreConfig returns a StoreConfig with proper defaults set.

func ToStoreConfig

func ToStoreConfig(config map[string]string) StoreConfig

ToStoreConfig converts a config string-string map to a StoreConfig.

Jump to

Keyboard shortcuts

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