Is there any benefit to host my own instance?

70 points

I run my own instance, the benefit is privacy and reliability. Everything is controlled on your own server. You also aren’t reliant on someone else running an instance that could go down at any time, either permanently or an outage. Been a problem with Lemmy.ml recently.

permalink
report
reply
35 points

You also aren’t reliant on someone else running an instance that could go down at any time, either permanently or an outage.

You have to worry about it yourself though.

permalink
report
parent
reply
20 points

A balancing act for sure. I’m torn on the topic. With some much excitement right now but so little history there’s a lot of uncertainty where to “plant your flag”. Part of me wants to setup my own instance simply so I maintain control of my identity should .world suddenly disappear. On the other hand now I have the responsibility of making sure I don’t make myself disappear. The mental debate will continue.

permalink
report
parent
reply
8 points

I think for now it’s so early it doesn’t matter all that much. Just have fun! You can make multiple accounts so why not

permalink
report
parent
reply
1 point

Yea but if you host with a major cloud server provider you’re basically having 100% uptime because they very very rarely go down and so the only issues would be stuff you’d have to deal with.

permalink
report
parent
reply
11 points

I was asking myself a question, if you comment like you did here Is it saved in the server on which the original post is, or is it saved on your server?

permalink
report
parent
reply
11 points

Kind of both. His server has a mirror of the community. When he comments it gets saved on his server and the his server communicates with the original server. In turn the original server also communicates his comment with other federated servers.

permalink
report
parent
reply
3 points

If data is migrated from server to server, as the community grows in size, the data to be maintained on each server also grows in size? Also i’ve seen some servers allow the creation of new users/communities, but some don’t… whats the point of that if the data is just replicated anyway?

permalink
report
parent
reply
1 point

If data is migrated from server to server, as the community grows in size, the data to be maintained on each server also grows in size? Also i’ve seen some servers allow the creation of new users/communities, but some don’t… whats the point of that if the data is just replicated anyway?

permalink
report
parent
reply
8 points
*

I believe it is saved first on the instance you’re signed up for, then gets pushed around the network using the Activity pub protocol. So it eventually ends up being stored across many instances of it has far enough reach.

permalink
report
parent
reply
8 points

How is your RAM/storage usage? I’m interested in setting up my own instance (no communities, just a username that will always be here) but don’t want to upgrade my VPS again. I already had to do that spinning up a Mastodon server.

permalink
report
parent
reply
19 points

I’m up to about 300MB of disk usage after a day of hosting my own. Curious to see how it grows.

permalink
report
parent
reply
14 points

haha better than the 12GB and rising of my single-user Mastodon instance. And this is with deleting my media cache every night.

permalink
report
parent
reply
5 points
*

The pictures folder on my instance is at 1.3GB after two days. It’s just me and my friend. About how many communities are you subscribed to?

permalink
report
parent
reply
2 points

Up to 400MB after two days here. I took a look at the code and it looks like Lemmy keeps all ActivityPub JSON for 6 months. It would be nice if it was possible to shorten that.

I’m still happy that I’m hosting my own instance, but I hope this thing doesn’t get too big!

permalink
report
parent
reply
12 points

For personal use, even a Raspberry Pi is sufficient.

permalink
report
parent
reply

My raspberry pi 4 is using 810mb of RAM and 11gb of file system space.

permalink
report
parent
reply
1 point

That’s interesting to read. Could an instance be added to an existing setup? (Debian OS)

permalink
report
parent
reply
53 points
*

I did. The benefits as I see them:

  • I can still use Lemmy if the instance I would have used as my “home instance” ever went down.
  • Even if a public instance doesn’t go down, all this extra load is making strange bugs surface that I don’t encounter (I still have the live refresh bug everyone has, but not this one).
  • I have full control over my account.
  • If I ever want to get to customizing my UI later, I can.
  • Content I create originates on my instance, and I have full control over it. I can’t stop other instances from caching what I post publicly, but this still gives me more data governance.
  • I can curate my “All” tab to only show stuff I actually want to see, instead of trying to figure out how to block communities (not sure if that’s possible for regular users).
  • I get a custom domain which I think is pretty neat.
permalink
report
reply
7 points

Regular users can block communities and instances both.

permalink
report
parent
reply
6 points

I wonder if it’s possible to migrate those Reddit datasets and import them into our own Lemmy instance

permalink
report
parent
reply
6 points

I’ve wondered the same. I know I’m not the only one with the 1.8 TB Reddit data dump. It would be cool to import all that into a Lemmy instance.

permalink
report
parent
reply
28 points
*

From what I’ve seen and read, server to server traffic is less taxing on instances than client to server. So even if your instance is JUST you, it would be your instance talking to everything else so it would have some net benefit on the federation. But it would take a lot of users self-hosting solo instances for this to help in any noticeable way, I’d think.

There is certainly no downside to running a solo instance, if you’re even slightly interested I would say go for it!

permalink
report
reply
10 points

It’s only less taxing if it’s multiple ppl on an instance.

If every solo user spun up an instance just for themselves there wouldn’t be a benefit over all those users just signing up directly to an existing instance.

