Hej, potrzebuję pomocy w ogarnięciu InfluxDB na RPi.
Moja malina (wersja pierwsza, 256MB RAM, jeden rdzeń) ostatnio przestaje dawać radę, w losowych momentach nagle load leci wykładniczo, prawdopodobnie przez swapa i kaput. Dziś w nocy dałem jej szansę, ale po ~14h musiałem wyciągnąć wtyczkę, bo nie dało się do niej dostać żadną drogą.
Niestety, po takim wyjęciu wtyczki znikają wszystkie moje dane w InfluxDB, co bardzo boli. Kilka miesięcy danych mi wyparowało :/
Mój /etc/influxdb/influxdb.conf
ma takie sekcje odkomentowane:
[meta]
# Where the metadata/raft database is stored
#dir = "/var/lib/influxdb/meta"
#First, we are going to adapt the storage directory into the tmpfs Directory, so values are stored in RAM and not written to the SD card. This should increase both query speed and extend the life of the SD card https://ch-st.de/raspberry-pi-grafana-influxdb-collectd/
dir = "/tmp/influxdb/meta"
[data]
# The directory where the TSM storage engine stores TSM files.
dir = "/var/lib/influxdb/data"
# The directory where the TSM storage engine stores WAL files.
wal-dir = "/var/lib/influxdb/wal"
W ~/influxdb/
w katalogach data
i wal
mam podkatalog o nazwie mojej bazy danych, ale po wpisaniu polecenia show databases
influx nie widzi mojej bazy. Po jej dodaniu przez create database foo
nowe dane do niej lecą, ale po starych nie ma śladu.
PS, tak, będę próbował ustawić jakiś autobackup