# Influxdb 2.0 retention causing disk util 100%, how to optimize?

**URL:** <https://community.influxdata.com/t/influxdb-2-0-retention-causing-disk-util-100-how-to-optimize/15328>\
**Category:** InfluxDB 2\
**Tags:** influxdb, performance\
**Created:** [July 21, 2020, 6:56am UTC](https://community.influxdata.com/t/influxdb-2-0-retention-causing-disk-util-100-how-to-optimize/15328 "2020-07-21T06:56:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![STRRL](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/strrl/32/5356_2.png) [@STRRL](https://community.influxdata.com/u/STRRL)\
**Post date:** [July 21, 2020, 6:56am UTC](https://community.influxdata.com/t/influxdb-2-0-retention-causing-disk-util-100-how-to-optimize/15328/1 "2020-07-21T06:56:06Z")

</div>

We notice that there are many write timeout and query failed with influxdb:

- Our client use HTTP API, /write and /query
- Client calling `/write` API exceed timeout, 10 seconds
- `/query` response 400 `queue length exceed`
- disk util reached 100%, only read operation, no write
- these three issue would appear **at same time**

 ![image](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/2X/0/0fbadb2c86a0017e76dd1e1886cfe92ea3d035cc.png)

Then I found that influxd was doing retention while these time, causing disk read util 100%.

There are almost 700G LSM file, on SSD.

```auto
#influxd version
InfluxDB 2.0.0-beta.14 (git: c8af0f35be) build_date: 2020-07-08T20:42:23Z
#uname -a
Linux -------- 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

```