Eg 5 users on instance b trying to access instance a Is better then 5 users each with their own instance trying to access instance a.

permalink
report
parent
reply

Wouldn’t it still be a bit less taxing even with only one user? If I’m not mistaken then your instance only initially requests a community/post/comment from another instance when you specifically search for it. After that your server gets updates through activities pushed by the other instance. So if you refresh a post multiple times those requests only go to your instance. It somewhat acts like a cache, while the other instance can push activities at it’s own pace instead of being hammered with requests. Of course multiple users per instance would still be better.

permalink
report
parent
reply
1 point

It acts like a cache, yes, but now the other instance has to send a push to keep every user’s instance updated, whereas if there were only a few instances with lots of users only a few instances needed to get updated.

permalink
report
parent
reply
2 points

If every solo user spun up an instance just for themselves there wouldn’t be a benefit over all those users just signing up directly to an existing instance.

Not quite true… There’s a ton of sql queries that go on to show you the correct content for your user. Showing the correct subscriptions, applying the correct “bans” etc… Further sessions management of the user logging in itself… Direct messages, inbox management… etc…

Just the raw content being sent to sync is just minimal text data that’s effectively broadcasted. The stress of that is virtually nothing in comparison.

The break even is that a ton of data might sync that you never look at… but it’s a broadcast of sorts. So that’s a bit of a non issue.

permalink
report
parent
reply
5 points

I would doubt this. Your server is essentially another client

permalink
report
parent
reply
28 points

I think it’s a matter of personal preference.

I’ve been running my own Mastodon instance for several months now, and I’ve enjoyed it. I don’t have to rely on someone else, either, which is nice. I’m in control of everything on that instance.

As for Lemmy, I just started my own instance today, and am currently writing you from it. What made me decide to setup my own instance was some performance issues I was seeing with Lemmy.world, although that might have been an UI problem. Anyway, I enjoy doing this stuff, so I’m running my own instance for the sake of doing it.

On the flip side, it’s more expensive and time consuming, and I’m the one who has to worry about backing up data, etc. Like I said, though, I enjoy doing it, so it’s no big deal.

permalink
report
reply
4 points

As someone who likes having control over their data and especially backups, and someone who normally enjoys self-hosting things, I honestly might do it. I’m not sure if I’d want to host a lemmy instance or kbin instance though, since I know they all federate together anyway. I may also end up waiting until the software is more mature too before looking into it.

permalink
report
parent
reply
5 points

That’s awesome! Running my own social media instances has become a hobby for me.

Having my own Lemmy instance has felt fairly seamless versus using Lemmy.world, but there have been some kinks. For example, when attempting to subscribe to a new community, the server has to pull a bunch of data first. This takes several seconds, but the UI simply says “not found” – and then after several seconds, the UI updates with the community you want to follow. I figured this out by tailing the logs.

Also, the installation was pretty damn easy, especially when compared to Mastodon.

permalink
report
parent
reply
4 points
*

I’d maybe be interested in trying out self-hosting Mastodon at some point too, good to hear that Lemmy was easy to install though. I’m not too worried since I have quite a bit of Linux experience, I figure it probably won’t be too bad to setup whatever social media instances I’m interested in checking out.

permalink
report
parent
reply
3 points

Personally, I went with Lemmy because it seems to be quite a bit further along in it’s development. It also doesn’t look like kbin’s developer is recruiting much outside help, if you look at the repos of the two projects on GitHub/Codeberg, Lemmy has tons of contributions from people while kbin is mostly just the one guy with a few commits here and there. Not to mention that Lemmy’s way less of a resource hog because it’s written in Rust whereas kbin is implemented in PHP. Also, as far as I know federation is still currently broken on kbin.

permalink
report
parent
reply
2 points
*

The reason why I’d consider kbin is because I almost think I might prefer the interface, also I’m more of a PHP developer myself so that is tempting in and of itself too lol

I may wait a little bit before trying out either one tbh and maybe I’ll give both of them a try.

permalink
report
parent
reply
1 point
*

As someone that has spent the better part of the week mucking with it… the kbin build docs have multiple gaps in the documentation and are functionally broken unless you have some better understanding of the setup. I WAS able to get the system built, but could never get it online. Best i got was 500 errors where the UI was up but there was a break somewhere in Redis, Postgres, Nginx etc. All the logs were clean though. This was with the docker method and build from source method on both Ubuntu 22.04 and Debian 11 (which are what he specifically referenced)

Lemmy was much easier to setup using the ansible method. I have an instance online. Though im still working out the federation thing and some other kinks. I figured it would just reach out to Activity pub and federate with everyone but now it seems I have to build a static list…If if search for an instance i know exists I get a

404: couldnt_find_community

So there are some gaps but it seems much more mature. For example you cant mark your instance private AND have federation enabled. If you do that and restart the instance will fail to come up, but theres no warning or error in the UI.

I like the kbin dev better as people. But the lemmy code is definately more polished, even if the devs are turd sammiches.

permalink
report
parent
reply
4 points

