AdguardTeam / AdguardTeam/AdGuardHome

Compress stats on harddrive

Offen
#1,757 6 Kommentare 2 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
feature request P3: Medium
Vorherrschende Sprache
TypeScript
Sterne
36.9k
Forks
2.5k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

### Prerequisites
- [✔️] I am running the latest version
- [✔️] I checked the documentation and found no answer
- [✔️] I checked to make sure that this issue has not already been filed

### Problem Description
When having querylog enabled my harddisk gets filled. If simple compression would be enabled that easily could be reduced to an more acceptable size.

### Proposed Solution
Compress file before writing though either gzip or sth. before writing it to disk. It might even be an option to not write it to an json but instead use a database like sqlite which handles storage efficiency

### Additional Information
Just a short snapshot of my "real world data" which I compressed through `gzip -k` and `brotli -6`:
```
$ ls -lh querylog.*
-rw-r--r-- 1 me me 13G May 28 18:14 querylog.json
-rw-r--r-- 1 me me 25M May 28 18:14 querylog.json.br
-rw-r--r-- 1 me me 149M May 28 18:14 querylog.json.gz
```
I think the difference between "13G" and even "149M" in case of gzip is self-explanatory 😉

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.