Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ShardPoolSizeDefault is a default value of routine pool size per-shard to // process object PUT operations in a 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 of "shard" subsection of "storage" section of c, wrap them into shardconfig.Config and passes to f.
Section names are expected to be consecutive integer numbers, starting from 0.
Panics if N is not a positive number while shards are required.
func ShardErrorThreshold ¶ added in v0.28.0
ShardErrorThreshold returns the value of "shard_ro_error_threshold" config parameter from "storage" section.
Returns 0 if the the value is missing.
func ShardPoolSize ¶ added in v0.26.0
ShardPoolSize returns the value of "shard_pool_size" config parameter from "storage" section.
Returns ShardPoolSizeDefault if the value is not a positive number.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.