I run my own Mastodon instance, but for Lemmy it seemed more logical to join an existing instance that aligned with my interests. I wouldn’t be adverse to abandoning my self-hosted Mastodon for a shared instance, but I would prefer a small instance run by and for people I know, rather than one of the huge ones.

permalink
report
parent
reply
6 points

What might make you want to ditch your self-hosted Mastodon instance?

With Lemmy, I didn’t feel a need to pick any specific instance because I can follow communities from anywhere, and it seems to work pretty well.

One downside I’ve encountered with my own Lemmy instance is that post and comment history in the communities I follow begins when I started following them on my new instance. New posts and comments are federated my way, going forward, but I don’t have the ability to go back and view as much history as one would on lemmy.world or lemmy.ml, for example.

permalink
report
parent
reply
4 points

I have experienced the same with mastodon and pixelfed.

permalink
report
parent
reply
2 points

Basically just the hastle of maintaining and hosting it. My ideal situation would be an instance with a few people, where we can share some of the burden, and perhaps cost. But maybe that has its own headaches when there is a falling out etc.

There are also other drawbacks with your own Mastodon instance in terms of discovering new people, as a lot of those tools are geared towards the server scope, and Mastodon prohibits a full index search.

I actually don’t know what the Lemmy policy is on indexing, but a way to search the entire Fediverse (or at least large parts of it) would help tremendously in popularizing it, I think. I understand why indexing would be blocked, but that seems a lot like security by obscurity to me, which I don’t think works very well.

permalink
report
parent
reply
3 points

Can you tell me a bit about the process you went through to create your own instance? I’d like to make one myself.

permalink
report
parent
reply
7 points

You’re talking about Lemmy, right?

I provisioned an Ubuntu 22.02 server at Linode. I chose their 2 GB Shared CPU instance type. Once I configured the server to my liking, I ran through the Lemmy-Ansible instructions. (They have other methods, so check the documentation.)

Essentially, you install Ansible on your workstation. I’m on macOS and installed it via Homebrew. You then download their git repository, create the necessary configuration files, and then have Ansible configure the server. It was fairly simple.

permalink
report
parent
reply
3 points

I may go that route. I was wanting to host my own server but I feel like it would be easier to just use a cloud server

permalink
report
parent
reply
3 points

On the flip side, it’s more expensive

Can you go into more detail on this?

permalink
report
parent
reply
12 points

Sure.

I run my own instance at a cloud provider, and thus have monthly expenses I wouldn’t normally incur, if I were using a public instance.

permalink
report
parent
reply
3 points

The fun part is that you can run it on the same server as your mastodon is already running with no additional costs.

permalink
report
parent
reply
2 points

Oh, gotcha. I guess if using a personal local server, then the only recurring cost would be electricity.

permalink
report
parent
reply
3 points

how much does your mastadon instance cost per month? what do you expect for lemmy?

permalink
report
parent
reply
4 points

I’m using Linode, and their prices are publicly available.

https://www.linode.com/pricing/

For Mastodon, I’m using the Linode 4 GB while the Lemmy server runs on the Linode 2 GB option. Both are under the Shared CPU pricing – not dedicated.

permalink
report
parent
reply
3 points
*

thanks for all of the information you’ve shared in this thread.

i was put off by the cost and effort involved in maintaining a mastadon instance when i looked into that a while back, but i’m glad to hear that lemmy could be cheaper.

permalink
report
parent
reply
1 point

I already have a nomad cluster in my homelab, running Lemmy is a no brainer.

permalink
report
parent
reply
25 points

I feel that speed is the biggest benefit. I was on kbin.social and in the beginning everything was fine, but after a while when they got more and more users it was terrible. Every second click led me to cloudflare sometimes even with the capcha.

On my own instance now since yesterday everything is so fast! I chose lemmy because it’s written in Rust and I have the feeling that it will be more resourceful and with less bugs than /kbin because of that ^^

permalink
report
reply
9 points

Yeah, I’m running on an instance of just me and my wife, biggest downside is needing to subscribe to communities before we get content, but its sooo much faster.

permalink
report
parent
reply
8 points

I almost think this is a blessing because you don’t get so overwhelmed with stuff you don’t care about and only see what you’re looking for. But yes the UI for it is not very good yet.

permalink
report
parent
reply
1 point

I’ve taken to just blocking the more popular communities I don’t care about, like sports stuff

permalink
report
parent
reply
3 points

Once I subbed to a few things now it seems my all feed gets content from servers and communities I’m not subscribed too. Just took a bit. Mostly from smaller foreign ones right now tho.

permalink
report
parent
reply
1 point

Once I subbed to a few things now it seems my all feed gets content from servers and communities I’m not subscribed too. Just took a bit. Mostly from smaller foreign ones right now tho.

permalink
report
parent
reply
1 point
*

Deleted, I figured out you were not conplaining, but responding to another comment

permalink
report
parent
reply

Selfhosted

!selfhosted@lemmy.world

Create post

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!

Community stats

  • 4.8K

    Monthly active users

  • 3.6K

    Posts

  • 81K

    Comments