I’ve got a HP EliteDesk 800 G5 with Core i7 CPU and 32 GB RAM. How do you guys handle load shedding situations? I have a mini UPS for the router and ONU, and a 650V one for the mini PC. I don’t think it will give me more than 20 minutes backup. Should I gracefully shutdown after 10-15 minutes when electricity is gone and automatically boot up when electricity is back?

@selfhosted

#homelab #selfhosted #selfhosting #linux #proxmox #hpelitedesk #hp #ups

  • spaghettiwestern@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    1
    ·
    40 minutes ago

    There can be a period after graceful shutdown where the UPS is still running and the server will not restart if mains power comes back on. Not a likely scenario, but for apps you can’t afford to have down it’s something to consider.

  • frongt@lemmy.zip
    link
    fedilink
    English
    arrow-up
    13
    ·
    5 hours ago

    Yes.

    UPSes are to bridge gaps in short outages, either mains blips or the gap between the mains going out and the generator coming online. Do not rely on them for extended runtime.

  • CameronDev@programming.dev
    link
    fedilink
    English
    arrow-up
    4
    ·
    4 hours ago

    Some (most?) UPSs have a way for them to communicate to the PC so that the PC can automatically cleanly shutdown. You should look into that if its available on your UPS.

    • Mitex Leo@mitexleo.oneOP
      link
      fedilink
      arrow-up
      1
      ·
      4 hours ago

      @CameronDev Unfortuanately, I didn’t think about this before buying the UPS. IT doesn’t support such features. Maybe I could get a device that can report power outage over the network and take actions accordingly.

      • CameronDev@programming.dev
        link
        fedilink
        English
        arrow-up
        3
        ·
        4 hours ago

        Bummer. You could get a cheap IoT light bulb/smart plug and ping it in a script, when it times out, start the shutdown. Could be a fun project.

        • flightyhobler@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          25 minutes ago

          At that point just use home assistant to trigger a shutdown script once a device goes offline for x amount of minutes.