summaryrefslogtreecommitdiffstats
path: root/controller-server
diff options
context:
space:
mode:
authorJon Bratseth <jonbratseth@yahoo.com>2017-12-17 10:18:46 +0100
committerGitHub <noreply@github.com>2017-12-17 10:18:46 +0100
commit028965ff295818976e0f05c003aa1b364c818cb2 (patch)
tree242efe7df90098d5df8c8ffe09c42cff987926ff /controller-server
parent6dec64d67fc792b48d3340167e83c62ba385ceed (diff)
parentf398ddfc22cdd3422085c3173074918f00521676 (diff)
Merge pull request #4438 from vespa-engine/bratseth/tensorflow-models
Bratseth/tensorflow models
Diffstat (limited to 'controller-server')
-rw-r--r--controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/ClusterCost.java13
-rw-r--r--controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/DeploymentCost.java6
2 files changed, 10 insertions, 9 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/ClusterCost.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/ClusterCost.java
index 1b2ad9f938a..fb675862320 100644
--- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/ClusterCost.java
+++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/ClusterCost.java
@@ -24,6 +24,7 @@ import java.util.Objects;
* @author smorgrav
*/
public class ClusterCost {
+
private final double tco;
private final double waste;
private final ClusterInfo clusterInfo;
@@ -32,8 +33,8 @@ public class ClusterCost {
private final ClusterUtilization resultUtilization;
/**
- * @param clusterInfo Value object with cluster info e.g. the TCO for the hardware used
- * @param systemUtilization Utilization of system resources (as ratios)
+ * @param clusterInfo value object with cluster info e.g. the TCO for the hardware used
+ * @param systemUtilization utilization of system resources (as ratios)
*/
public ClusterCost(ClusterInfo clusterInfo,
ClusterUtilization systemUtilization) {
@@ -79,10 +80,10 @@ public class ClusterCost {
}
static ClusterUtilization calculateResultUtilization(ClusterUtilization system, ClusterUtilization target) {
- double cpu = ratio(system.getCpu(),target.getCpu());
- double mem = ratio(system.getMemory(),target.getMemory());
- double disk = ratio(system.getDisk(),target.getDisk());
- double diskbusy = ratio(system.getDiskBusy(),target.getDiskBusy());
+ double cpu = ratio(system.getCpu(), target.getCpu());
+ double mem = ratio(system.getMemory(), target.getMemory());
+ double disk = ratio(system.getDisk(), target.getDisk());
+ double diskbusy = ratio(system.getDiskBusy(), target.getDiskBusy());
return new ClusterUtilization(mem, cpu, disk, diskbusy);
}
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/DeploymentCost.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/DeploymentCost.java
index 585690793bb..371e1c41e32 100644
--- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/DeploymentCost.java
+++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/DeploymentCost.java
@@ -44,17 +44,17 @@ public class DeploymentCost {
return clusters;
}
- /** @return Total cost of ownership for the deployment (sum of all clusters) */
+ /** Returns the total monthly cost of ownership for the deployment (sum of all clusters) */
public double getTco() {
return tco;
}
- /** @return The utilization of clusters that wastes most money in this deployment */
+ /** Returns the utilization of clusters that wastes most money in this deployment */
public double getUtilization() {
return utilization;
}
- /** @return The amount of dollars spent and not utilized */
+ /** Returns the amount of dollars spent and not utilized */
public double getWaste() {
return waste;
}