I’d like to thank the admins for being so open and direct about the issues that they’re facing.

  • thelastknowngod@lemm.ee
    link
    fedilink
    arrow-up
    86
    ·
    1 year ago

    To be fair, with a proper autoscaling scheme in place these services should scale down significantly when not in use.

    That being said, a big reason for using AWS/GCP is all the additional services that are available on the platform… If the workload being run isn’t that complicated, the hyperscalers are probably overkill. Even DO or Linode would be a better option under those circumstances.

    • Overmind@lemmy.sdf.org
      link
      fedilink
      arrow-up
      63
      ·
      1 year ago

      This. AWS architect here. There are a lot of ways to reduce pricing in AWS like horizontal scaling, serverless functions, reserved instances. Most people aren’t aware of it and if you’re going to dive in head first into something like cloud, you’ll need to bear the consequences and then learn eventually.

      • Greyscale@lemmy.sdf.org
        link
        fedilink
        arrow-up
        24
        ·
        1 year ago

        Even with ASGs, ec2 costs a bomb for performance.

        And “serverless” functions are a trap.

        If you’re gonna commit to reserved instances, just buy hardware for goodness sake, its a 3 year commitment with a huge upfront spend.

          • whoisearth@lemmy.ca
            link
            fedilink
            arrow-up
            6
            ·
            1 year ago

            Mark my words the loop is coming back around. I look forward to when my work migrates the datacenter off AWS back on prem because of ballooning costs.

            You work in IT long enough you see it for the joke it is. We get paid obscene amounts of money to do what amounts to nothing.

            • msage@programming.dev
              link
              fedilink
              arrow-up
              2
              ·
              1 year ago

              Just because rotating managers always come with the ‘new current thing everyone is doing’.

              Like no, 99% of companies can just do what they’ve always done. No need to rebuild everything from scratch.

            • Greyscale@lemmy.sdf.org
              link
              fedilink
              arrow-up
              1
              ·
              1 year ago

              I’m already in the middle of that. Everything non-public-facing is going to cheap lease boxes running workloads in docker. idgaf if the machine underneath lives or dies, its 3 lines of config in a terraform script to replace.

        • masterspace@lemmy.ca
          link
          fedilink
          English
          arrow-up
          2
          ·
          edit-2
          1 year ago

          And “serverless” functions are a trap.

          How are serverless functions a trap? They seem like a great cheap option for simple CRUD / client > server > db apps (what most apps end up being).

          • Greyscale@lemmy.sdf.org
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 year ago

            Anything that is “cheap” to do on serverless is cheaper to do on a $5 droplet, especially once it starts to grow.

            Serverless gets you to buy in to a vendors lock-in.

            • masterspace@lemmy.ca
              link
              fedilink
              English
              arrow-up
              1
              ·
              1 year ago

              Interesting, I’ll check out droplets, but in my experience with Azure Functions there’s not much vendor lock in. My API was just a normal Node.js / express server, the only part that was locked in to Azure Functions was the format for the endpoint definitions, but those can be adjusted in like an hour’s worth of time to anything else

      • thelastknowngod@lemm.ee
        link
        fedilink
        arrow-up
        11
        ·
        1 year ago

        Yep. And if you want to really save some cash and don’t mind getting a little crazy, use an EKS node orchestrator that supports spot instances. I’m starting to do a serious dive into Harness at the moment actually.

        Google recently released a white paper on cost saving in kubernetes as well.

        • Toribor@corndog.social
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          If you’ve got a kubernetes cluster running on 10 different spot instances, isn’t there a risk that all ten could be revoked at the same time? Even if they are built out across regions and availability zones?

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

            Got my AWS architect cert 2 weeks ago.

            What you can do is setup a spot fleet so it’ll fill up with spots and only use on-demand if spot goes above the on demand price.

            You could also have a pure spot fleet and a reserved instance and use a load balancer with health checks to route traffic.

            The one thing you shouldn’t do with cloud providers is lift and shift your existing instances, that’s what leads to the crazy prices some people are seeing.

            Renting an ec2 on demande and installing your software is almost always the wrong way to do it.

      • Toribor@corndog.social
        link
        fedilink
        English
        arrow-up
        4
        ·
        1 year ago

        I’m in a similar boat. I’m a sysadmin supporting a legacy application running on AWS EC2 instances and a new ‘serverless’ microservice based platform as well. It’s really really hard to scale and optimize anything running on EC2s unless you really know what you’re doing or the application is designed with clustering in mind.

        You tend to end up sizing instances based on peak load and then wasting capacity 90% of the time (and burning through cash like crazy). I can imagine a lot of Lemmy admins are overspending so fast they give up before they figure it out.

        • Dasnap@lemmy.world
          link
          fedilink
          arrow-up
          6
          ·
          1 year ago

          Nowadays I feel like EC2 is either used for legacy support or testing. Most prod nowadays should probably be built with some kind of container solution so you can scale it easier.