summaryrefslogtreecommitdiffstats
path: root/validator/src/validation_tool/src/const.py
diff options
context:
space:
mode:
authorTrevor Bramwell <tbramwell@linuxfoundation.org>2017-09-22 12:23:36 -0700
committerTrevor Bramwell <tbramwell@linuxfoundation.org>2017-09-22 12:23:36 -0700
commit4b269fba0ca273dfa3acf44c9f5490f01e0c3d87 (patch)
tree909b5262b46306eb78327e535f2e14120e45116a /validator/src/validation_tool/src/const.py
parentd46ab54583a6c20bfa5bea581f512474f488e788 (diff)
Rename pharos-dashboard and pharos-validator
As subdirectories of the pharos-tools repo, there is little need to keep the pharos prefix. Change-Id: Ica3d79411f409df638647300036c0664183c2725 Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
Diffstat (limited to 'validator/src/validation_tool/src/const.py')
-rw-r--r--validator/src/validation_tool/src/const.py48
1 files changed, 48 insertions, 0 deletions
diff --git a/validator/src/validation_tool/src/const.py b/validator/src/validation_tool/src/const.py
new file mode 100644
index 0000000..a204a96
--- /dev/null
+++ b/validator/src/validation_tool/src/const.py
@@ -0,0 +1,48 @@
+##############################################################################
+# Copyright (c) 2015 Todd Gaunt and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
+## Various constant strings used throughout program
+HARDWARE_TEST="pharos-validator-node"
+
+## Pharos hardware specification
+# memory
+MIN_MEMSIZE = 32000000 # In Kb
+
+# cpu
+MIN_CPUFREQ = 1800.000 # In Mhz
+MIN_CORECOUNT = 4
+
+# storage
+MIN_DISKCOUNT = 3
+MIN_SSDCOUNT = 1
+MIN_HDDSIZE = 1000 # In Gb
+MIN_SSDSIZE = 100 # In Gb
+# Smallest possible disk size
+MIN_DISKSIZE = min(MIN_HDDSIZE, MIN_SSDSIZE)
+
+# Virtual deployments
+# Requirements are per node
+APEX_REQ = {"cores": 2, \
+ "ram": 8000000, \
+ "disk": 40}
+
+# Requirements are per node
+COMPASS_REQ = {"cores": 4, \
+ "ram": 4000000, \
+ "disk": 100}
+
+# Requirements are per node
+JOID_REQ = {"cores": 4, \
+ "ram": 4000000, \
+ "disk": 100}
+
+# Requirements are per node
+FUEL_REQ = {"cores": 4, \
+ "ram": 4000000, \
+ "disk": 100}