For those who find it interesting, enjoy!

    • Ducks@ducks.dev
      link
      fedilink
      arrow-up
      11
      ·
      1 year ago

      Grafana is the most essential application in my job. I can use Notepad to code in a world without IDEs. I couldn’t keep a damn thing running in the real world without Grafana. And I’ve been forced against my will to use alternatives in the past.

        • Ducks@ducks.dev
          link
          fedilink
          arrow-up
          3
          ·
          1 year ago

          Basically brute force, I’m not great with it but I was the one on my team responsible for setting up our dashboards. I wrote the prometheus metric collection in our microservices and built the dashboards from that data.

          There are tons of free dashboards though for monitoring resources and such so a lot of things I use are just downloaded from the Grafana website. And the docs are good too. So looking at examples + documentation is how I learn. It would be helpful if I was better with math though.

  • jamesorlakin@lemmy.world
    link
    fedilink
    arrow-up
    82
    ·
    1 year ago

    It’s been very snappy today, nice work! Is it all under Docker Compose with the node handling Nginx and Postgres as well?

      • MrPoopyButthole@lemmy.world
        link
        fedilink
        arrow-up
        14
        ·
        edit-2
        1 year ago

        Why did you guys roll back the UI to .7 from .10? I enjoyed some of the UI improvements, but I guess there were some bugs?

        Edit: I see its back to .10 maybe I had a browser tab open from before that I never refreshed

  • Tygr@lemmy.world
    link
    fedilink
    arrow-up
    47
    ·
    1 year ago

    I can’t believe how fast you’ve managed to crowdsource and fix things on this instance. I haven’t seen many problems at all sharing comments and things.

  • Gubb@lemmy.world
    link
    fedilink
    arrow-up
    29
    ·
    1 year ago

    This is awesome! As a systems engineer for my day job, I love seeing stuff like this!

  • traveler01@lemmy.world
    link
    fedilink
    arrow-up
    28
    ·
    edit-2
    1 year ago

    31.2% load it’s damn fine considering how much attention Lemmy.world has been getting lately. Server is up for 3 weeks already so I guess that’s when you upgraded it?

  • FrostyCaveman@lemm.ee
    link
    fedilink
    arrow-up
    27
    ·
    1 year ago

    Damn that’s a huge chunk of (what looks like) a 64 core CPU there. Impressive!

    It’s cool it can aggressively cache that much. Although I am perplexed why one would have a swap file configured in this case? What does it give you here? Sorry not trying to be an elitist or anything just have no idea what advantage you get!

    • Ruud@lemmy.worldOPM
      link
      fedilink
      arrow-up
      20
      ·
      1 year ago

      To be honest I tend to use swap less and less. But this was in the build that Hetzner does and I didn’t remove it.

    • DoomBot5@lemmy.world
      link
      fedilink
      arrow-up
      13
      ·
      1 year ago

      If your application goes wild with RAM usage, a properly configured swap will make sure the underlying OS remains responsive enough to deal with it.

      • steventhedev@lemmy.world
        link
        fedilink
        arrow-up
        5
        arrow-down
        1
        ·
        1 year ago

        The OOM killer is usually triggered after it starts hitting the disk. Which means your system is unresponsive for a long time until it finally kills something.

        Using something like oomd can help trigger before it hits swap but then why are you using swap in the first place?

        The bigger issue is that the kernel sometimes ignores the swappiness and will evict code/data pages long before file cache even when set to 0 or 1. I’m still not sure if that was because of an Ubuntu patch or if it was an issue that’s been resolved in the years since I last saw this

  • remkit@lemmy.kya.moe
    link
    fedilink
    arrow-up
    25
    ·
    edit-2
    1 year ago

    How far do you see lemmy.world capable of scaling to? One thing I’ve been noticing is the centralisation of Lemmy users on a few top servers, surely that cannot be healthy for federation? What are your thoughts on this?

      • remkit@lemmy.kya.moe
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        Not entirely sure of what you are asking, but the only reason they need a clustered setup is simply because of their scale. Making the details of their setup public does not help with the issue I addressed, since in an ideal scenario, communities and users would be evenly distributed amongst the many Lemmy instances in the fediverse, making the need to do any sort of clustering for performance reasons unnecessary.

        • astral_avocado@lemmynsfw.com
          link
          fedilink
          arrow-up
          2
          ·
          edit-2
          1 year ago

          What I mean is if they post the specifics on how they setup a cluster of servers, other instance operators or people who want to start their own instance could more easily do so or just get off a single server configuration. No Lemmy instance should really be running on a single non-redundant box anyways, even if it’s only 2 small servers.

          • Ruud@lemmy.worldOPM
            link
            fedilink
            arrow-up
            6
            ·
            1 year ago

            We do run on 1 server, but we’ve now seen that Lemmy scales horizontally so the k8s path forward is open 😊 With all these latest improvements we can have a bit more users on the current box.

          • remkit@lemmy.kya.moe
            link
            fedilink
            arrow-up
            2
            ·
            1 year ago

            Not trying to be pedantic, but why do they have to do so? Why can’t people figure it out themselves? Also, why can’t Lemmy instances run on single non-redundant boxes? Most instance operators don’t have the budget of enterprises, so why would they have to run their Lemmy’s like enterprises?

            • astral_avocado@lemmynsfw.com
              link
              fedilink
              arrow-up
              2
              ·
              edit-2
              1 year ago

              Not trying to be pedantic, but why do they have to do so? Why can’t people figure it out themselves?

              Er, because we should all be working together to try to help Lemmy grow and be stable…? Because good-will and being nice and helpful to each other is intrinsically good?

              Also, why can’t Lemmy instances run on single non-redundant boxes? Most instance operators don’t have the budget of enterprises, so why would they have to run their Lemmy’s like enterprises?

              You can run on a single box, but a single problem will bring down your single box. This is a basic problem commonly discussed in DevOps circles.

              Multi-server or containerized deploys aren’t only achievable by enterprise level companies. For example, one reasonably priced server on most providers is like $20-40/month. Say a load balancer as a service is another $10-20, and a database server or database as a service is also like $20-$40. A distributed, redundant setup would be like 2 webservers, a database, and a load balancer so like, $70? Maybe add in another server as a file host if Lemmy needs it (wordpress does iirc), or an additional caching server at a cheaper cost. And then you have a more stable service that can handle usage spikes better and users are more likely to stay around.

              I’ve deployed clustered applications myself, I just haven’t looked into doing it with Lemmy and was curious if they had a run book or documentation.

              Edit: or you use kubernetes or kubernetes as a service like ruud is saying they might look into. Could probably get it at the same cost.

              • remkit@lemmy.kya.moe
                link
                fedilink
                arrow-up
                2
                ·
                edit-2
                1 year ago

                Er, because we should all be working together to try to help Lemmy grow and be stable…?

                I agree with this point, but I disagree with the context in which you mentioned, “They should post their clustered setup so others can replicate more easily”, right as a reply to my original comment asking how Ruud felt about the centralisation of users in a federated application. This should’ve been an entirely separate reply, or perhaps an issue on GitHub to the Lemmy authors.

                You can run on a single box, but a single problem will bring down your single box. This is a basic problem commonly discussed in DevOps circles.

                Again, I agree, but the context in which you mentioned it, basically suggests that everyone who runs single instance Lemmys are doing it wrong, which I disagree.

                Lowering the entry requirements is part of how we can get wide-spread adoption of federated software. Not telling people that they have to have at least 2 instances with redundancies or they are doing it entirely wrong.

                The bare minimum I would ask anyone running their own instance, is to have backups. They don’t need fancy load-balancers, or slaved Postgres database setups, or even multi-node redis caches for their instances of sub-thousand users.

                For example, one reasonably priced server on most providers is like $20-40/month. Say a load balancer as a service is another $10-20, and a database server or database as a service is also like $20-$40. A distributed, redundant setup would be like 2 webservers, a database, and a load balancer so like, $70?

                Seriously? That may be an acceptable price tag for a extremely public Lemmy host, like lemmy.world or lemmy.ml, but in no way should it be a reasonable price tag for the vast majority of Lemmy instances setup out there. Especially when most of them have sub-thousand users. $70/mo? That has to be a joke. You can easily host a Lemmy on a $5-$10 droplet for ~100 users.

                I’ve deployed clustered applications myself, I just haven’t looked into doing it with Lemmy and was curious if they had a run book or documentation.

                No offense, but you definitely seem like the kind of person to shill for cloud-scaling and disregard cost-savings.

                • astral_avocado@lemmynsfw.com
                  link
                  fedilink
                  arrow-up
                  2
                  ·
                  1 year ago

                  Personally I can’t see a use-case for an instance that has ~100 users, people would just get bored and stop using it and move on to a more popular one. It’s not like a Minecraft server. Having people use a social media tool like Lemmy or a sub on Reddit is about having a critical mass of interesting content and users. But if there is such a small community, sure a single box is fine.

                  And load balancers are hardly fancy… if you know how to setup a webserver and write an nginx configuration, it’s like the next step of understanding. Digital ocean makes it incredibly easy.

  • earthquake@lemm.ee
    link
    fedilink
    arrow-up
    17
    ·
    1 year ago

    I know that the RAM cache is just taking advantage of otherwise free RAM and will be dropped in favor of anything else, but it does stress me out a bit to see it “full” like that.

    • Ruud@lemmy.worldOPM
      link
      fedilink
      arrow-up
      33
      ·
      1 year ago

      It would stress me even more to see a lot of RAM doing nothing, that would be a shame! ;-)

      • CashewNut 🏴󠁢󠁥󠁧󠁿@lemmy.world
        link
        fedilink
        arrow-up
        14
        arrow-down
        2
        ·
        1 year ago

        Difference between Windows and Linux. Windows would only use what it needs. Linux pre-empts more and fills the RAM for what coul dbe needed.

        It used to stress the shit out of me when I switched to Linux as I’d gotten used to opening task manager and seeing 90% free RAM. On Linux I’d be seeing 10% free and panicking thinking it was a resource hog.

        The Linux-way is the best way.

        I use Arch btw ;)

        • Gecko@lemmy.world
          link
          fedilink
          arrow-up
          9
          ·
          1 year ago

          Both OSes do pre-caching and for both the standard tools to check usage nowadays ignore pre-cached elements when counting RAM usage.

          • I had a feeling that ‘factoid’ may be out of date! Since I learnt it about the time of Windows XP when we were shown examples of how Linux and Windows memory management differed. It all made sense why Linux seemed to have full RAM even after a big upgrade but WinXP gave the ‘illusion’ of having lots of free RAM to use. ~ 20yrs ago!

            I think we used SuSE Linux 7.3!

            I still hold a savage hatred of all RPM-based distros after dealing with the hell of early 2000’s editions (Redhat, Mandrake & Suse). Though I did like SuSE KDE’s colours when it worked!

          • CashewNut 🏴󠁢󠁥󠁧󠁿@lemmy.world
            link
            fedilink
            arrow-up
            2
            ·
            edit-2
            1 year ago

            I discovered this about 20yrs ago and there’s been a lot of drugs & drink since then.

            I do remember I could open my shit-hot 256Mb RAM desktop with Windows XP taskmanager and it shows a whopping 128Mb free RAM. 😎

            Then I’d boot into my ‘733T H4X0r’ Suse Linux 7.3 and top would show 5Mb free RAM. 😱

            This caused much upset until I found out the two OS’s have (had?) fundamentally different memory utilisation philosophies.

            May not be the case anymore but it was late 90s/early 00s.

    • FrostyCaveman@lemm.ee
      link
      fedilink
      arrow-up
      6
      ·
      1 year ago

      It’s free real estate!

      If you had this much buffer memory what are the reasons to have swap space as well?

      With my servers I’m paranoid having swap enabled will inadvertently slow stuff down. Perhaps there’s a reason to have it that I’m unaware of?

      • digilec@lemmy.world
        link
        fedilink
        arrow-up
        7
        ·
        1 year ago

        If you had this much buffer memory what are the reasons to have swap space as well?

        Many programs do stuff once during startup that they never do again, sometimes creating redundant data objects that will never get accessed in the configuration its being run in. Eventually the kernel memory manager figures out that some pages are never used but it can’t just delete them. If swap is enabled it can swap them to disk instead. It frees up that RAM for something more important. It’s usually minor but every few MB helps.

      • Illecors@lemmy.cafe
        link
        fedilink
        arrow-up
        5
        ·
        1 year ago

        I personally like having some swap as during low memory situations (which lemmy gets at least once a day on my small instance) everything slows down rather than getting culled by the oom killer. It’s not a replacement for monitoring, but it does extend the timeframe to react to things.

    • patsharpesmullet@feedly.j-cloud.uk
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      Memcache usually takes all the assigned memory regardless of usage so seeing high usage isn’t always unusual. That’s assuming the lemmy servers are using some kind of session caching solution.

    • UndulyUnruly@lemmy.world
      link
      fedilink
      arrow-up
      15
      ·
      1 year ago

      From the lemmy.world front page:

      Donations
      
      If you would like to make a donation to support the cost of running this platform, please do so at the mastodon.world donation URLs:
      
          https://opencollective.com/mastodonworld
          https://patreon.com/mastodonworld