this post was submitted on 08 Oct 2024
45 points (95.9% liked)

Selfhosted

39532 readers
560 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

I kind of want to self host a lemmy instance. What are the requirements for a single user lemmy instance?

top 17 comments
sorted by: hot top controversial new old
[–] eskuero@lemmy.fromshado.ws 42 points 23 hours ago (3 children)

Depends on how many communities do you subscribe too and how much activity they have.

I'm running my single user instance subscribed to 20 communities on a 2c/4g vps who also hosts my matrix server and a bunch of other stuff and right now I mostly see peaks from 5/10% of CPU and RAM at 1.5GB

I have been running for 15months and the docker volumes total 1.2GBs A single pg_dump for the lemmy database in plain text is 450M

[–] eskuero@lemmy.fromshado.ws 31 points 23 hours ago* (last edited 23 hours ago)

For the whole stack in the past 16 hours

# docker-compose stats

[–] Max_P@lemmy.max-p.me 2 points 13 hours ago

I subscribe to a few more communities and my DB dump is about 3GB plain text, but same story, box sits at 5-15% most of the time.

[–] AsudoxDev@programming.dev 8 points 23 hours ago (2 children)
[–] eskuero@lemmy.fromshado.ws 8 points 23 hours ago (1 children)

Put up some docker stats in a reply in case you missed it on the refresh

[–] AsudoxDev@programming.dev 7 points 23 hours ago

Checked it out, thanks.

[–] just_another_person@lemmy.world 0 points 20 hours ago

These stats are fine and all, but storage and network is what's going to get you in the end if you open it up to anyone and everyone and it becomes popular.

[–] mesamunefire@lemmy.world 8 points 19 hours ago* (last edited 19 hours ago)

I have one running on the equivalent of a pi. It works no problem. The biggest issue is the constant io and network traffic but it's not terrible.

I wish there was a only poll once every x amount of time instead of the constant polling, but it's a good solution. I use lemmy.world as the main account and the other account when I need to post under my real name with some projects I run. Plus it makes for a good development instance since I work on lemmy from time to time

[–] mbirth@lemmy.ml 18 points 1 day ago (2 children)

I did this for a while. However, after subscribing to several groups, there was constant disk activity and it ate network bandwidth. After two months I’ve stopped my server and went back to using a public instance.

[–] hendrik@palaver.p3x.de 22 points 1 day ago (1 children)

Sure. It's constantly pulling all the posts, comments and likes from potentially hundreds of instances and writing it to it's database to make it accessible to you once you decide to open Lemmy. It'll get updates from the network every few seconds (unless all the Americans are asleep) and that'll cause some database operations on your side.

Concerning the requirements: You'll need some form of server, and probably a domain name. If you're doing it at home, make sure you have a proper IP address and can forward ports. I run a Piefed instance, not Lemmy. It uses a few hundreds of megabytes of RAM and a bit of CPU and disk. It doesn't cache media files as Lemmy does so I can't comment on the storage size. It's 3GB for me.

[–] AsudoxDev@programming.dev 4 points 23 hours ago
[–] AsudoxDev@programming.dev 6 points 1 day ago (1 children)

How intensive was it exactly?

[–] mbirth@lemmy.ml 6 points 23 hours ago* (last edited 23 hours ago) (2 children)

I didn’t notice any big drops in network or CPU performance. Usually, because other network traffic had priority. But my server’s HDD constantly rattling along got me thinking that it wasn’t worth it. There are several other containers running on that box and I don’t have that much HDD activity with them.

[–] seang96@spgrn.com 4 points 23 hours ago (1 children)

There are postgres settings to reduce disk writes. There's a max size and a timeout to write to disk. By default these values are on the lower end I believe.

[–] mbirth@lemmy.ml 4 points 23 hours ago (1 children)

Yeah, but I didn’t want to fiddle with some custom settings. The same official postgres container works great with other apps.

[–] seang96@spgrn.com 1 points 22 hours ago

Yeah works good until its under load which federation does have. Matrix and Lemmy both got like 20GB of RAM dedicated to the database on my servers.

[–] AsudoxDev@programming.dev 2 points 23 hours ago