Documentation
¶
Index ¶
Constants ¶
View Source
const ( // HeadTimeoutDefault is the default object.Head request timeout in policer. HeadTimeoutDefault = 5 * time.Second // ReplicationCooldownDefault is the default cooldown time b/w replication tasks // submitting. ReplicationCooldownDefault = 1 * time.Second // ObjectBatchSizeDefault is the default replication's objects batch size. ObjectBatchSizeDefault = 10 // MaxWorkersDefault is the default replication's worker pool's maximum size. MaxWorkersDefault = 20 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Policer ¶ added in v0.46.0
type Policer struct {
HeadTimeout time.Duration `mapstructure:"head_timeout"`
ReplicationCooldown time.Duration `mapstructure:"replication_cooldown"`
ObjectBatchSize uint32 `mapstructure:"object_batch_size"`
MaxWorkers uint32 `mapstructure:"max_workers"`
}
Policer contains configuration for the replication policer.
Click to show internal directories.
Click to hide internal directories.