# Howto reduce disk io on a Synology Docker InfluxDB

**URL:** https://community.influxdata.com/t/howto-reduce-disk-io-on-a-synology-docker-influxdb/28287
**Category:** InfluxDB 1
**Tags:** influxdb, docker
**Created:** [January 23, 2023, 5:01pm UTC](https://community.influxdata.com/t/howto-reduce-disk-io-on-a-synology-docker-influxdb/28287 "2023-01-23T17:01:13Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![DietmarK](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/dietmark/32/12038_2.png) [@DietmarK](https://community.influxdata.com/u/DietmarK)
#### Post date: [January 23, 2023, 5:01pm UTC](https://community.influxdata.com/t/howto-reduce-disk-io-on-a-synology-docker-influxdb/28287/1 "2023-01-23T17:01:13Z")

</div>

Hello Forum

I’m running an InfluxDB 1.8.9 OSS in a Docker container on an SYNOLOGY DS1522+ NAS using DSM 7.1.

I found very high disk write rates of abt. 2MBytes/s when inserting measurements with two tags and one value.  
I’m using the “influxdb out” node in Node-RED v2.2.3 to write with a rate of about 5 measurements per second.

```auto
Device tps kB_read/s kB_wrtn/s kB_dscd/s kB_read kB_wrtn kB_dscd
sata2 141.00 0.00 2325.00 0.00 0 2325 0

```

Logging ist turned off via

- INFLUXDB\_REPORTING\_DISABLED = true
- INFLUXDB\_HTTP\_LOG\_ENABLED = false
- INFLUXDB\_QUERY\_LOG\_ENABLED = false

And I’ve set INFLUXDB\_DATA\_WAL\_FSYNC\_DELAY to 1s

Any ideas what I’m doing wrong and how I can reduce disk io?

Thanks in advance

Dietmar

---

<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: [January 24, 2023, 7:33pm UTC](https://community.influxdata.com/t/howto-reduce-disk-io-on-a-synology-docker-influxdb/28287/2 "2023-01-24T19:33:47Z")

</div>

Hello @DietmarK,  
Thats very odd. How many points are in each measurement?

---

<div class="post-metadata">

### Author: ![DietmarK](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/dietmark/32/12038_2.png) [@DietmarK](https://community.influxdata.com/u/DietmarK)
#### Post date: [January 25, 2023, 5:47am UTC](https://community.influxdata.com/t/howto-reduce-disk-io-on-a-synology-docker-influxdb/28287/3 "2023-01-25T05:47:58Z")

</div>

@Anaisdg

Thanks for coming back to my question!

Sorry, I’m not quite up to speed with the terms - exactly one “datapoint” is always inserted. The measurement has two numerical tags and the numerical measurement value.

The conf file is more or less empty:

```auto
[meta]
  dir = "/var/lib/influxdb/meta"

[data]
  dir = "/var/lib/influxdb/data"
  engine = "tsm1"
  wal-dir = "/var/lib/influxdb/wal"

```

Did I miss something important?

Thanks

//Dietmar

---

<div class="post-metadata">

### Author: ![DietmarK](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/dietmark/32/12038_2.png) [@DietmarK](https://community.influxdata.com/u/DietmarK)
#### Post date: [January 25, 2023, 5:57am UTC](https://community.influxdata.com/t/howto-reduce-disk-io-on-a-synology-docker-influxdb/28287/4 "2023-01-25T05:57:43Z")

</div>

is it possible that these setting can cause this high workload on each insert?

```auto
CREATE RETENTION POLICY "rp_1w" ON "high_volume" DURATION 1w REPLICATION 1 DEFAULT 
CREATE RETENTION POLICY "rp_forever" ON "high_volume" DURATION INF REPLICATION 1 
CREATE CONTINUOUS QUERY "cq_5min" ON "high_volume" BEGIN SELECT mean(value) AS mean_value, max(value) AS max_value, min(value) AS min_value INTO "high_volume"."rp_forever"."sensors" FROM "high_volume"."rp_1w"."sensors" GROUP BY time(5m), * END

```

Thanks

//Dietmar

---

<div class="post-metadata">

### Author: ![DietmarK](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/dietmark/32/12038_2.png) [@DietmarK](https://community.influxdata.com/u/DietmarK)
#### Post date: [January 25, 2023, 10:11am UTC](https://community.influxdata.com/t/howto-reduce-disk-io-on-a-synology-docker-influxdb/28287/5 "2023-01-25T10:11:13Z")

</div>

Hm, I’ve removed the CQ and still same load - any more ideas?

---

<div class="post-metadata">

### Author: ![DietmarK](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/dietmark/32/12038_2.png) [@DietmarK](https://community.influxdata.com/u/DietmarK)
#### Post date: [January 27, 2023, 4:33pm UTC](https://community.influxdata.com/t/howto-reduce-disk-io-on-a-synology-docker-influxdb/28287/6 "2023-01-27T16:33:30Z")

</div>

It is getting more strange - on a RaspberryPi docker image with InfluxDB 1.8.4 with the same settings and influxdb.conf I get IO rates with 50kBytes/s

HELP!!!
