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

  • RuudM
    link
    fedilink
    English
    2711 year ago

    This is lemmy.world after 4 weeks:

    58G	pictrs
    34G	postgres
    
      • manitcor
        link
        fedilink
        English
        57
        edit-2
        1 year ago

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

          • terribleplan
            link
            fedilink
            English
            67
            edit-2
            1 year ago

            It’s all about how many communities your user(s) subscribe to since your instance basically acts as a mirror for those.

            My instance has been running for 23 days, and I am pretty much the only active local user:

            7.3G    pictrs
            5.3G    postgres
            

            edit: I may have a slight Reddit Lemmy problem

            • @Pleonasm@programming.dev
              link
              fedilink
              English
              91 year ago

              So if you’re the only user (let’s assume for ease) then, that represents all the updates (posts, comments, votes) from each community that you are subscribed to?

              • terribleplan
                link
                fedilink
                English
                161 year ago

                Yeah, and I purposely subscribe to (or sometimes have a dedicated “federation helper bot” account I run subscribe to) most of the most popular communities on the most popular instances so I can get a decent sampling of what’s going on in the fediverse on the “All” feed. So I assume my storage usage is maybe a bit higher than what an “average” single-user instance may be…

                • @bdonvr@thelemmy.club
                  link
                  fedilink
                  English
                  41 year ago

                  lmao same here. I have a spare account that I use to sub to everything worth subbing to. I haven’t automated it yet though.

                • @ipkpjersi@lemmy.one
                  link
                  fedilink
                  English
                  31 year ago

                  Ooh, that’s a really good idea, I need a federation helper bot/account when I start self-hosting a Lemmy instance!

            • Alexander Kehr
              link
              fedilink
              English
              31 year ago

              Do you also post stuff? I mean my instance is only about an hour old, but I’ve subscribed to some communities, yet I don’t see the picture service consuming the S3 storage I’ve configured

              • terribleplan
                link
                fedilink
                English
                141 year ago

                Lemmy caches every thumbnail of every post for like a month or something using Pictrs, so that storage will eventually hit a sort of equilibrium and start growing much more slowly (only reflecting post/thumbnail volume during the cache time).

                Between profile images, community banners/icons, post images etc. there are probably a few dozen images that will be sticking around for the long haul at the moment.

              • @bdonvr@thelemmy.club
                link
                fedilink
                English
                51 year ago

                Your instance only caches thumbnails, so it won’t take much space. The full images are served from the remote instance. So you basically only store whatever your users upload.

          • ChickenBoo
            link
            fedilink
            English
            241 year ago

            It won’t scale linearly. A lot of those users will be subscribed to subs the instance is already replicating. It would only be new subs that would add to the growth.

      • Dran
        link
        fedilink
        English
        161 year ago

        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

    • @HappyHam@lemm.ee
      link
      fedilink
      English
      181 year ago

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

      • GatoB
        link
        fedilink
        English
        11 year ago

        It is viable through other hostings

    • lightrush
      link
      fedilink
      English
      6
      edit-2
      1 year ago

      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.

    • MrJukes
      link
      fedilink
      English
      11 year ago

      That’s not super terrible given the size of lemmy.world.

  • Netto Hikari
    link
    fedilink
    English
    631 year ago

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

    11G	pictrs
    5.2G	postgres
    
    • @Molecular0079@lemmy.world
      link
      fedilink
      English
      91 year ago

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

    • Kushan
      link
      fedilink
      English
      71 year ago

      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?

      • Netto Hikari
        link
        fedilink
        English
        131 year ago

        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.

      • @bdonvr@thelemmy.club
        link
        fedilink
        English
        81 year ago

        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.

    • @holycrap@lemmy.world
      link
      fedilink
      English
      361 year ago

      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.

      • @Molecular0079@lemmy.world
        link
        fedilink
        English
        221 year ago

        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.

        • @punio7@lemmy.world
          link
          fedilink
          English
          31 year ago

          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.

      • KaynA
        link
        English
        41 year ago

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

  • key
    link
    fedilink
    English
    15
    edit-2
    1 year ago

    Depends. If you have a lot of users posting a lot of pictures and you use pictrs out of the box config, then a lot. If you are just running a few users with finite communities being synced then a lot less. The number is going to vary a lot as lemmy grows and gets older so hard to document realistic expectations. But docker images are probably going to take up more disk space than actual contents unless you get quite big. I just threw my PG volume into a tgz to move servers and it’s less than a gig.

  • Tugg
    link
    fedilink
    English
    141 year ago

    Small instance with about 3 users and myself online for about 2 weeks.

    pictrs   930M
    postgres 1.4G
    
  • @holycrap@lemmy.world
    link
    fedilink
    English
    111 year ago

    Unless they changed all of the comment and post ids to bigints that’ll probably bring the site down before it runs out of storage. In defense of the lemmy developers they have been receptive to feedback, so I don’t think it’ll take long for that to be fixed if it hasn’t already.

  • hitagi
    link
    fedilink
    English
    91 year ago

    My instance eats up almost 100MB everyday. It mostly depends on what your users subscribe to. It was barely growing on my first few days until I invited a couple of friends over to try it out.

  • KaynA
    link
    English
    7
    edit-2
    1 year ago

    My instance dormi.zone has been running for around 3½ weeks now, has a 3-digit amount of users and hosts a community with little more than 1000 subscribers. Here’s how much storage it currently takes up:

    • 4.9 GiB pictrs
    • 6.2 GiB postgres

    In the default Ansible configuration, storage will mostly be accumulated by log files that are automatically generated by Docker and deleted whenever you restart the Docker containers.

    • AFK BRB Chocolate
      link
      fedilink
      English
      101 year ago

      I disagree. One big hunk of value of a place like this is being able to look back at old threads. How many times did people say they always put “Reddit” in front of their Google searches to get the information they were looking for? This could be the same.

      • NaN
        link
        fedilink
        English
        41 year ago

        That’s a good reason for an instance to put “lemmy” in its url too, I imagine. Search engines are already returning Lemmy results for things.

        • AFK BRB Chocolate
          link
          fedilink
          English
          11 year ago

          It’s really not, at least for the text part. Text posts and comments take almost nothing and storage continues to get cheaper.

          Mainstream platforms are selling out because they’ve always had others and shareholders who ultimately want to make money.

    • @Molecular0079@lemmy.world
      link
      fedilink
      English
      31 year ago

      Info is still useful for people doing google searches. It would be nice to be able to find common troubleshooting tips on Lemmy, etc.

  • Philip
    link
    fedilink
    English
    61 year ago

    After hosting my own instance with just me for ca. 2 weeks:

    1.99Gi pictrs

    5.21Gi postgres

  • @GustavoM@lemmy.world
    link
    fedilink
    English
    3
    edit-2
    1 year ago

    I haven’t tried it out just yet, but I’d say… a whole lot. Depending of how popular your instance is, but… your PC will be hammered in any way.