prometheus/storage
beorn7 e22f26bc58 Move to a queue model for appending samples after all.
Starting a goroutine takes 1-2µs on my laptop. From the "numbers every
Go programmer should know", I had 300ns for a channel send in my
mind. Turns out, on my laptop, it takes only 60ns. That's fast enough
to warrant the machinery of yet another channel with a fixed set of
worker goroutines feeding from it. The number chosen (8 for now) is
low enough to not really afflict a measurable overhead (a big
Prometheus server has >1000 goroutines running), but high enough to
not make sample ingestion a bottleneck.
2015-02-13 14:26:54 +01:00
..
local Move to a queue model for appending samples after all. 2015-02-13 14:26:54 +01:00
metric More efficient JSON query result format. 2015-01-26 13:06:22 +01:00
remote Move emptiness check to the receivers. 2015-02-12 19:47:24 +01:00