Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RuntimeConfig ¶
type RuntimeConfig struct { StateBundleSize uint64 MaxWasmFuel uint64 // if not 0, enable fuel consumption monitoring to stop runaway wasm module processing forever 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 ModuleExecutionTracing bool MaxConcurrentRequests int64 }
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( stateBundleSize uint64, parallelSubrequests uint64, maxJobsAhead uint64, maxWasmFuel uint64, baseObjectStore dstore.Store, defaultCacheTag string, workerFactory work.WorkerFactory, ) RuntimeConfig
func NewTier2RuntimeConfig ¶ added in v1.5.0
func NewTier2RuntimeConfig() RuntimeConfig
Click to show internal directories.
Click to hide internal directories.