projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
13868: Fallback behavior when arvados_node_size tag is missing
[arvados.git]
/
services
/
nodemanager
/
arvnodeman
/
jobqueue.py
diff --git
a/services/nodemanager/arvnodeman/jobqueue.py
b/services/nodemanager/arvnodeman/jobqueue.py
index 1020b4a80ced597911b886c40789dea39f1d5598..7ca9c9553721f0fa1291273bfeff5f5f9f7d0e78 100644
(file)
--- a/
services/nodemanager/arvnodeman/jobqueue.py
+++ b/
services/nodemanager/arvnodeman/jobqueue.py
@@
-37,7
+37,10
@@
class ServerCalculator(object):
self.scratch = 0
self.cores = 0
self.bandwidth = 0
self.scratch = 0
self.cores = 0
self.bandwidth = 0
- self.price = 9999999
+ # price is multiplied by 1000 to get the node weight
+ # the maximum node weight is 4294967280
+ # so use invalid node weight 4294967 * 1000 = 4294967000
+ self.price = 4294967
self.preemptible = False
self.extra = {}
self.preemptible = False
self.extra = {}