lucgone
Member
OP
Le Baguette
- Joined:
- Jul 2024
- Posts:
- 296
- From:
- Lyon, FR
Hello! Since 2 days I try to install something for log aggregation on my small VPS, it is possible to do that with only 1GB RAM? I have make test with Elastic but it is very very heavy, OOM killer come every time lol. My budget is tight, I use OVHcloud 1GB plan for small project. I search something lightweight, maybe Loki? Or other? I have see Vector but I am not sure if it is for aggregation or only ship logs. Mdr this is confusing for me
My setup: 3 VPS total, all debian, I want central place for nginx and application logs. Not need fancy dashboard, just search and filter. Thank you for advice!
Vive la résistance... électrique
olespete
Member
Trust No One
- Joined:
- Jun 2024
- Posts:
- 270
- From:
- Unknown
Loki single binary is a steal at that footprint ngl. But have you checked if OVHcloud charges extra for egress? Some deals aren't deals when you factor log volume — https://www.ovhcloud.com/en/vps/.
I ran promtail + loki on 512MB with 2GB swap for 6 months. Was fine. Not blazing, but fine.
airgapped, encrypted, faraday'd, still worried
olespete
Member
Trust No One
- Joined:
- Jun 2024
- Posts:
- 270
- From:
- Unknown
You didn't finish your setup line. How many VPS are sending logs?
airgapped, encrypted, faraday'd, still worried
lucgone
Member
OP
Le Baguette
- Joined:
- Jul 2024
- Posts:
- 296
- From:
- Lyon, FR
Ah yes sorry! 3 VPS total, all send logs to central. 2 are OVHcloud in Gravelines, 1 is Hetzner in Helsinki. All 1GB RAM. So central Loki receive from 3 sources. I will try with swap 3GB and MemoryMax like surabayacandle say. OVHcloud give NVMe on this plan I think? At least it feel fast.
Vive la résistance... électrique
olespete
Member
Trust No One
- Joined:
- Jun 2024
- Posts:
- 270
- From:
- Unknown
3 senders changes things. Promtail on each node will use 50-100MB resident. Loki itself with boltdb-shipper and filesystem storage, single binary, maybe 400-600MB with light query load. You are cutting it close but doable.
I would not run Grafana on same 1GB box though — https://grafana.com. Use logcli from your laptop or another machine.
airgapped, encrypted, faraday'd, still worried