vmshepherd.runtime package¶
Submodules¶
vmshepherd.runtime.abstract module¶
- Runtime manager or runtime data storage stores intermediate states of VmShepherd cycles that need to be shared across multiple instances of application like:
- healthchecks status,
- try counts
- time and dates of last manage
and locking mechanism.
The locking mechanism guarantees a preset is managed by one instance at a time.
Initialization - consider following config:
runtime:
driver: SomeHC
param1: AAAA
param2: BBBB
some_x: CCC
All params will be passed as config dict to the driver init:
vmshepherd.runtime.inmemory_driver module¶
-
class
vmshepherd.runtime.inmemory_driver.
InMemoryDriver
(instance_id, config=None)[source]¶ Bases:
vmshepherd.runtime.abstract.AbstractRuntimeData
Simple in-memory driver for runtime data and locks managment.