Skip to main content

ExportModel

During simulation, OpenDC exports data to files (see Output). The user can define what and how data is exported using the exportModels parameter in the experiment file.

ExportModel

VariableTypeRequired?DefaultDescription
exportIntervalInt64no300The duration between two exports in seconds
filesToExportInt64no24How often OpenDC prints an update during simulation.
computeExportConfigComputeExportConfignoDefaultThe features that should be exported during the simulation
filesToExportList[string]noall filesList of the files that should be exported during simulation. The elements should be picked from the set ("host", "task", "powerSource", "battery", "service")

ComputeExportConfig

The ComputeExportConfig defines which features should be exported during the simulation. Several features will always be exported, regardless of the configuration. When not provided, all features are exported.

VariableTypeRequired?BaseDefaultDescription
hostExportColumnsList[String]noname
cluster_name
timestamp
timestamp_absolute
All featuresThe features that should be exported to the host output file.
taskExportColumnsList[String]notask_id
task_name
timestamp
timestamp_absolute
All featuresThe features that should be exported to the task output file.
powerSourceExportColumnsList[String]noname
cluster_name
timestamp
timestamp_absolute
All featuresThe features that should be exported to the power source output file.
batteryExportColumnsList[String]noname
cluster_name
timestamp
timestamp_absolute
All featuresThe features that should be exported to the battery output file.
serviceExportColumnsList[String]notimestamp
timestamp_absolute
All featuresThe features that should be exported to the service output file.

Example

{
"exportInterval": 3600,
"printFrequency": 168,
"filesToExport": ["host", "task", "service"],
"computeExportConfig": {
"hostExportColumns": ["power_draw", "energy_usage", "cpu_usage", "cpu_utilization"],
"taskExportColumns": ["submission_time", "schedule_time", "finish_time", "task_state"],
"serviceExportColumns": ["tasks_total", "tasks_pending", "tasks_active", "tasks_completed", "tasks_terminated", "hosts_up"]
}
}

In this example:

  • the simulation will export data every hour (3600 seconds).
  • The simulation will print an update every 168 seconds.
  • Only the host, task and service files will be exported.
  • Only a selection of features are exported for each file.