• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

m3db / m3collector / 173
97%

Build:
DEFAULT BRANCH: master
Ran 11 Aug 2017 04:06PM UTC
Jobs 2
Files 10
Run time 36s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
173

push

travis-ci

web-flow
[instance writer] Ensure large batch timers are broken up into multiple buffers (#18)

In a previous diff we added a maxTimerBatchSize field to the instance writer. This field caused the instance writer to break up batch timers into multiple metrics with a maximum of maxTimerBatchSize values. However, while we broke up large timers into multiple metrics, we only checked to see if we should enqueue them after all the smaller metrics had been encoded. This can cause the size of the underlying buffer in the encoder to grow much larger than the flush size though since the size of the buffer will still need to be large enough to support all the timer values in a large batch timer. Furthermore, since these encoders, and therefore their buffers, are pooled, the size of the buffers in the pool would grow over time leading to a large increase in memory usage.

This diff addresses this problem by checking if we should enqueue an encoder in the instance writer after each timer batch has been encoded, instead of after all timer values have been encoded. As a result, the size of the underlying buffer will never grow much larger than the flush size or the size of a timer metric batch. Thus, since we set maxTimerBatchSize to create metrics whose size is roughly that of the flush size, the buffers will not grow much larger than the flush size, curbing the memory growth we saw previously.

800 of 841 relevant lines covered (95.12%)

1652.59 hits per line

Jobs
ID Job ID Ran Files Coverage
1 173.1 (TEST_TIMEOUT_SCALE=20) 11 Aug 2017 04:07PM UTC 0
95.12
Travis Job 173.1
2 173.2 (PACKAGE=github.com/m3db/m3collector) 11 Aug 2017 04:06PM UTC 0
95.12
Travis Job 173.2
Source Files on build 173
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #173
  • 5317cd90 on github
  • Prev Build on master (#153)
  • Next Build on master (#179)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc