Documentation ¶
Index ¶
Constants ¶
View Source
const ( // HeadTimeoutDefault is a default object.Head request timeout in policer. HeadTimeoutDefault = 5 * time.Second // ReplicationCooldownDefault is a default cooldown time b/w replication tasks // submitting. ReplicationCooldownDefault = 1 * time.Second // ObjectBatchSizeDefault is a default replication's objects batch size. ObjectBatchSizeDefault = 10 // MaxWorkersDefault is a default replication's worker pool's maximum size. MaxWorkersDefault = 20 )
Variables ¶
This section is empty.
Functions ¶
func HeadTimeout ¶
HeadTimeout returns the value of "head_timeout" config parameter from "policer" section.
Returns HeadTimeoutDefault if the value is not positive duration.
func MaxWorkers ¶ added in v0.39.0
MaxWorkers returns the value of "max_workers" config parameter from "policer" section.
Returns MaxWorkersDefault if a value is not a positive number.
func ObjectBatchSize ¶ added in v0.39.0
ObjectBatchSize returns the value of "object_batch_size" config parameter from "policer" section.
Returns ObjectBatchSizeDefault if a value is not a positive number.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.