Documentation ¶
Overview ¶
Package config for OSD config managed by the operator
Index ¶
Constants ¶
View Source
const ( StoreTypeKey = "storeType" WalSizeMBKey = "walSizeMB" DatabaseSizeMBKey = "databaseSizeMB" JournalSizeMBKey = "journalSizeMB" OSDsPerDeviceKey = "osdsPerDevice" EncryptedDeviceKey = "encryptedDevice" MetadataDeviceKey = "metadataDevice" DeviceClassKey = "deviceClass" )
View Source
const ( // Bluestore represents a bluestore OSD Bluestore = "bluestore" // WalDefaultSizeMB is the default WAL size in Megabytes for Rocksdb in Bluestore WalDefaultSizeMB = 576 )
View Source
const (
OSDFSStoreNameFmt = "rook-ceph-osd-%d-fs-backup"
)
Variables ¶
This section is empty.
Functions ¶
func GetConfigStoreName ¶
func MetadataDevice ¶
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 DriveGroupBlob ¶ added in v1.4.0
type DriveGroupBlob string
A DriveGroupBlob is a simple JSON blob defining a Ceph Drive Group. Drive Group blobs are passed to ceph-volume for node disk configuration.
type DriveGroupBlobs ¶ added in v1.4.0
DriveGroupBlobs is a mapping from Ceph Drive Group names to JSON blobs of Drive Group specs.
type StoreConfig ¶
type StoreConfig struct { StoreType string `json:"storeType,omitempty"` 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"` }
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.
Click to show internal directories.
Click to hide internal directories.