1 minute rollups

92 views
Skip to first unread message

dan...@mousera.com

unread,
Dec 17, 2014, 3:00:19 PM12/17/14
to bluefloo...@googlegroups.com
It looks like the rollup periods are baked in and the smallest one is 5 minutes.

How hard is it going to be to modify the code to make 1 minute rollups?

Thanks.

chinmay gupte

unread,
Dec 17, 2014, 10:49:22 PM12/17/14
to dan...@mousera.com, bluefloo...@googlegroups.com
Hello Daniel,

Yes, the rollup periods are currently hard-coded, though we have always talked about having a configurable set of options for the required granularities. But it seems the question you are asking is about having the hard-coded lowest granularity as 1 min instead of 5 mins, so I will restrict the scope of the answer to that.
I think it is a practical change, as currently the only requirement which exists throughout blueflood and especially in the rollup service, is that a slot in a coarser granularity is a multiple of the slots in a finer one. You will have to add 1 min as another granularity over here:  https://github.com/rackerlabs/blueflood/blob/master/blueflood-core/src/main/java/com/rackspacecloud/blueflood/rollup/Granularity.java#L43, make other related changes in that class and it *should* work, although please note this is just on the basis of my preliminary inspection of that piece of code.
If you decide to start working on the change, feel free to ask for help either over here or on #blueflood IRC channel on freenode.

Thanks,
Chinmay

--
You received this message because you are subscribed to the Google Groups "Blueflood Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blueflood-disc...@googlegroups.com.
Visit this group at http://groups.google.com/group/blueflood-discuss.
To view this discussion on the web visit https://groups.google.com/d/msgid/blueflood-discuss/41304ad6-845c-44c7-99c8-5513fe2643e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

chinmay gupte

unread,
Dec 17, 2014, 10:59:57 PM12/17/14
to dan...@mousera.com, bluefloo...@googlegroups.com
Almost forgot, you will have make the schema change as well, to add the 1m column family to cassandra and add the abstraction for it over here: https://github.com/rackerlabs/blueflood/blob/master/blueflood-core/src/main/java/com/rackspacecloud/blueflood/io/CassandraModel.java#L32

Chinmay
Reply all
Reply to author
Forward
0 new messages