nodepool/nodepool/tests
Tobias Henkel 64487baef0
Asynchronously update node statistics
We currently updarte the node statistics on every node launch or
delete. This cannot use caching at the moment because when the
statistics are updated we might end up pushing slightly outdated
data. If then there is no further update for a longer time we end up
with broken gauges. We already get update events from the node cache
so we can use that to centrally trigger node statistics updates.

This is combined with leader election so there is only a single
launcher that keeps the statistics up to date. This will ensure that
the statistics are not cluttered because of several launchers pushing
their own slightly different view into the stats.

As a side effect this reduces the runtime of a test that creates 200
nodes from 100s to 70s on my local machine.

Change-Id: I77c6edc1db45b5b45be1812cf19eea66fdfab014
2018-11-29 16:48:30 +01:00
..
fixtures Add tox functional testing for drivers 2018-11-01 15:33:44 +01:00
functional Add tox functional testing for drivers 2018-11-01 15:33:44 +01:00
unit Add second level cache of nodes 2018-11-26 20:04:04 +01:00
__init__.py Asynchronously update node statistics 2018-11-29 16:48:30 +01:00
fake-image-create Add --checksum support to disk-image-create 2016-12-07 10:25:06 -05:00