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

Selfhosted

40441 readers
867 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 2 years ago
MODERATORS
 

Hey all. Not sure if this is the right place to post this, please point me in the right direction if not:

So I only came here because of the exodus from reddit, but I'm pumped to see this community and all this technology people have been making. It's like a return to the old-school, user-operated internet instead of the big awful silos that have been dominating the landscape since the early 2000s. I'm in.

So quick question, are there plans or projects in the works for distributed hosting (making it easier for the users to take up the load of storing and hosting content so the instance operators aren't stuck with the hosting costs)?

I ask because I'd like to work on a project to implement this, as I feel it'd be a massive further step forward. I'm not sure though if there's anything existing I should be trying to get up to speed on or if I should be thinking in terms of starting my own project if I want to be working on it.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 1 year ago (1 children)

Anyone can make another instance, but it doesn’t really alleviate any of the stress from another instance.

This is inaccurate. If you run your own instance... and have 20 users. That's 20 users that aren't hitting the main instance. One copy of the content is transmitted from the primary instance to your instance... Those 20 users are then hitting your instance. So instead of the main instance serving 20 people it's serving to one copy of the content. That is a 20 fold savings in bandwidth, cpu, and ram. The only thing that isn't saved is disk capacity... since the origin server needs to serve all the content on demand.

Now the 1-2 user instances, yes there's not much savings there. But once you get to 5-10 it's already a better deal.

[–] [email protected] 3 points 1 year ago (1 children)

My wording was poor. I ment that currently there is no way to contribute to reducing stress on an instance. Making your own instance might help prevent the problem from getting worse, but it is not the same as adding more cpu power or ram to an instance. If a instance is maxing out on it's CPU power, currently there is no way to allow other people to help disperse the current load.

On a slightly tangential point, I am not sure how sustainable it is to increase the number of possible users by increasing the number of instances. It is already a frustrating process finding the right instance to join. So imagine when there is 1 instance for every 100 users. With 100k users that is 1000 different instances to sort through. I think there needs to be better ways to scale Lemmy, especially the amount processing power it requires. Lemmy.ml will only be able to scale so big on a single vps instance, or even physical server.

[–] [email protected] 4 points 1 year ago

With 100k users that is 1000 different instances to sort through.

Why would you sort through instances? The communities you want to interact with are still on the big instances... Just let the federation do the talking rather than directly communicating to the instance.

I see what you mean with the other point though. In that case people need to step off the lemmy.ml instance and move somewhere else to lighten the current load.

Based on figures I've seen from other instances though it doesn't take all that much cpu/ram to handle a metric boatload of users. The issue seems to be postgres tuning(which could be storage latency/bandwidth) and storage space.