fluxcloud.main.solve package¶
Submodules¶
fluxcloud.main.solve.database module¶
-
class
fluxcloud.main.solve.database.Database(filename=':memory:')[source]¶ Bases:
objectIn-memory database to query instances.
-
execute(**kwargs)¶
-
execute_many(**kwargs)¶
-
-
fluxcloud.main.solve.database.parse_range(key, value)[source]¶ Given a stated range, e.g.,:
range_gpus: {‘min’: 2, ‘max’: None}
Return either a min/max rule, or just a min,or just a max.
fluxcloud.main.solve.properties module¶
-
class
fluxcloud.main.solve.properties.Properties(properties, **kwargs)[source]¶ Bases:
objectProperties from a schema to go into a solve.
-
not_solver_properties= ['include_list', 'exclude_list']¶
-
range_properties= ['cpus', 'instance_storage', 'memory', 'gpu_memory']¶
-
set_gpu_properties()[source]¶ Parse desired properties into single GPU request. There is both a min/max/number specification and a general flag.
-
set_not_solver_properties(properties)[source]¶ These properties are used later (e.g., to filter a final set based on name).
-
set_properties(**kwargs)[source]¶ Given an unknown set of command line arguments, parse into known instance properties. This resets properties / defined on the instance.
We assume that properties coming from argumnts might have a “-” instead of _.
-
skip_patterns= ['price-per-hour']¶
-