summaryrefslogtreecommitdiff
path: root/opendc-compute/opendc-compute-simulator/src
diff options
context:
space:
mode:
authorDante Niewenhuis <d.niewenhuis@hotmail.com>2024-09-10 12:15:05 +0200
committerGitHub <noreply@github.com>2024-09-10 12:15:05 +0200
commitad8051faa1f0a6e7f78384e9e0607e847848c033 (patch)
treedd12f1f942e2eeb270d2a6f971e27f56308699b7 /opendc-compute/opendc-compute-simulator/src
parent3f05c61faeb94a2f1c920d87a6ca8bde34d551e0 (diff)
rewritten the checkpointing model (#250)
* Updated the checkpointing system to use SimTrace. The checkpoint model can now also scale, which means the interval between checkpoints can increase or decrease over time. * spotless kotlin * Fixed tests * spotless apply
Diffstat (limited to 'opendc-compute/opendc-compute-simulator/src')
-rw-r--r--opendc-compute/opendc-compute-simulator/src/main/kotlin/org/opendc/compute/simulator/internal/DefaultWorkloadMapper.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/opendc-compute/opendc-compute-simulator/src/main/kotlin/org/opendc/compute/simulator/internal/DefaultWorkloadMapper.kt b/opendc-compute/opendc-compute-simulator/src/main/kotlin/org/opendc/compute/simulator/internal/DefaultWorkloadMapper.kt
index 24c382dd..ea8f51d0 100644
--- a/opendc-compute/opendc-compute-simulator/src/main/kotlin/org/opendc/compute/simulator/internal/DefaultWorkloadMapper.kt
+++ b/opendc-compute/opendc-compute-simulator/src/main/kotlin/org/opendc/compute/simulator/internal/DefaultWorkloadMapper.kt
@@ -38,6 +38,7 @@ internal object DefaultWorkloadMapper : SimWorkloadMapper {
override fun createWorkload(task: Task): SimWorkload {
val workload = delegate.createWorkload(task)
+
// FIXME: look at connecting this to frontend. Probably not needed since the duration is so small
val bootWorkload = SimWorkloads.runtime(Duration.ofMillis(1), 0.8, 0L, 0L)
return SimWorkloads.chain(bootWorkload, workload)