summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-02-14Get first two parts of docs up to date and remove odcsim docGeorgios Andreadis
2020-02-14Create guidelines for documentation sectionsGeorgios Andreadis
2020-02-14Adapt documentation outline and READMEGeorgios Andreadis
2020-02-14Merge branch 'feat/cpu-sharing' into 'feat/2.x'Georgios Andreadis
Add basis for VM modeling and fractional space-sharing See merge request opendc/opendc-simulator!23
2020-02-14bug: Apply requested cpu time correctlyFabian Mastenbroek
This change fixes an issue where the runtime of an image that requested cpu time was not properly computed.
2020-02-14style: Fix Ktlint issuesFabian Mastenbroek
2020-02-14refactor: Move experiments from TPDS module to SC18 moduleFabian Mastenbroek
These experiments were originally designed for the SC18 paper.
2020-02-14refactor: Rename FakeBareMetalDriver to SimpleBareMetalDriverFabian Mastenbroek
2020-02-14refactor: Rename Flavor to ServerFlavorFabian Mastenbroek
This change renames Flavor to ServerFlavor to be more indicative of its function. The Flavor name follows the naming of the OpenStack project.
2020-02-14bug: Remove actor terminology in source codeFabian Mastenbroek
2020-02-14refactor: Integrate opendc-compute in existing modelFabian Mastenbroek
This change refactors the existing model to use the new interfaces from the opendc-compute module.
2020-02-14feat: Implement basic provisioner serviceFabian Mastenbroek
2020-02-14refactor: Remodel workloads and compute resourceFabian Mastenbroek
This change remodels our model for workloads and compute resources in order to support VM/container functionality where multiple workloads run on a single machine. In particular, we make the following changes: - Move the compute-related source code into the `opendc-compute` module. - Change from application-based model to image-based model, where the image has exclusive access over the machine, instead of applications that share the machine. We may model in the future again applications/operating system, but at the moment, we do not need this granularity, given that the workload traces can be simulated using VMs.
2020-02-14feat: Make ProcessContext a coroutine scopeFabian Mastenbroek
This change makes the ProcessContext implement the CoroutineScope in order to launch local coroutines bound to the lifecycle of the logical process.
2020-02-11feat: Add support for process-tied loggingFabian Mastenbroek
This change adds a log property to the ProcessContext which allows the user to access a Logger instance that is tied to a particular logical process.
2020-02-11Merge branch 'feat/2.x-model' into 'feat/2.x'Georgios Andreadis
Reimplement OpenDC model using 2.x API See merge request opendc/opendc-simulator!21
2020-02-11Update Zone.ktGeorgios Andreadis
Add missing dots
2020-02-11docs: Elaborate on unique ids of eventsFabian Mastenbroek
2020-02-11Update Environment.ktGeorgios Andreadis
Add missing dot
2020-02-11refactor: Reimplement OpenDC model using 2.x APIFabian Mastenbroek
2020-02-11feat: Add helper methods for req-res patternFabian Mastenbroek
This change adds helper methods for simplifying the request-response pattern commonly used in models.
2020-02-11bug: Guarantee FIFO order of messages in the queueFabian Mastenbroek
This change fixes the issue where messages are not delivered in FIFO order due to the internal priority not guaranteeing insertion order. For now, we fix this issue by adding a unique increasing identifier to each event in the queue.
2020-02-11Merge branch 'chore/gitlab-ci' into 'feat/2.x'Georgios Andreadis
Add support for Gitlab CI See merge request opendc/opendc-simulator!22
2020-02-11chore: Add support for Gitlab CIFabian Mastenbroek
This change adds the configuration of Gitlab CI in order to test on our internal Gitlab instance.
2020-01-19feat: Add support for selecting on receive portsFabian Mastenbroek
This change adds experimental support for selecting on ports. This allows the user to receive messages from multiple channels at the same time.
2020-01-19feat: Add prototype reference implementation of revised APIFabian Mastenbroek
This change adds a prototype implementation of the revised version of the API of version 2.0 of the simulator.
2020-01-19refactor: Introduce revised API design for 2.xFabian Mastenbroek
This change introduces the revised API design for version 2.0 of the OpenDC simulator. This version drops built-in support for Java and instead opts to build on Kotlin coroutines to simplify the API surface. During development of and experimentation with the previous API for version 2.x, we found that the design based on Akka Typed was too limiting and caused too much boilerplate for the models we needed to implement. Essential patterns such as request-response were found to be hard to implement with only a single mailbox. Moveover, limiting each actor's mailbox to a single type hindered composition and often resulted in unchecked casts or the type being changed to `Any`, eliminating the type-safety of the API. In this revised API design, a simulation is now represented as the interplay of logical processes that communicate via multiple message passing channels. We use Kotlin coroutines to describe the behavior of the processes. The API has been design from the start to take into account distributed/parallel simulations by disallowing messages from arbitrary processes, which was possible in the previous design. Instead, the 'communication graph' is known during runtime as procsses must register themselves before being able to send/receive messages to/from channels. We are still figuring out process/channel identity and supervision. Currently, all logical processes run on a single level, instead of being hierachical. However, this might change in the future.
2019-11-29refactor: Rename odcsim-core to odcsim-apiFabian Mastenbroek
This change renames the main module of the odcsim library to odcsim-api, since it mainly contains the interfaces to be used by consumers of the API and implemented by the various frameworks.
2019-11-29chore: Update to Kotlin 1.3.61Fabian Mastenbroek
2019-11-29style: Fix Ktlint errorsFabian Mastenbroek
2019-11-21docs: Move odcsim docs to separate directoryFabian Mastenbroek
2019-11-21chore: Add .gitattributes for Gradle wrapperFabian Mastenbroek
This change ensures that the batch file for invoking the Gradle wrapper is treated as a file with Windows line endings.
2019-11-20chore: Tidy repositoryFabian Mastenbroek
2019-11-20refactor: Move build logic to buildSrcFabian Mastenbroek
2019-05-15docs: Rewrite README for 2.x releaseFabian Mastenbroek
This change gives an overhaul to the README for the release of version 2.x of the simulator.
2019-05-15feat: Add initial version of OpenDC simulation modelFabian Mastenbroek
This change adds the initial version of the port of the OpenDC simulation model to version 2.x of the simulator. The simulation model has been reworked to support immutability and event-driven simulation, with speed-ups up to 75x.
2019-05-15feat: Add unsafe helper method for casting ActorContextFabian Mastenbroek
This change adds a helper method for ActorContext to unsafely cast it to an ActorContext of different type.
2019-05-14bug: Replace initial behavior after starting coroutineFabian Mastenbroek
This change fixes the bug where suspending immediately after launching the coroutine, without replacing the current behavior causes a failure in the BehaviorInterpreter. This is because the initial behavior was not properly set.
2019-05-14feat: Add support for Async Stacktraces in IntelliJFabian Mastenbroek
2019-05-14feat: Add support for stashing messagesFabian Mastenbroek
This change adds a StashBuffer to stash messages temporarily for processing at a later moment.
2019-05-14refactor: Make actor spawning and stopping behavior consistentFabian Mastenbroek
This change makes the behavior for spawning and stopping a child actor more consistent and better specified in the documentation.
2019-05-14feat: Add support for spawning anonymous childrenFabian Mastenbroek
This change adds support for spawning anonymous children in an ActorContext. This means a name does not have to be specified when spawning an actor.
2019-05-14feat: Add behavior constructor for timeoutFabian Mastenbroek
This change adds a Behavior constructor for delaying the construction of another Behavior instance.
2019-05-14feat: Add support for watching actor terminationFabian Mastenbroek
This change adds support for tracking termination of actors in the system.
2019-05-14style: Format code according to Ktlint style guideFabian Mastenbroek
This change formats the code according to the style guide of Ktlint.
2019-05-14feat: Add support for timersFabian Mastenbroek
This change adds support for timers in Behavior, in order to simplify sending messages to the `self` actor.
2019-05-14feat: Improve DSL for building BehaviorsFabian Mastenbroek
This change adds methods to improve the composability of multiple Behaviors, such as joining together two behaviors. Furthermore, this change adds methods for juggling with Behavior message types.
2019-05-14feat: Add testkit for testing behaviorFabian Mastenbroek
This change adds a testkit for synchronously testking Behavior implementations.
2019-05-14feat: Provide per-actor loggingFabian Mastenbroek
This change adds an actor-specific logging instance to ActorContext, which allows consumers to log messages via the SLF4J API.
2019-05-13feat: Add proper identify implementation for ActorRefFabian Mastenbroek