I kind of want to self host a lemmy instance. What are the requirements for a single user lemmy instance?

  • Eskuero@lemmy.fromshado.ws
    link
    fedilink
    English
    arrow-up
    48
    ·
    1 month ago

    Depends on how many communities do you subscribe too and how much activity they have.

    I’m running my single user instance subscribed to 20 communities on a 2c/4g vps who also hosts my matrix server and a bunch of other stuff and right now I mostly see peaks from 5/10% of CPU and RAM at 1.5GB

    I have been running for 15months and the docker volumes total 1.2GBs A single pg_dump for the lemmy database in plain text is 450M

    • Max-P@lemmy.max-p.me
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 month ago

      I subscribe to a few more communities and my DB dump is about 3GB plain text, but same story, box sits at 5-15% most of the time.

      • ture@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 month ago

        How much storage did it use overall? I had one instancs running on a 40gb HDD VM and it ran out of disk space in like 2,5 months. From what I’ve seen it was a mixture of 66,6/33,3 postgres/ images and other media. Didn’t had the time to learn how to clean it up and prevent it from happening again after a month. All happens like may to August last year.

  • mbirth@lemmy.ml
    link
    fedilink
    English
    arrow-up
    21
    ·
    1 month ago

    I did this for a while. However, after subscribing to several groups, there was constant disk activity and it ate network bandwidth. After two months I’ve stopped my server and went back to using a public instance.

    • hendrik@palaver.p3x.de
      link
      fedilink
      arrow-up
      26
      ·
      1 month ago

      Sure. It’s constantly pulling all the posts, comments and likes from potentially hundreds of instances and writing it to it’s database to make it accessible to you once you decide to open Lemmy. It’ll get updates from the network every few seconds (unless all the Americans are asleep) and that’ll cause some database operations on your side.

      Concerning the requirements: You’ll need some form of server, and probably a domain name. If you’re doing it at home, make sure you have a proper IP address and can forward ports. I run a Piefed instance, not Lemmy. It uses a few hundreds of megabytes of RAM and a bit of CPU and disk. It doesn’t cache media files as Lemmy does so I can’t comment on the storage size. It’s 3GB for me.

      • mbirth@lemmy.ml
        link
        fedilink
        English
        arrow-up
        6
        ·
        edit-2
        1 month ago

        I didn’t notice any big drops in network or CPU performance. Usually, because other network traffic had priority. But my server’s HDD constantly rattling along got me thinking that it wasn’t worth it. There are several other containers running on that box and I don’t have that much HDD activity with them.

        • seang96@spgrn.com
          link
          fedilink
          English
          arrow-up
          5
          ·
          1 month ago

          There are postgres settings to reduce disk writes. There’s a max size and a timeout to write to disk. By default these values are on the lower end I believe.

          • mbirth@lemmy.ml
            link
            fedilink
            English
            arrow-up
            5
            ·
            1 month ago

            Yeah, but I didn’t want to fiddle with some custom settings. The same official postgres container works great with other apps.

            • seang96@spgrn.com
              link
              fedilink
              English
              arrow-up
              1
              ·
              1 month ago

              Yeah works good until its under load which federation does have. Matrix and Lemmy both got like 20GB of RAM dedicated to the database on my servers.

  • mesamune@lemmy.world
    link
    fedilink
    English
    arrow-up
    8
    ·
    edit-2
    1 month ago

    I have one running on the equivalent of a pi. It works no problem. The biggest issue is the constant io and network traffic but it’s not terrible.

    I wish there was a only poll once every x amount of time instead of the constant polling, but it’s a good solution. I use lemmy.world as the main account and the other account when I need to post under my real name with some projects I run. Plus it makes for a good development instance since I work on lemmy from time to time

  • HamSwagwich@showeq.com
    link
    fedilink
    English
    arrow-up
    7
    ·
    edit-2
    1 month ago

    Raspberry Pi will handle it.

    It’s all about the storage space. Processing requirements are minimal.

  • Findmysec@infosec.pub
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 month ago

    You really only need Storage. Backblaze B2/Wasabi/Cloudflare R2 if you can afford it, or just get a Hetzner storage box, attach it to the VM, run Minio and off you go.

  • Mio@feddit.nu
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 month ago

    I am wondering if it is that good to have single instance for feddiverse. It hurt feddiverse servers to send to yet another location, or is it more like p2p so it scales well?