# Data loss when max-cache-memory-size exceeded?

**URL:** https://community.influxdata.com/t/data-loss-when-max-cache-memory-size-exceeded/22452
**Category:** InfluxDB 1
**Tags:** influxdb
**Created:** [November 8, 2021, 10:28pm UTC](https://community.influxdata.com/t/data-loss-when-max-cache-memory-size-exceeded/22452 "2021-11-08T22:28:04Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Dyanne\_Ostlind](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/dyanne_ostlind/32/8708_2.png) [@Dyanne\_Ostlind](https://community.influxdata.com/u/Dyanne_Ostlind)
#### Post date: [November 8, 2021, 10:28pm UTC](https://community.influxdata.com/t/data-loss-when-max-cache-memory-size-exceeded/22452/1 "2021-11-08T22:28:04Z")

</div>

When we see max-cache-memory-size exceeded errors in our influxdb logs, does this mean that there are data points actually being dropped, and never written to influxdb?  
Using influxdb 1.4.

---

<div class="post-metadata">

### Author: ![Anaisdg](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/anaisdg/32/6401_2.png) [@Anaisdg](https://community.influxdata.com/u/Anaisdg)
#### Post date: [November 12, 2021, 4:56pm UTC](https://community.influxdata.com/t/data-loss-when-max-cache-memory-size-exceeded/22452/2 "2021-11-12T16:56:28Z")

</div>

Hello @Dyanne_Ostlind,  
Welcome!  
Can you please share the exact error you’re getting?  
If it’s this error:

> **[InfluxDB error messages | InfluxDB OSS 1.8 Documentation](https://docs.influxdata.com/influxdb/v1.8/troubleshooting/errors/#write-failed-for-shard---engine-cache-maximum-memory-size-exceeded)**
>
> Covers InfluxDB error messages, their descriptions, and common resolutions.

They’re not being written.

---

<div class="post-metadata">

### Author: ![Dyanne\_Ostlind](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/dyanne_ostlind/32/8708_2.png) [@Dyanne\_Ostlind](https://community.influxdata.com/u/Dyanne_Ostlind)
#### Post date: [November 15, 2021, 3:55pm UTC](https://community.influxdata.com/t/data-loss-when-max-cache-memory-size-exceeded/22452/3 "2021-11-15T15:55:57Z")

</div>

So, if we are sending data to influxdb via telegraf, are those data points literally lost, or does telegraf cache them?  
Thanks

---

<div class="post-metadata">

### Author: ![Anaisdg](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/anaisdg/32/6401_2.png) [@Anaisdg](https://community.influxdata.com/u/Anaisdg)
#### Post date: [November 15, 2021, 5:40pm UTC](https://community.influxdata.com/t/data-loss-when-max-cache-memory-size-exceeded/22452/4 "2021-11-15T17:40:39Z")

</div>

Hello @Dyanne_Ostlind,  
Telegraf caches metrics:

> **[Configuring Telegraf | Telegraf 1.21 Documentation](https://docs.influxdata.com/telegraf/v1.20/administration/configuration/#agent-configuration)**
>
> Overview of the Telegraf configuration file, enabling plugins, and setting environment variables.
