Fantom-foundation / Norma

Integration project of Carmen and Tosca
GNU Lesser General Public License v3.0
2 stars 9 forks source link

[Feature] Support for Event Export #247

Closed rpl-ffl closed 4 weeks ago

rpl-ffl commented 1 month ago

Norma configuration now support the following features:

  1. node.mount to bind the provided local directory to the node's data directory datadir. This means datadir is also persisted after the node has been removed.

Additionally tmp is a hardcoded shorthand to have the output directory, /tmp/norma_data_<label>_<timestamp>.

Usage:

node:
  - name: example
    mount: /absolute/local/path     # example's datadir will be binded to /absolute/local/path/example-0
  - name: example-tmp
    mount: tmp                      # tmp is a short hand for output directory /tmp/norma_data_####/example-tmp-0
  1. node.export.path will execute event export function and export events thus far to the provided path.
    node:
    - name: example
    mount: tmp                    # mount required, since we need to access node's datadir
    event:
      export: events.gz           # exported as /tmp/norma_data_####/example-0_events.gz
matejmode commented 4 weeks ago

Could you please add example scenario?

rpl-ffl commented 4 weeks ago

Could you please add example scenario?

Do you mean scenarios/export_events_5m.yml?