options

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	DefaultIndexCacheSize = 256 * mpool.MB

	DefaultBlockMaxRows     = uint32(8192)
	DefaultBlocksPerSegment = uint16(256)

	DefaultObejctPerSegment = uint16(512)

	DefaultScannerInterval              = time.Second * 5
	DefaultCheckpointFlushInterval      = time.Minute
	DefaultCheckpointMinCount           = int64(100)
	DefaultCheckpointIncremetalInterval = time.Minute
	DefaultCheckpointGlobalMinCount     = 10
	DefaultGlobalVersionInterval        = time.Hour
	DefaultGCCheckpointInterval         = time.Minute

	DefaultScanGCInterval = time.Minute * 30
	DefaultGCTTL          = time.Hour

	DefaultCatalogGCInterval = time.Minute * 30

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

	DefaultLogtailTxnPageSize = 100

	DefaultLogstoreType = LogstoreBatchStore
)

Variables

This section is empty.

Functions

func WithCatalogGCInterval added in v0.7.0

func WithCatalogGCInterval(internal time.Duration) func(*Options)

func WithCheckpointGlobalMinCount added in v0.7.0

func WithCheckpointGlobalMinCount(count int64) func(*Options)

func WithCheckpointIncrementaInterval added in v0.6.0

func WithCheckpointIncrementaInterval(interval time.Duration) func(*Options)

func WithCheckpointMinCount added in v0.6.0

func WithCheckpointMinCount(count int64) func(*Options)

func WithCheckpointScanInterval added in v0.6.0

func WithCheckpointScanInterval(interval time.Duration) func(*Options)

func WithDisableGCCatalog added in v0.7.0

func WithDisableGCCatalog() func(*Options)

func WithDisableGCCheckpoint added in v0.7.0

func WithDisableGCCheckpoint() func(*Options)

func WithFlushInterval added in v0.7.0

func WithFlushInterval(interval time.Duration) func(*Options)

func WithGCCheckpointInterval added in v0.7.0

func WithGCCheckpointInterval(interval time.Duration) func(*Options)

func WithGlobalVersionInterval added in v0.7.0

func WithGlobalVersionInterval(interval time.Duration) func(*Options)

func WithTransferTableTTL added in v0.6.0

func WithTransferTableTTL(ttl time.Duration) func(*Options)

Types

type CacheCfg

type CacheCfg struct {
	IndexCapacity uint64 `toml:"index-cache-size"`
}

type CatalogCfg added in v0.7.0

type CatalogCfg struct {
	GCInterval time.Duration
	DisableGC  bool
}

type CheckpointCfg

type CheckpointCfg struct {
	FlushInterval             time.Duration `toml:"flush-inerterval"`
	MinCount                  int64         `toml:"checkpoint-min-count"`
	ScanInterval              time.Duration `toml:"scan-interval"`
	IncrementalInterval       time.Duration `toml:"checkpoint-incremental-interval"`
	GlobalMinCount            int64         `toml:"checkpoint-global-interval"`
	ForceUpdateGlobalInterval bool
	GlobalVersionInterval     time.Duration
	GCCheckpointInterval      time.Duration
	DisableGCCheckpoint       bool
}

type GCCfg added in v0.7.0

type GCCfg struct {
	GCTTL          time.Duration
	ScanGCInterval time.Duration
}

type LogstoreType added in v0.6.0

type LogstoreType string
const (
	LogstoreBatchStore LogstoreType = "batchstore"
	LogstoreLogservice LogstoreType = "logservice"
)

type LogtailCfg added in v0.6.0

type LogtailCfg struct {
	PageSize int32 `toml:"page-size"`
}

type LogtailServerCfg added in v0.7.0

type LogtailServerCfg struct {
	RpcMaxMessageSize        int64
	RpcPayloadCopyBufferSize int64
	RpcEnableChecksum        bool
	LogtailCollectInterval   time.Duration
	ResponseSendTimeout      time.Duration
	MaxLogtailFetchFailure   int
}

func NewDefaultLogtailServerCfg added in v0.7.0

func NewDefaultLogtailServerCfg() *LogtailServerCfg

func (*LogtailServerCfg) Validate added in v0.7.0

func (l *LogtailServerCfg) Validate()

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"`
	GCCfg         *GCCfg
	LogtailCfg    *LogtailCfg
	CatalogCfg    *CatalogCfg

	TransferTableTTL time.Duration

	IncrementalDedup bool

	Clock     clock.Clock
	Fs        fileservice.FileService
	Lc        logservicedriver.LogServiceClientFactory
	Shard     metadata.DNShard
	LogStoreT LogstoreType
	Ctx       context.Context
	// MaxMessageSize is the size of max message which is sent to log-service.
	MaxMessageSize uint64
}

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