Influxd heavy load on openhabian [solved]

This week I made a fresh install with openhabian and openhab 2.2.0 on a RPi3.
I also installed MQTT/InfluxDB/Grafana to connect to my other devices and to store / display temperature etc.All binaries are up to date, problem is that I notice a high processor load compared to my previous setup.
Trying to narrow it down I think it has to do with influxDB, old version was 1.2.2 while now 1.4.2 is installed.
Using HTOP I noticed it spends a lot of time in the influxd :

17658 influxdb   20   0  807M 54244 12248 S 100.  5.5 15:05.35 β”œβ”€ /usr/bin/influxd -config /etc/influxdb/influxdb.conf
18191 influxdb   20   0  807M 54244 12248 S  0.5  5.5  2:03.18 β”‚  β”œβ”€ /usr/bin/influxd -config /etc/influxdb/influxdb.conf
17861 influxdb   20   0  807M 54244 12248 R 99.3  5.5  1:48.32 β”‚  β”œβ”€ /usr/bin/influxd -config /etc/influxdb/influxdb.conf
17727 influxdb   20   0  807M 54244 12248 S  0.0  5.5  0:38.43 β”‚  β”œβ”€ /usr/bin/influxd -config /etc/influxdb/influxdb.conf
17668 influxdb   20   0  807M 54244 12248 S  0.0  5.5  0:00.09 β”‚  β”œβ”€ /usr/bin/influxd -config /etc/influxdb/influxdb.conf
17667 influxdb   20   0  807M 54244 12248 S  0.5  5.5  1:34.87 β”‚  β”œβ”€ /usr/bin/influxd -config /etc/influxdb/influxdb.conf
17666 influxdb   20   0  807M 54244 12248 S  0.0  5.5  2:17.59 β”‚  β”œβ”€ /usr/bin/influxd -config /etc/influxdb/influxdb.conf
17664 influxdb   20   0  807M 54244 12248 S  0.0  5.5  2:30.92 β”‚  β”œβ”€ /usr/bin/influxd -config /etc/influxdb/influxdb.conf
17663 influxdb   20   0  807M 54244 12248 S  0.0  5.5  1:53.49 β”‚  β”œβ”€ /usr/bin/influxd -config /etc/influxdb/influxdb.conf
17662 influxdb   20   0  807M 54244 12248 S  0.0  5.5  0:00.00 β”‚  β”œβ”€ /usr/bin/influxd -config /etc/influxdb/influxdb.conf
17661 influxdb   20   0  807M 54244 12248 S  0.5  5.5  0:06.35 β”‚  └─ /usr/bin/influxd -config /etc/influxdb/influxdb.conf

In the β€˜old’ situation the AVG proc load was about 2-3 % but now it is about 25-30%, still not a lot but I think something is wrong but cannot figure out what could be wrong.
Stopping influxD and openhab2 brings it back to β€˜normal’ proc load but that is not what i want …

Anyone else having similar observations ?

-ben

Hi,

Still having the issue, any idea how to debug in more depth ?

-ben

Problem solved:

[monitor] function was switched on (default) causing a lot of activity into the _internal database

-ben

1 Like

I had the same issue. I edited:

sudo nano /etc/influxdb/influxdb.conf

uncomment store-enabled and set it to false:

[monitor]
  # Whether to record statistics internally. 
  store-enabled = false

and restart inluxd:

sudo service influxd restart

decreased the cpu-load on a RPI3 from peaks around 100% to below 2%

Thanks a lot

1 Like