shardconfig

package
v0.46.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const SmallSizeLimitDefault = 1 << 20

SmallSizeLimitDefault is the default limit of small objects payload in bytes.

Variables

This section is empty.

Functions

This section is empty.

Types

type ShardDetails added in v0.46.0

type ShardDetails struct {
	Mode                           mode.Mode `mapstructure:"mode"`
	ResyncMetabase                 *bool     `mapstructure:"resync_metabase"`
	Compress                       *bool     `mapstructure:"compress"`
	CompressionExcludeContentTypes []string  `mapstructure:"compression_exclude_content_types"`

	WriteCache writecacheconfig.WriteCache `mapstructure:"writecache"`
	Metabase   metabaseconfig.Metabase     `mapstructure:"metabase"`
	Blobstor   blobstorconfig.Blobstor     `mapstructure:"blobstor"`
	GC         gcconfig.GC                 `mapstructure:"gc"`
}

ShardDetails contains configuration for a single shard of a storage node.

func (*ShardDetails) ID added in v0.46.0

func (c *ShardDetails) ID() string

ID returns persistent id of a shard. It is different from the ID used in runtime and is primarily used to identify shards in the configuration.

func (*ShardDetails) Normalize added in v0.46.0

func (s *ShardDetails) Normalize(def ShardDetails)

Normalize ensures that all fields of ShardDetails have valid values. If some of fields are not set or have invalid values, they will be set to default values.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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