Documentation ¶
Index ¶
Constants ¶
const ( // RemoverBatchSizeDefault is a default batch size for Shard GC's remover. RemoverBatchSizeDefault = 100 // RemoverSleepIntervalDefault is a default sleep interval of Shard GC's remover. RemoverSleepIntervalDefault = time.Minute // ExpiredCollectorWorkersCountDefault is a default workers count of Shard GC expired object collector. ExpiredCollectorWorkersCountDefault = 5 // ExpiredCollectorBatchSizeDefault is a default batch size of Shard GC expired object collector. ExpiredCollectorBatchSizeDefault = 500 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config is a wrapper over the config section which provides access to Shard's GC configurations.
func (*Config) ExpiredCollectorBatchSize ¶
ExpiredCollectorBatchSize returns the value of "expired_collector_batch_size" config parameter.
Returns ExpiredCollectorBatchSizeDefault if the value is not a positive number.
func (*Config) ExpiredCollectorWorkerCount ¶ added in v0.38.0
ExpiredCollectorWorkerCount returns the value of "expired_collector_worker_count" config parameter.
Returns ExpiredCollectorWorkersCountDefault if the value is not a positive number.
func (*Config) RemoverBatchSize ¶
RemoverBatchSize returns the value of "remover_batch_size" config parameter.
Returns RemoverBatchSizeDefault if the value is not a positive number.
func (*Config) RemoverSleepInterval ¶
RemoverSleepInterval returns the value of "remover_sleep_interval" config parameter.
Returns RemoverSleepIntervalDefault if the value is not a positive number.