Skip to content
Skip to Content

size_budget

Key of the [outputs] table. Qualified name: outputs.size_budget

Journal size budget in bytes; a larger pre-run estimate gives a warning and the run goes on. No default: without it no estimate is made.

Type
integer
Unit
none
Default
no defaultexample: 1000000000
Valid range
1 to 2^63 - 1whole numbers
Set in
[outputs]optional table
Since
0.1engine 0.1.0

Description

size_budget is optional and has no default: when it is absent, the engine does without it. The value is an integer from 1 to 2^63 - 1; outside that range the engine stops with E1013.

Example

scenario.toml
# scenario.toml

[scenario]
name = "tracer"
seed = 20180101

[time]
start = 2018-01-01
end = 2019-01-01

[outputs]
size_budget = 1000000000  # this page

[plugins."test/ticker"]

Run it with the engine built from source: cohortix run scenario.toml --output output/example.

When the key is misspelled

Written szie_budget, the key is refused before anything runs with the nearest accepted name:

cohortix run scenario.toml
error[E1022]: Unknown key `szie_budget` in [outputs]; did you mean `size_budget`?
  --> scenario.toml:12:1
  = fix: Rename `szie_budget` to `size_budget`, or remove it; the accepted keys of [outputs] are "persistence", "events", "size_budget".

Errors that name this key

  • E1008: size_budget must be …, but it is ….
  • E1013: size_budget is …, outside the allowed range … to ….
  • E1022: Unknown key … in [outputs]; did you mean …?

See also

  • [outputs]What the run writes to its output folder.
  • persistenceJournal persistence
  • eventsEvent types the journal keeps when persistence is "subset", as canonical names such as "c

Generated from crates/cohortix-kernel/src/scenario/config.rs. Do not edit. This page (key outputs.size_budget) is built from the engine sources at every documentation build. To change it, edit its ConfigKey in kernel_groups() and its one-line comment config.key.outputs.size_budget in schemas/messages/en.toml and open a pull request.

On this page

You are reading the docs for 0.1. Keys can change between versions: use the version that matches cohortix --version.