policerconfig

package
v0.49.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2025 License: GPL-3.0 Imports: 1 Imported by: 0

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.

func (*Policer) Normalize added in v0.46.0

func (p *Policer) Normalize()

Normalize ensures that all fields of Policer have valid values. If some of fields are not set or have invalid values, they will be set to default values.

Jump to

Keyboard shortcuts

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