mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-24 10:34:17 +00:00
Change wording.
This commit is contained in:
parent
5c976199cd
commit
a863e8f04f
@ -40,9 +40,9 @@ class Swarm:
|
|||||||
' (10^0) values, it must be conveted.
|
' (10^0) values, it must be conveted.
|
||||||
'
|
'
|
||||||
' While the cpu_reservation value has to be in nanos, the
|
' While the cpu_reservation value has to be in nanos, the
|
||||||
' mem_reservation value must be presented in bytes (intuitive right?).
|
' mem_reservation value must be presented in an unscaled form
|
||||||
' Bacause the job object provides the memory value in megabytes, it is
|
' (intuitive right?). Bacause the job object provides the memory value
|
||||||
' also necessary to convert the value.
|
' in megabytes, it is also necessary to convert the value.
|
||||||
'''
|
'''
|
||||||
_resources = docker.types.Resources(
|
_resources = docker.types.Resources(
|
||||||
cpu_reservation=job['requested_cpus'] * (10 ** 9),
|
cpu_reservation=job['requested_cpus'] * (10 ** 9),
|
||||||
|
Loading…
Reference in New Issue
Block a user