357fbd4d83
1. Each controller will have a polling thread which will query Nova API every 1 min to get the list of nova VMs and use that to build up/update the DB cache. 2. There are 2 types of udpates, one is the full udpate which will query all the nova VMs while the other is the incremental update which will only query the new/updated VMs in the past 10 mins. We will do incremental udpate every 1 min then a full update every 10 mins. 3. Inside get_gbp_details(), it will then query this DB cache instead for the VM name. If its not there, it will just use the device_id instead for the time being to speed up the performance. 4. Then when there are added/updated VMs, the polling thread will call notify_port_update() to trigger an update to the corresponding EP file. 5. This patch can also take care of the VM name change case. 6. The VMNameUpdate DB table is used to corodinate which controller's polling thread should be in charge of the periodical updates. So at any given time, there will be only one active polling thread doing the updates. Change-Id: I820d8078825dbc1e801b7e87752138e9509369d8 |
||
---|---|---|
.. | ||
grouppolicy | ||
migration | ||
__init__.py | ||
all_models.py | ||
implicitsubnetpool_db.py | ||
servicechain_db.py |