News for hackers. Stuff that matters.
Re:Catena: A time series storage engine written in Go by misframer on Saturday March 07, 2015 @09:41PM (#9164248)
Thanks for trying it out! I haven't had time to run any benchmarks, so I really appreciate you taking the time to do this (especially since it took so long!).

I'm not sure what the best batch size is at the moment. Timestamps are int64s, and it's up to the user to interpret them as they wish. Partition sizes are in terms of the number of timestamps. If you had timestamps which correspond to seconds, and you wanted each partition to be 1 day, you'd choose 86400. This isn't configurable yet unless you modify the source.

I'm not surprised it's that slow. I'm not a storage engine expert, still a college student, and this has my first lock-free list implementation :). There is a lot of silliness going on with inserts, like launching a goroutine for each metric on inserts[0], using lock-free O(n) lists for sources and metrics[1] when I could have used a map, there's still a lock left that should be removed[2], and a bunch of others.

On an unrelated note, I see that someone from Prometheus will be at Monitorama. I'll be there too, so I'd love to you guys some more.

Thanks again!

[0] https://github.com/PreetamJinka/catena/blob/8e068b1b95ce1a10...

[1] https://github.com/PreetamJinka/catena/blob/8e068b1b95ce1a10...

[2] https://github.com/PreetamJinka/catena/blob/8e068b1b95ce1a10...

Re:Catena: A time series storage engine written in Go by jrv on Saturday March 07, 2015 @09:59PM (#9164307)
Ah ok, so some obvious things left to optimize then :) Thanks for the explanations!

As far as I know, none of the Prometheus core developers will be at Monitorama this year. But we'll be at SRECon Dublin, DevOpsCon Berlin, GopherCon Denver, and hopefully also at one (or both) of the VelocityConfs later this year.

Indeed, it would be great to catch up in person if you're at any of these.

Re:Catena: A time series storage engine written in Go by misframer on Saturday March 07, 2015 @10:39PM (#9164412)
I see. I should be going to GopherCon too, so I hope to see you there.