# APM Data growth rate

**URL:** <https://discuss.elastic.co/t/apm-data-growth-rate/245618>\
**Category:** APM\
**Tags:** java\
**Created:** [August 19, 2020, 2:08pm UTC](https://discuss.elastic.co/t/apm-data-growth-rate/245618 "2020-08-19T14:08:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![manohar\_deepu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/manohar_deepu/32/72797_2.png) [@manohar\_deepu](https://discuss.elastic.co/u/manohar_deepu)\
**Post date:** [August 19, 2020, 2:08pm UTC](https://discuss.elastic.co/t/apm-data-growth-rate/245618/1 "2020-08-19T14:08:25Z")

</div>

I have a query about the data size growth in APM as I had heard some concerns on rapid data growth for APM. Can you please answer this for us,

If I have a service with 1k RPS with 6 spans on an average and 5% error rate deployed on 5 boxes, how much data growth can I expect over a day/month if I have sampling rate set to 1 vs data growth if I have sampling rate set to 0?

---

<div class="post-metadata">

**Author:** ![axw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/axw/32/28197_2.png) [@axw](https://discuss.elastic.co/u/axw)\
**Post date:** [August 20, 2020, 3:15am UTC](https://discuss.elastic.co/t/apm-data-growth-rate/245618/2 "2020-08-20T03:15:26Z")

</div>

It depends a lot on the type of operations, which would influence the size of the events. You can get a rough idea of the document sizes at [https://www.elastic.co/guide/en/apm/server/current/sizing-guide.html](https://www.elastic.co/guide/en/apm/server/current/sizing-guide.html)

A few points to help answer your scenario:

- If you set the sampling rate to 0, then APM will not index any any spans. So with sampling rate of 0 you're eliminating 6000 docs/s.
- Error events are unaffected by sampling; APM will index these regardless of the sampling rate.
- Currently APM indexes a transaction document per request (1K RPS = 1K transaction docs/s), regardless of sampling. We are working on changing the implementation to store pre-aggregated histograms, so you'll have far fewer documents stored.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 9, 2020, 11:15pm UTC](https://discuss.elastic.co/t/apm-data-growth-rate/245618/3 "2020-09-09T23:15:41Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
