You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The MAX value is an integer, but was being divided by 60, and so
was producing an integer result. Therefore, if MAX was < 60,
the result is 0 and no new metrics are created after the initial
MAX is hit. If MAX is >= 60, new metrics will be created, though
not at exactly the rate that would be expected.
The TokenBucket expects floating point values, so force the
division to be floating point.
Fixes issue graphite-project#55.
In the 0.9.x branch, division is performed on an integer:
fill_rate = settings.MAX_CREATES_PER_MINUTE / 60
So if it's less than 60, the fill rate is 0, and no new metrics are created after the initial MAX is hit.
The example carbon.conf suggests a value of 50, so new users are likely to encounter this.
The text was updated successfully, but these errors were encountered: