aodh/ceilometer/tests/api
Eoghan Glynn ba6641afac Replace mongo aggregation with plain ol' map-reduce
Fixes bug 1262571

Previously, the mongodb storage driver an aggregation pipeline
over the meter collection in order to construct a list of resources
adorned with first & last sample timestamps etc.

However mongodb aggregation framework performs sorting in-memory,
in this case operating over a potentially very large collection.
It is also hardcoded to abort any sorts in an aggregation pipeline
that will consume more than 10% of physical memory, which is
observed in this case.

Now, we avoid the aggregation framework altogether and instead
use an equivalent map-reduce.

Change-Id: Ibef4a95acada411af385ff75ccb36c5724068b59
2014-01-10 14:09:52 +00:00
..
v1 Fix work of udp publisher 2014-01-09 12:53:30 +04:00
v2 Replace mongo aggregation with plain ol' map-reduce 2014-01-10 14:09:52 +00:00
__init__.py Move tests into ceilometer module 2013-11-13 15:32:31 +01:00