# APM Configurations preferred for large distributed system to have minimal storage and minimal bandwidth?

**URL:** https://discuss.elastic.co/t/apm-configurations-preferred-for-large-distributed-system-to-have-minimal-storage-and-minimal-bandwidth/160388
**Category:** APM
**Created:** [December 11, 2018, 1:33pm UTC](https://discuss.elastic.co/t/apm-configurations-preferred-for-large-distributed-system-to-have-minimal-storage-and-minimal-bandwidth/160388 "2018-12-11T13:33:34Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![coolboi567](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/coolboi567/32/43834_2.png) [@coolboi567](https://discuss.elastic.co/u/coolboi567)
#### Post date: [December 11, 2018, 1:33pm UTC](https://discuss.elastic.co/t/apm-configurations-preferred-for-large-distributed-system-to-have-minimal-storage-and-minimal-bandwidth/160388/1 "2018-12-11T13:33:34Z")

</div>

I wanted to integrate Elastic APM to some of the microservices in our company.

But I am not quite sure which configuration settings to go for.

Requirements:  
• Minimal storage required  
• Minimal bandwidth  
• Minimal memory usage

---

<div class="post-metadata">

### Author: ![coolboi567](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/coolboi567/32/43834_2.png) [@coolboi567](https://discuss.elastic.co/u/coolboi567)
#### Post date: [December 11, 2018, 1:38pm UTC](https://discuss.elastic.co/t/apm-configurations-preferred-for-large-distributed-system-to-have-minimal-storage-and-minimal-bandwidth/160388/2 "2018-12-11T13:38:27Z")

</div>

I read in **[Performance Tuning](https://www.elastic.co/guide/en/apm/agent/nodejs/master/performance-tuning.html)** section that setting sampling rate to 20% can help me to improve performance.

And, does the following need to included in every microservices?

> transactionSampleRate: 0.2

Is it the solution?  
And, I am afraid if any critical errors transactions are missed out in the process or not properly seen in distributed tracing.

---

<div class="post-metadata">

### Author: ![toughrogrammer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/toughrogrammer/32/38160_2.png) [@toughrogrammer](https://discuss.elastic.co/u/toughrogrammer)
#### Post date: [December 12, 2018, 2:59am UTC](https://discuss.elastic.co/t/apm-configurations-preferred-for-large-distributed-system-to-have-minimal-storage-and-minimal-bandwidth/160388/3 "2018-12-12T02:59:50Z")

</div>

Transaction sample rate set 0.2 means only 20% of transaction data will be stored.  
I cannot assume error transaction also will be sampled but if your transaction didn't raise error and result was success, they can be missed out.

---

<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: [January 1, 2019, 11:14pm UTC](https://discuss.elastic.co/t/apm-configurations-preferred-for-large-distributed-system-to-have-minimal-storage-and-minimal-bandwidth/160388/4 "2019-01-01T23:14:26Z")

</div>

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