src.driver package¶
Submodules¶
src.driver.bootstrap module¶
-
src.driver.bootstrap.
bootstrap
(**kwargs)[source]¶ Method to bootstrap EP2 controller
This method bootstraps EP2 to creates the neccessary objects and returns it to the driver.
Parameters: **kwargs (object) – kwargs must contains config dictionary, logger object. Returns: Whether bootstrap updater was successfull or not src.core.haproxyupdater.haproxyupdate.HaproxyUPdate: Object for updating haproxy config src.core.nodefetchers.basefetcher: Object for fetching backends Return type: bool
src.driver.defaultparams module¶
src.driver.driver module¶
src.driver.drivercache module¶
-
class
src.driver.drivercache.
DriverCache
(node_ips)[source]¶ Bases:
object
Class to provide caching for ep2
The backends fetched in a given run is stored in memory. The backends fetched in next run witll be compared to the ones already held by this class (node_ips). If there is a mismatch, only then update will be done
Parameters: node_ips (list) – list of backend IPs