engineconfig

package
v0.28.1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ShardPoolSizeDefault is a default value of routine pool size per-shard to
	// process object PUT operations in storage engine.
	ShardPoolSizeDefault = 20
)

Variables

This section is empty.

Functions

func IterateShards

func IterateShards(c *config.Config, required bool, f func(*shardconfig.Config))

IterateShards iterates over subsections ["0":"N") (N - "shard_num" value) of "shard" subsection of "storage" section of c, wrap them into shardconfig.Config and passes to f.

Panics if N is not a positive number while shards are required.

func ShardErrorThreshold added in v0.28.0

func ShardErrorThreshold(c *config.Config) uint32

ShardErrorThreshold returns value of "shard_ro_error_threshold" config parameter from "storage" section.

Returns 0 if the value is missing.

func ShardPoolSize added in v0.26.0

func ShardPoolSize(c *config.Config) uint32

ShardPoolSize returns value of "shard_pool_size" config parameter from "storage" section.

Returns ShardPoolSizeDefault if value is not a positive number.

Types

This section is empty.

Directories

Path Synopsis
gc

Jump to

Keyboard shortcuts

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