summaryrefslogtreecommitdiff
path: root/opendc-experiments/opendc-experiments-base/src/test/resources/topologies/DistributionPolicies/equalShare
diff options
context:
space:
mode:
authorNiels Thiele <noleu66@posteo.net>2025-07-15 15:53:37 +0200
committerGitHub <noreply@github.com>2025-07-15 15:53:37 +0200
commita5f3c19200026b9476edc39b951eb1003cff0831 (patch)
tree785201fc58893902c15d691eff252ac91f08f690 /opendc-experiments/opendc-experiments-base/src/test/resources/topologies/DistributionPolicies/equalShare
parentb2dc97dc84f56174ede9f273999ade2ed059d431 (diff)
Add configurable resource distribution at host level (#355)
Diffstat (limited to 'opendc-experiments/opendc-experiments-base/src/test/resources/topologies/DistributionPolicies/equalShare')
-rw-r--r--opendc-experiments/opendc-experiments-base/src/test/resources/topologies/DistributionPolicies/equalShare/dual_core_gpu_host.json41
-rw-r--r--opendc-experiments/opendc-experiments-base/src/test/resources/topologies/DistributionPolicies/equalShare/multi_gpu_host.json42
2 files changed, 83 insertions, 0 deletions
diff --git a/opendc-experiments/opendc-experiments-base/src/test/resources/topologies/DistributionPolicies/equalShare/dual_core_gpu_host.json b/opendc-experiments/opendc-experiments-base/src/test/resources/topologies/DistributionPolicies/equalShare/dual_core_gpu_host.json
new file mode 100644
index 00000000..aa128cba
--- /dev/null
+++ b/opendc-experiments/opendc-experiments-base/src/test/resources/topologies/DistributionPolicies/equalShare/dual_core_gpu_host.json
@@ -0,0 +1,41 @@
+{
+ "clusters": [
+ {
+ "name": "C01",
+ "hosts": [
+ {
+ "name": "DualGpuHost",
+ "cpu": {
+ "coreCount": 4,
+ "coreSpeed": 2000
+ },
+ "memory": {
+ "memorySize": 140457600000
+ },
+ "cpuPowerModel": {
+ "modelType": "linear",
+ "power": 400.0,
+ "idlePower": 100.0,
+ "maxPower": 200.0
+ },
+ "cpuDistributionPolicy": {
+ "type": "MAX_MIN_FAIRNESS"
+ },
+ "gpu": {
+ "coreCount": 2,
+ "coreSpeed": 2000
+ },
+ "gpuPowerModel": {
+ "modelType": "linear",
+ "power": 400.0,
+ "idlePower": 100.0,
+ "maxPower": 200.0
+ },
+ "gpuDistributionPolicy": {
+ "type": "EQUAL_SHARE"
+ }
+ }
+ ]
+ }
+ ]
+}
diff --git a/opendc-experiments/opendc-experiments-base/src/test/resources/topologies/DistributionPolicies/equalShare/multi_gpu_host.json b/opendc-experiments/opendc-experiments-base/src/test/resources/topologies/DistributionPolicies/equalShare/multi_gpu_host.json
new file mode 100644
index 00000000..59b0dbd2
--- /dev/null
+++ b/opendc-experiments/opendc-experiments-base/src/test/resources/topologies/DistributionPolicies/equalShare/multi_gpu_host.json
@@ -0,0 +1,42 @@
+{
+ "clusters": [
+ {
+ "name": "C01",
+ "hosts": [
+ {
+ "name": "DualGpuHost",
+ "cpu": {
+ "coreCount": 4,
+ "coreSpeed": 2000
+ },
+ "memory": {
+ "memorySize": 140457600000
+ },
+ "cpuPowerModel": {
+ "modelType": "linear",
+ "power": 400.0,
+ "idlePower": 100.0,
+ "maxPower": 200.0
+ },
+ "cpuDistributionPolicy": {
+ "type": "MAX_MIN_FAIRNESS"
+ },
+ "gpu": {
+ "count": 2,
+ "coreCount": 1,
+ "coreSpeed": 2000
+ },
+ "gpuPowerModel": {
+ "modelType": "linear",
+ "power": 400.0,
+ "idlePower": 100.0,
+ "maxPower": 200.0
+ },
+ "gpuDistributionPolicy": {
+ "type": "EQUAL_SHARE"
+ }
+ }
+ ]
+ }
+ ]
+}