7 comments

  • Dries0071 day ago
    Very nice, just FYI for home assistant fans: WoL is also supported in there :)
  • riobard1 day ago
    Isn't it bad design in the first place if you require "right order" of boot up? What if some, but not all, servers crash and reboot? How do you ensure the correct order in that case?
    • darwindarak1 day ago
      That’s a good point. Ideally, if we had complete control over how applications behave on startup, we could design them to “self-heal” and avoid dependency issues altogether. However, many of the components in the systems we work with are either closed source or require more experience and expertise to modify.<p>We’ve also noticed that, in practice, for many data-critical production systems, many of our customers prefer to manually control the boot process to confirm data integrity.<p>The scenario of partial crashes is interesting. I need to think about how to handle that a bit more. Thanks for the feedback!
  • sgarland1 day ago
    One thing that might be useful is to allow a given server in the chain to fail. For example, if you had a Proxmox (or other hypervisor) cluster, in the event that a single node fails to come up, you&#x27;d probably want everything else to still boot. Or maybe it would be easier if there was a separate category for VM vs. hypervisor?<p>Either way, neat project, and thank you for sharing.
    • darwindarak1 day ago
      Thanks for the feedback! So would a tagging system be useful? Right now you can declare dependencies on a single server, but maybe we can have it depend on at least one of the machines in a tagged group booting up?
      • sgarland1 day ago
        I could see a group being useful, yeah. Must have one of [server0, server1, server2] to continue. Though there is a lot of bleed-over when talking about hypervisors and the boot order of VMs, since hypervisors generally can handle that, at least on their own node.
  • keraf1 day ago
    Would love to see exactly this but running on an ESP style board (with Ethernet). As well as an API or web interface to trigger manual WoL calls.<p>Nice project, thanks for sharing!
    • darwindarak1 day ago
      Thanks! Getting it working on an embedded system would be a fun addition and a nice intro&#x2F;training project for one of our new engineers (I think…).<p>What type of API are you thinking of? It already runs on a YAML config, so maybe a web server that takes the config as a JSON body instead?
  • ultrafez2 days ago
    Is the project named spinup or rallyup? The HN post title differs from the GitHub repo
    • SushiHippie1 day ago
      Name was changed to rallyup via this commit<p><a href="https:&#x2F;&#x2F;github.com&#x2F;darwindarak&#x2F;rallyup&#x2F;commit&#x2F;36f9c474c13644db1ceba305c85a0077d5bc981a">https:&#x2F;&#x2F;github.com&#x2F;darwindarak&#x2F;rallyup&#x2F;commit&#x2F;36f9c474c13644...</a>
    • darwindarak1 day ago
      Thanks for catching that! Updated to match. The names I liked was already taken on crates.io but never got it out of my head
      • xelamonster1 day ago
        A very relatable struggle. Cool project! I remember getting into WoL as a kid playing with our home PC, felt like magic to press a button on my phone and watch the fully powered off machine come to life.<p>Never sorted out a reliable enough system for it to be practically useful, but this gives me some ideas...
  • myself2481 day ago
    Equip your machines with whack-on-LAN so you can remotely reset them by the same mechanism, and you&#x27;ve got a reasonably complete remote management setup!<p><a href="https:&#x2F;&#x2F;citeseerx.ist.psu.edu&#x2F;document?repid=rep1&amp;type=pdf&amp;doi=a9a37691cb4b8df1e543affd5de9a6c748b3d808" rel="nofollow">https:&#x2F;&#x2F;citeseerx.ist.psu.edu&#x2F;document?repid=rep1&amp;type=pdf&amp;d...</a><p><a href="https:&#x2F;&#x2F;www.i3detroit.org&#x2F;reset-on-lan-an-ethernet-aware-remote-reboot-device-from-junkbox-parts&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.i3detroit.org&#x2F;reset-on-lan-an-ethernet-aware-rem...</a>
  • nubinetwork2 days ago
    Is wake on LAN any good these days? I remember it being flaky in the late 90s early 00s...
    • SushiHippie1 day ago
      I only had one problem with it, and that was that it isn&#x27;t enough to enable it in the BIOS, but I needed to flip a switch on Windows and set up a systemd service on Linux (I dual boot).<p>For Linux set it to &quot;g&quot;: <a href="https:&#x2F;&#x2F;wiki.archlinux.org&#x2F;title&#x2F;Wake-on-LAN#Make_it_persistent" rel="nofollow">https:&#x2F;&#x2F;wiki.archlinux.org&#x2F;title&#x2F;Wake-on-LAN#Make_it_persist...</a><p>For Windows you need to enable &quot;Wake on Magic Packet&quot;: <a href="https:&#x2F;&#x2F;www.windowscentral.com&#x2F;how-enable-and-use-wake-lan-wol-windows-10" rel="nofollow">https:&#x2F;&#x2F;www.windowscentral.com&#x2F;how-enable-and-use-wake-lan-w...</a>
      • ryandrake1 day ago
        I always wondered: why make it so difficult to turn on? Is it a security issue? I mean, an off-by-default OS setting <i>and</i> an off-by-default BIOS setting? How dangerous is this thing??
        • tjoff1 day ago
          It draws more power because the NIC can&#x27;t power off completely. So Microsoft and every hardware vendor are incentiviced to turn it off to look good. (And probably to please regulations)<p>That it is defaulted off I feel is motivated, but to make it so hard to turn it on is pretty pathetic.<p>The fury Microsoft generated by turning it off in a Windows update still fuels me. I had a remote PC that I need to access remotely during holiday season. And Microsoft turns off my ability to power it on, with me left trying to figure out why I can&#x27;t access the machine anymore.
      • striking1 day ago
        &quot;set it to &#x27;g&#x27;&quot;. Awesome.<p>G for maGic, I presume?
        • BenjiWiebe1 day ago
          Yep, pretty sure. m is for multicast. From arch wiki: d (disabled), p (PHY activity), u (unicast activity), m (multicast activity), b (broadcast activity), a (ARP activity), g (magic packet activity)
    • I still have a lot of weirdness when it comes to making things actually stay asleep and wake up again when wanted. There&#x27;s a lot of hardware that often boots up, or always boots but only if it&#x27;s been switched on once before, or keeps trying to wake itself up for no good reason.<p>The absolute most consistent way I&#x27;ve found is using cheap zigbee smart switches or even second hand smart PDUs. Set the machine to boot when power is restored and actually switch the thing on and off from the wall. It saves a whole lot of messing around, you can force the reboot issue and for a tiny amount more in upfront costs you can have power monitoring as well. It also works for network gear that doesn&#x27;t sleep or anything else that had a physical switch.<p>edit: Ideally give me hardware with proper out-of-band management (ipmi or AMT at a pinch), but for everything else having control of the power is as good as it gets.
    • angrygoat1 day ago
      It&#x27;s pretty heavily used in some on premises HPC contexts... used to run a large supermicro cluster which we would power down when not needed, which saved a fair amount of electricity (and by extension emissions and money.) It&#x27;s quite solid.
    • Szpadel1 day ago
      I have weird desktop system on ASRock motherboard. I have 2 ethernet (10gbe and 1gbe) ports and WiFi build in. i have 10gbe network so ofc I want to use 10gbe port.<p>the issue that I discovered after many hours of debugging is that 10gbe port is powered down completely on suspend&#x2F;power off. so it have no way to work.<p>because I had limited number of ethernet ports available I set up system to use wake up over WiFi (with wake also on key rotation or disconnect)
    • sgarland1 day ago
      I haven&#x27;t had problems with it the past few years, on SuperMicros.<p>EDIT: as the sibling comment reminded me, I&#x27;m using IPMI, not WoL. That said, I have tested WoL and had no issues with it doing its job – I only switched because I had a server that would randomly fail to find its NVMe drive at boot; rebooting (which IPMI allowed me to do) would fix it.
    • _joel1 day ago
      Been fine for me mid 00&#x27;s and onwards. From memory with SuperMicro, HP, Dell kit etc. Ususally setup via ipmi. Not done it for a while, but don&#x27;t recall issues.
    • pohuing1 day ago
      In my experience it depends a lot on your hardware. For some versions my msi consumer Mainboard just would not respond to wol packets. No matter what I tried.