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.
Click to show internal directories.
Click to hide internal directories.