config

package
v1.10.6 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RuntimeConfig

type RuntimeConfig struct {
	SegmentSize uint64

	MaxJobsAhead               uint64 // limit execution of depencency jobs so they don't go too far ahead of the modules that depend on them (ex: module X is 2 million blocks ahead of module Y that depends on it, we don't want to schedule more module X jobs until Y caught up a little bit)
	DefaultParallelSubrequests uint64 // how many sub-jobs to launch for a given user
	// derives substores `states/`, for `store` modules snapshots (full and partial)
	// and `outputs/` for execution output of both `map` and `store` module kinds
	BaseObjectStore        dstore.Store
	DefaultCacheTag        string // appended to BaseObjectStore unless overriden by auth layer
	WorkerFactory          work.WorkerFactory
	ClientFactory          client.InternalClientFactory
	ModuleExecutionTracing bool
}

RuntimeConfig is a global configuration for the service. It is passed down and should not be modified unless cloned.

func NewTier1RuntimeConfig added in v1.5.0

func NewTier1RuntimeConfig(
	segmentSize uint64,
	parallelSubrequests uint64,
	maxJobsAhead uint64,
	baseObjectStore dstore.Store,
	defaultCacheTag string,
	workerFactory work.WorkerFactory,
	clientFactory client.InternalClientFactory,
) RuntimeConfig

Jump to

Keyboard shortcuts

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