Closed Dieterbe closed 4 years ago
also, since we're only ever writing to the latest chunk, some of the variables could be tracked in the AggMetric object instead of for each single chunk. I'm thinking of LastWrite and and LastTs
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
we wrap go-tsz Series objects with Chunk objects which provide some metadata, see https://github.com/raintank/raintank-metric/blob/master/metric_tank/chunk.go#L11
these account for 7% of memory usage only, so not super urgent, but still worth looking into.
here's what the fields are for:
some thoughts:
.t
property. maybe we could have Series enforce the time-ordering and possibly return error in Push(), or have Series expose this as a public variable or through a getter function.i also don't know if this useful at all.
I wonder what @dgryski thinks of these ideas and maybe he can come up with something better! we also don't want to do too much packing&math, because a bunch of these values are checked very frequently (i.e. at every incoming point for the series), but currently our cpu usage is much lower than our memory usage.