Allow to compute granularities using a custom source granularity

Bug #1631046 reported by Sergio Colinas
38
This bug affects 8 people
Affects Status Importance Assigned to Milestone
Gnocchi
Fix Released
Wishlist
gordon chung
cloudkitty
New
Undecided
Unassigned

Bug Description

By default carbonara updates each granularity everytime a point comes in.
If your raw data comes by second and your archive policy also includes big granularities (1 month or 1 year), it will update each one everytime a new point comes in. That results in lot of calculations that probably you don't need.
A stacked approach can prevent doing such a big calculations if the archive policy is correctly defined. So the yearly granularity can be updated using the montlhy one and so on.

gordon chung (chungg)
Changed in gnocchi:
importance: Undecided → Wishlist
status: New → Triaged
Revision history for this message
Sergio Colinas (sergio-n) wrote :

A better and more custom approach could be adding a source granularity parameter to the archive policy definition where you can specify which granularity you want to use for calculations.

summary: - Allow to compute granularities using a staked approach
+ Allow to compute granularities using a custom source granularity
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to gnocchi (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/393937

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to gnocchi (master)

Fix proposed to branch: master
Review: https://review.openstack.org/393949

Changed in gnocchi:
assignee: nobody → gordon chung (chungg)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to gnocchi (master)

Reviewed: https://review.openstack.org/393937
Committed: https://git.openstack.org/cgit/openstack/gnocchi/commit/?id=7418017e7f9a78b387f94ef41a0cd271c3ae4f0b
Submitter: Jenkins
Branch: master

commit 7418017e7f9a78b387f94ef41a0cd271c3ae4f0b
Author: gord chung <email address hidden>
Date: Fri Nov 4 21:47:34 2016 +0000

    support resampling

    support ability to resample data to another granularity that isn't
    necessarily in archive policy.

    Change-Id: I7bd83a3f550e25f438b50cef8e663f96fc0073a6
    Related-Bug: #1631046

Changed in gnocchi:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to gnocchi (master)

Reviewed: https://review.openstack.org/393949
Committed: https://git.openstack.org/cgit/openstack/gnocchi/commit/?id=68a2a356679b9d9ea7224c99e1d0670ca0c45be8
Submitter: Jenkins
Branch: master

commit 68a2a356679b9d9ea7224c99e1d0670ca0c45be8
Author: gord chung <email address hidden>
Date: Fri Nov 4 23:02:57 2016 +0000

    support resampling on aggregation endpoint

    support ability to resample data to another granularity that isn't
    necessarily in archive policy. resampling is done prior to reaggregation

    Change-Id: Ibda001e13ef03a1cd550eed8b662944bb51e9d98
    Closes-Bug: #1631046

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/gnocchi 3.1.0

This issue was fixed in the openstack/gnocchi 3.1.0 release.

gordon chung (chungg)
Changed in gnocchi:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.