Arvados-DCO-1.1-Signed-off-by: Nico Cesar <nico@curii.com>
// RuntimeConstraints specify a container's compute resources (RAM,
// CPU) and network connectivity.
type RuntimeConstraints struct {
// RuntimeConstraints specify a container's compute resources (RAM,
// CPU) and network connectivity.
type RuntimeConstraints struct {
RAM int64 `json:"ram"`
VCPUs int `json:"vcpus"`
KeepCacheRAM int64 `json:"keep_cache_ram"`
RAM int64 `json:"ram"`
VCPUs int `json:"vcpus"`
KeepCacheRAM int64 `json:"keep_cache_ram"`
# request.
def fill_container_defaults
self.runtime_constraints = {
# request.
def fill_container_defaults
self.runtime_constraints = {
'keep_cache_ram' => 0,
'ram' => 0,
'vcpus' => 0,
'keep_cache_ram' => 0,
'ram' => 0,
'vcpus' => 0,