AdguardTeam / AdguardTeam/AdGuardHome

Compress stats on harddrive

Aperta
#1,757 6 commenti 2 reazioni 0 assegnatari Vedi su GitHub
feature request P3: Medium
Lingua principale
TypeScript
Stelle
36.9k
Fork
2.5k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### 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 😉

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.