policerconfig

package
v0.43.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

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

func HeadTimeout(c *config.Config) time.Duration

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

func MaxWorkers(c *config.Config) uint32

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

func ObjectBatchSize(c *config.Config) uint32

ObjectBatchSize returns the value of "object_batch_size" config parameter from "policer" section.

Returns ObjectBatchSizeDefault if a value is not a positive number.

func ReplicationCooldown added in v0.39.0

func ReplicationCooldown(c *config.Config) time.Duration

ReplicationCooldown returns the value of "replication_cooldown" config parameter from "policer" section.

Returns ReplicationCooldownDefault if a value is not a positive duration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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