Just started self hosting this instance. Nothing on the docs mentioned anything about storage considerations.

257 points

This is lemmy.world after 4 weeks:

58G	pictrs
34G	postgres
permalink
report
reply

Considering this is going to be around a 5 user instance at most I think I’ll be good for awhile. Thanks!

permalink
report
parent
reply
57 points
*

im running 50 users right now, subbed to A LOT of communities, seeing db growth of about 100mb per day.

permalink
report
parent
reply
19 points

That seems high when you extrapolate that to 10000 users, like a larger instance might have.

permalink
report
parent
reply
14 points

Question if you know: does a lemmy instance have to be publically accessable to work? Like, if I make an instance on my homelab can the instance “fetch” content and serve it faster locally? Could I reply to a post and have others see it? Etc

permalink
report
parent
reply
1 point

wondering this also! wouldnt it require a domain for your account though?

permalink
report
parent
reply
17 points

Now I wonder how viable it would be to support video hosting. The answer is almost certainly “God no!”

permalink
report
parent
reply
1 point

It is viable through other hostings

permalink
report
parent
reply
16 points

Honestly, Less than I thought!

permalink
report
parent
reply
15 points

Interesting, I thought it would be waaayyy more

permalink
report
parent
reply
17 points

At the end of the day the vast majority of what needs to be saved is text. If media content is embedded, the the server just has to save the path to the file not the file itself.

permalink
report
parent
reply
11 points

Wow, that is surprisingly not bad given the size of the instance!

permalink
report
parent
reply
11 points
*

Yeah lemmy seems to use just about nothing for data storage.

permalink
report
parent
reply
4 points
*

Feels like this will benefit from some sort of fuzzy deduplication in the pictrs storage. I bet there are a lot of similar pics in there. E.g. if one pic or a gif is very similar to another, say just different quality or size, or compression, it should keep only one copy. It might already do this for the same files uploaded by different people as those can be compared trivially via hashing, but I doubt it does similarity based deduplication.

permalink
report
parent
reply
62 points

This is my small instance with way fewer users than lemmy.world.

11G	pictrs
5.2G	postgres
permalink
report
reply
9 points

Out of curiosity, how long has your instance been up? Just want to get a sense of how fast storage is increasing for you.

permalink
report
parent
reply
4 points

23 days.

permalink
report
parent
reply
7 points

How has your Lemmy experience been on a self hosted instance? I’m currently using lemmy.world and it’s very error prone, would self hosting reduce those errors at the expense of anything? Does federation take long or do you find you’re getting federated content quickly enough?

permalink
report
parent
reply
13 points

The experience has been pretty good, to be honest. No instability, easy updates, etc. I find federated content quite quickly, because I use this script to populate the “All” feed.

permalink
report
parent
reply
5 points

Thanks for the script!

permalink
report
parent
reply
4 points

Oh this is very cool

permalink
report
parent
reply
7 points

You won’t get any old content, so that’s a downside. You’ll only get content after you start federating. Unless someone votes or comments on old content.

Other than that the only downside is spending time maintaining and updating it.

permalink
report
parent
reply
28 points

My instance has 13 users, and has been up for 2 months now:

1.5G    ./pictrs
3.4G    ./postgres
permalink
report
reply
27 points

Is there any way to purge old data?

permalink
report
reply
35 points

I really hope it doesn’t get purged if lemmy is to be a Reddit replacement. A lot of the value Reddit had was obscure knowledge and making google searches actually usable.

permalink
report
parent
reply
21 points

I think as long as the original community the post is in doesn’t purge the data, it’s fine for other instances to purge if necessary.

permalink
report
parent
reply
3 points

Exactly, when dealing with big data, you need a strategy to archive old data. You can’t just store everything in one DB. Smaller instances may not feel like keeping all the date from all the time. Even big instances should have a mechanism to move old data do different databases.

permalink
report
parent
reply
4 points

Are you planning on donating to instances that don’t purge old data?

permalink
report
parent
reply
24 points

476M ./postgres 1.1G ./pictrs

After 3 weeks

permalink
report
reply
3 points

How many users?

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

  • 5.3K

    Monthly active users

  • 3.8K

    Posts

  • 83K

    Comments