influxdata / influxdb

Scalable datastore for metrics, events, and real-time analytics
https://influxdata.com
Apache License 2.0
28.8k stars 3.55k forks source link

Influxd crashes raspberry pi 2 #21389

Open Tux12Fun opened 3 years ago

Tux12Fun commented 3 years ago

Steps to reproduce: List the minimal actions needed to reproduce the behavior.

  1. Start System wait until influx is opening the files
  2. InfluxDB consumes all Memory until System hangs up

Expected behavior: Influxdb should start normaly and with lot less of memory consume

Actual behavior: Influxdb eats all memory until system hangs.

Environment info:

25076
root@raspberrypi:/media/daten/influxdb# du -hs *
807M    data
4,0K    dumps
48K     meta
68M     wal

uname -srm
Linux 5.10.17-v7+ armv7l

Config: Copy any non-default config values here or attach the full config as a gist or file.

---
>   dir = "/var/lib/influxdb/meta"
32c32
<   logging-enabled = true
---
>   # logging-enabled = true
45c45
<   dir = "/media/daten/influxdb/data"
---
>   dir = "/var/lib/influxdb/data"
48c48
<   wal-dir = "/media/daten/influxdb/wal"
---
>   wal-dir = "/var/lib/influxdb/wal"
54c54
<    wal-fsync-delay = "5000ms"
---
>   # wal-fsync-delay = "0s"
61d60
<   index-version = "tsi1"

<    max-concurrent-compactions = 1
---
>   # max-concurrent-compactions = 0

Logs: Include snippet of errors in log.

Performance: Generate profiles with the following commands for bugs related to performance, locking, out of memory (OOM), etc.

# Commands should be run when the bug is actively happening.
# Note: This command will run for ~30 seconds.
curl -o profiles.tar.gz "http://localhost:8086/debug/pprof/all?cpu=30s"
iostat -xd 1 30 > iostat.txt
# Attach the `profiles.tar.gz` and `iostat.txt` output files.

unable to pull any data Raspi hangs up if i don't stop influxd after startup.

Gewünscht=Unbekannt/Installieren/R=Entfernen/P=Vollständig Löschen/Halten
| Status=Nicht/Installiert/Config/U=Entpackt/halb konFiguriert/
         Halb installiert/Trigger erWartet/Trigger anhängig
|/ Fehler?=(kein)/R=Neuinstallation notwendig (Status, Fehler: GROSS=schlecht)
||/ Name           Version      Architektur  Beschreibung
+++-==============-============-============-=================================
ii  influxdb       1.8.5-1      armhf        Distributed time-series database.
Tux12Fun commented 3 years ago

A migration to influxdb2 is not possible as raspberry pi2 doesn't support 64Bit.