Skip to content

v1.2 Release: Metrics storage switch to Red-Black tree

Compare
Choose a tag to compare
@Lax Lax released this 26 Apr 08:12
· 46 commits to master since this release
c28cef8

Red-Black tree

Use rbtree, which is allocate dynamically, the storage size won't be limited by the number of buckets due to the hash implement.

Insert and query operations are convenient with ngx_rbtree interface.
Search performance should improve for large number of accounting channel names [not-tested-yet].

Minor bugfix

  • fix a bug when http_accounting_perturb is set to 'off' or unset, the first event is added with wrong timer.