go-graphite / go-carbon

Golang implementation of Graphite/Carbon server with classic architecture: Agent -> Cache -> Persister
MIT License
801 stars 126 forks source link

Fixed the problem with different number of metrics in trie index and on disk #501

Closed auguzun closed 1 year ago

auguzun commented 1 year ago

I'm trying to merge previous MR which I had to revert. The problem was that creation throttle was happening much more often than with previous design. Mainly because with previous design throughput throttle and quota usage throttle happened before the creation throttle, which allowed us to save creation throttle quota. In this MR I change the order of throttle function as it was before.