options

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTxnCacheSize   = 256 * common.M
	DefaultIndexCacheSize = 128 * common.M
	DefaultMTCacheSize    = 4 * common.G

	DefaultBlockMaxRows     = uint32(40000)
	DefaultBlocksPerSegment = uint16(40)

	DefaultScannerInterval    = int64(5000) // millisecond
	DefaultExecutionInterval  = int64(2000) // millisecond
	DefaultExecutionLevels    = int16(30)
	DefaultCatalogCkpInterval = int64(60000) // millisecond
	DefaultCatalogUnCkpLimit  = int64(10)

	DefaultIOWorkers    = int(8)
	DefaultAsyncWorkers = int(16)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheCfg

type CacheCfg struct {
	IndexCapacity  uint64 `toml:"index-cache-size"`
	InsertCapacity uint64 `toml:"insert-cache-size"`
	TxnCapacity    uint64 `toml:"txn-cache-size"`
}

type CheckpointCfg

type CheckpointCfg struct {
	ScannerInterval    int64 `toml:"scanner-inerterval"`
	ExecutionInterval  int64 `toml:"execution-inerterval"`
	ExecutionLevels    int16 `toml:"execution-levels"`
	CatalogUnCkpLimit  int64 `toml:"catalog-unckp-limit"`
	CatalogCkpInterval int64 `toml:"catalog-ckp-interval"`
}

type Options

type Options struct {
	CacheCfg      *CacheCfg      `toml:"cache-cfg"`
	StorageCfg    *StorageCfg    `toml:"storage-cfg"`
	CheckpointCfg *CheckpointCfg `toml:"checkpoint-cfg"`
	SchedulerCfg  *SchedulerCfg  `toml:"scheduler-cfg"`
	Catalog       *catalog.Catalog
}

func (*Options) FillDefaults

func (o *Options) FillDefaults(dirname string) *Options

type SchedulerCfg

type SchedulerCfg struct {
	IOWorkers    int `toml:"io-workers"`
	AsyncWorkers int `toml:"async-workers"`
}

type StorageCfg

type StorageCfg struct {
	BlockMaxRows     uint32 `toml:"block-max-rows"`
	SegmentMaxBlocks uint16 `toml:"segment-max-blocks"`
}

Jump to

Keyboard shortcuts

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