A temporary fix for overloaded lemmy.ml servers, via THAIO (Throw-Hardware-At-It Optimisation)...
Nothing more permanent than a temporary solution
Sadly there's only one server since Lemmy doesn't support horizontal scaling (hopefully for now only)
This sounds like something we need. I'm sure it's much harder to implement than I imagine (I'm not a programmer, just a geek). Lemmy needs more devs.
Unplug it real quick so we can find out
lemmy.ml
I actually ran a moderately active (like 20,000 hits a day) small business site from a laptop for a couple years. Of course one of the first thing I did was put a "SERVER DO NOT SHUT DOWN" sticker on it, and set the power settings so closing the lid did not shut down or sleep the computer. It was a Dell 7000 series with 16GB IIRC, it did great.
Not advertising here, but with this low traffic you could be in a permanent free tier with AWS with all the availability guarantees. It doesn't work with EC2, but for serverless solutions (ApiGateway, Lambda, DynamoDB) they have something like "we start charging after 1M calls per month" (don't quote me on this exact number). I have a couple of pet projects working this way
Bro that's the Reddit server.
Old shitty laptops make good servers. They have a built-in UPS.
I have an old Raspberry Pi 1 lying around. Should I spin up my own instance?
I'm actually thinking about doing this exact thing with my own rpi b rev2 from 2012. I'm not sure it'll even run a kbin/Lemmy instance though
Yo, how'd you get in my home lab?
This looks like my old laptop - Lenovo Y510P. Even down to the slight abrasion below the mousepad from the user wearing a watch with a metal band.
It had SLI GPUs in a laptop through the ultra bay. It was a beast for about 20 minutes until the heat built up.
Just pop the magnet out of the lid.
This is the correct, cross platform solution. It works on all operating systems!
Please use an ethernet cable, you gonna need to keep that connection spotless and WiFi are vulnerable no matter which protocols, better turn it off.
If I may also add install a custom firmware on your router(Rec. Tomato series most updated)/hardware firewall(Rec. pfSense) with a VPS if the network is used for other means, they will help you in the long-term.
With great power comes great responsibility.
The server stopped serving?
I have a minecraft server running on a laptop like this. Sadly I don't have any friends that want to play minecraft right now ):
Come join us @ https://lemmy.world/c/oldschoolminecraft
No! Join us: https://lemmygrad.ml/post/693339
Sorry I don't speak with communists
You're missing out, but hey whatever you like
tankies != communists. communists are cooler (:
laughs in "stay awake even if lid is closed" settings in linux.
I used to work for a notebook manufacturer, and it was a non-trivial part of the cooling strategy that the lid is open under load.
I hope they've changed, but megacorps usually don't.
Even Windows 98 has that setting
What specs do I need to run a lemmy instance for, say a small group of 1000 people? Cpu, Ram, Amount of Electricity needed, Minimum Internet Speed, Storage? Assuming that I would be federating with the top lemmy instances.
This may help: https://sh.itjust.works/post/4706 This real answer is that it depends on how many online users there are at the same time and how much data is saved.
I think it would be possible to run it on that laptop. But the only way to find out is if you try for us!!
I've heard of people running (Mastodon, not lemmy, but it's probably comparable) off a raspberry pi, but I doubt that'd be feasible for more than a few users. I might set that up for self-hosting though
Programmer Humor
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.