storage

package
v0.41.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ShardCfg

type ShardCfg struct {
	Compress                  bool
	SmallSizeObjectLimit      uint64
	UncompressableContentType []string
	RefillMetabase            bool
	Mode                      shardmode.Mode

	MetaCfg struct {
		Path          string
		Perm          fs.FileMode
		MaxBatchSize  int
		MaxBatchDelay time.Duration
	}

	SubStorages []SubStorageCfg

	GcCfg struct {
		RemoverBatchSize     int
		RemoverSleepInterval time.Duration
	}

	WritecacheCfg struct {
		Enabled          bool
		Path             string
		MaxBatchSize     int
		MaxBatchDelay    time.Duration
		SmallObjectSize  uint64
		MaxObjSize       uint64
		FlushWorkerCount int
		SizeLimit        uint64
		NoSync           bool
	}

	PiloramaCfg struct {
		Enabled       bool
		Path          string
		Perm          fs.FileMode
		NoSync        bool
		MaxBatchSize  int
		MaxBatchDelay time.Duration
	}
}

func (*ShardCfg) ID

func (c *ShardCfg) ID() string

ID returns persistent id of a shard. It is different from the ID used in runtime and is primarily used to identify shards in the configuration.

type SubStorageCfg

type SubStorageCfg struct {
	// common for all storages
	Typ  string
	Path string
	Perm fs.FileMode

	// tree-specific (FS)
	Depth  uint64
	NoSync bool

	// Peapod-specific
	FlushInterval time.Duration
}

Jump to

Keyboard shortcuts

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