summaryrefslogtreecommitdiffstats
path: root/tools/pharos-validator/src/validation_tool/src/const.py
blob: a204a96438a3c69feb95102a79eb0fbce77f9b51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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}