this post was submitted on 11 Jun 2023
18 points (100.0% liked)

Asklemmy

43963 readers
1700 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy πŸ”

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~

founded 5 years ago
MODERATORS
 

I'd like to contribute to the Lemmy community. I've been running my own private Linux servers for more than 25 years for things like email (years ago before all the spam), and as file servers, backup, etc. It's an old, not very powerful computer, running Ubuntu server, in a corner in my house. Is it worth running a Lemmy instance on such a machine? I suppose there'd also be issues of how much data is going in and out, and how that would impact my internet cable usage. Thoughts?

top 19 comments
sorted by: hot top controversial new old
[–] heartlessevil@lemmy.one 4 points 1 year ago* (last edited 1 year ago) (2 children)

Lemmy is very lightweight due to being written in Rust. I think you won't have as much problems with the CPU as with the networking and bandwidth. It's hard to host a reliable site from your home, usually requiring dynamic DNS, port forwarding, and very strong firewalling. The bandwidth usage is probably minimal if you decide to host images on separate servers like imgur, but still could be significant.

[–] Dalinar@lemmy.nz 1 points 1 year ago

The problem with scale is going to be the database rather than the language / framework it's written in.

[–] CaptManiac@lemmy.sdf.org 1 points 1 year ago

Maybe I'd limit the number of people to around five to see what the usage was like. It's sounding like a fun weekend project now.

[–] mrmanager@lemmy.today 3 points 1 year ago

I think if you want to bring value, start contributing in the tech support communities also. Lots of technical questions, specially about email and hosting Lemmy in ways that are more complicated than having it's own host.

Your skills would be very valuable there. :)

[–] slashzero@hakbox.social 3 points 1 year ago* (last edited 1 year ago) (3 children)

I'm running my instance on 2 cores, 2GB of RAM. Of course I'm the only one on there at the moment, but it's running great, and I think it might even be fine with a single core.

As other have said, if you are planning to use it for your own "user's home instance," that should be fine. I've read a few people are running their instances on Raspberry PIs, which is pretty neat. While I have one I could use, I opted to setup a new droplet in DigitalOcean instead (I also run my own servers like you). A 2 core / 2GB RAM / 50GB SSD disk droplet on DigitalOcean is about $18 (USD) a month, while a single core droplet is about $12 (USD) per month.

If you plan to run an instance for others to use, be aware the federation is going to be chatty on your home network, and could impact other devices on your network. Probably not ideal, which is why I opted for a droplet in DigitalOcean instead.

[–] mike@reddthat.com 3 points 1 year ago (1 children)

Any recommended guides? I consider myself pretty savvy with tech as a software engineer, but I’d really like some sort of docker image to just spin up on my unraid server. I’m pretty lazy playing the whole sys admin role…

[–] slashzero@hakbox.social 1 points 1 year ago (1 children)

I'm not familiar with unraid.

I used the documentation over on join-lemmy.org to setup my instance, on ubuntu. main docs: https://join-lemmy.org/docs/en/administration/administration.html

Here are the docker specific instructions: https://join-lemmy.org/docs/en/administration/install_docker.html

[–] mike@reddthat.com 1 points 1 year ago

Thanks a bunch!

[–] CaptManiac@lemmy.sdf.org 2 points 1 year ago

It did cross my mind if I could have one of my raspberry pis run it. Actually, if it is possible I'd do on an Odroid N2+. Hmm...

[–] KonQuesting@lemmy.sdf.org 2 points 1 year ago (1 children)

How much headroom do you have left on that? I'm considering starting up a public instance and would love to get an estimate for per-user workload on a federated instance.

[–] slashzero@hakbox.social 5 points 1 year ago (2 children)

With just me on the system, CPU is barely ever over 2 -3%. Memory usage looks fine. You know what? Let me post some graphs for the past 24 hours, which, I've pretty much been on here for 24 hours straight. Again, I'm the only user on my instance.

[–] ndr@lemmy.world 3 points 1 year ago

Super cool, thanks

[–] KonQuesting@lemmy.sdf.org 1 points 1 year ago (1 children)

Awesome, this is super helpful! I'd be using a very similar setup. It might be best to start small, invite a couple people on, and see how that memory scales. I'll be avoiding any auto-scaling unless it becomes a much bigger project.

[–] slashzero@hakbox.social 1 points 1 year ago

Well, ideally each service would have their own dedicated resources to begin with. But, given all of the lemmy services + Postgres are running on 2 cores with 2GB of RAM, that's pretty impressive.

Anyway, autoscaling doesn't necessarily solve scaling issues without a lot of thought and planning. It's not always as simple as throwing more hardware at the problem, as I'm sure you already know.

[–] ndr@lemmy.world 3 points 1 year ago (2 children)

If you want to use it just for yourself (thus removing the load of your own usage from the other public instances), sure.

If you intend to open it up for many users, you need to consider whether you're capable of managing that kind of load. Lemmy is relatively lightweight though.

On my post here, you can find some informations about other people running an instance in the comments.

[–] CaptManiac@lemmy.sdf.org 2 points 1 year ago

Excellent post, thanks. It looks like one of the bigger issues is with images, since they're significantly larger than text. I wonder if it's possible to disable image uploads, and just require links.

[–] Dalinar@lemmy.nz 1 points 1 year ago (1 children)

Wouldn't the federation syncing process use much more resources across the network than 1 user browsing sometimes?

[–] ndr@lemmy.world 1 points 1 year ago

Maybe I’m wrong, but you would be fetching the content from all the other instances. The other instances would only need to fetch your content if someone searches for the communities you created. So, if you mostly post and comment on existing communities, the other instances wouldn’t have to do any extra work.

[–] hsl@wayfarershaven.eu 1 points 1 year ago

I've understood Lemmy is pretty light on the system, at least until the number of users starts to ramp up - from that end, you're good to go! I personally went with a virtual server on Hetzner because I didn't want to let this kind of data into my private network.

load more comments
view more: next β€Ί