fe65e12b31
This change adds caching for the host look ups associated with a private-address of a unit. This cache is maintained across hook invocations, and is designed to reduce the time spent in cloud-compute-relation-changed hooks (which occur as nova-compute units join and update on the cloud-compute relation). The feature has been added under an EXPERIMENTAL config flag (with the default being "don't use the cached values") in case there are any corner cases around DNS resolution in the deploying cloud during deployment. An action is included to allow clearing of the cache at unit, application and whole relation level. This clears the cache and re-triggers the host resolution, and relation updates. This is in case of either 1) DNS changed during the deployment, 2) DNS has been altered during the running of the cloud. Change-Id: I5a68bf4c30bf1591184d660d50559c969822ddcf
Symbolic link
1 line
10 B
Plaintext
Symbolic link
1 line
10 B
Plaintext
actions.py |