scheduler: add host az caching to AvailabilityZoneFilter

Registered by moorryan

The mapping between the host and az is usually static, to reduce db calls cache it in memory for future lookups.

Set cache time (default 1hr) to have some randomisation, so that only the first request needs to update all nodes at the same time.

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
moorryan
Direction:
Needs approval
Assignee:
moorryan
Definition:
New
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/host-az-caching,n,z

Addressed by: https://review.openstack.org/99127
    Add caching of host-az mapping

Addressed by: https://review.openstack.org/99133
    Propose add caching of host az-mapping

You should not set a milestone target unless the blueprint has been properly prioritized by the project drivers.
(This is an automated message)

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.