this post was submitted on 06 Jun 2023
184 points (98.4% liked)
Asklemmy
43984 readers
751 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!
- Open-ended question
- 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.
- Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
- Not ad nauseam inducing: please make sure it is a question that would be new to most members
- An actual topic of discussion
Looking for support?
Looking for a community?
- Lemmyverse: community search
- sub.rehab: maps old subreddits to fediverse options, marks official as such
- [email protected]: a community for finding communities
~Icon~ ~by~ ~@Double_[email protected]~
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Any idea what hardware specs you need to run an instance? Like for 100 users, 1.000, 10k etc?
Or the hardware lemmy.ml runs on and the userbase?
It's still a little unknown at this time what you need to handle X number of users, beyond a few hundred. Beehaw.org is pretty open about what they're using though in their financial statements if you're curious, but there's of operational optimization being tried out to see what'll help.
The stack is: postgres, pictrs, lemmy (Rust), lemmy-ui (nodejs), and nginx. RAM usage isn't too bad, but so far I see CPU and disk I/O (pictrs) as the limitation. Websockets are being removed which was another hurdle - would cause nginx worker threads to max out and drop instances off.
I'm on a 6$/month droplet as a reference for my single user instance and I'm subbed to a boatload of communities. So far I'm not having problems, but I made a 2GB swapfile for safety if RAM somehow spiked. CPU usage for me tends to spike when a community is being loaded for the first time due to image processing, but otherwise things are pretty idle.
I'm looking forward to the increase in traffic tbh. I have setup a pretty beefy instance with a ton of monitoring on it so that hopefully after the wave I can create a nice write up on what it would take to scale lemmy in the future. I'll keep everyone updated with the results!
Yeah, this is a golden moment for those of us who like to learn from sudden heavy load on server software! There are not very many teachable moments like this out there, so I'm trying to soak everything up for work experience
I have an i-5 6core dell sitting so why shouldn't I spin up a node?
I'm mostly worried about maintenance and it breaking down one day, how do you deal with that in a good way?
Regular backups should do the job. It's all run in docker instances with mapped volumes, so you can just backup those contents regularly and roll-back worst case if things completely pooped out. Otherwise maintenance isn't really much worse than a normal webserver - great for learning Linux CLI if you're not already familiar.
No reason you shouldn't spin up a node though! The more the better - lets load spread out.
@[email protected] according to this comment
So that's 8 vCore and between 8-32GB RAM