Skip to content
  • Hjem
  • Seneste
  • Etiketter
  • Populære
  • Verden
  • Bruger
  • Grupper
Temaer
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Kollaps
FARVEL BIG TECH
  1. Forside
  2. Ikke-kategoriseret
  3. This is FASCINATING.

This is FASCINATING.

Planlagt Fastgjort Låst Flyttet Ikke-kategoriseret
220 Indlæg 120 Posters 0 Visninger
  • Ældste til nyeste
  • Nyeste til ældste
  • Most Votes
Svar
  • Svar som emne
Login for at svare
Denne tråd er blevet slettet. Kun brugere med emne behandlings privilegier kan se den.
  • hzulla@infosec.exchangeH hzulla@infosec.exchange

    Ok, so this went surprisingly viral. What I learned from the responses so far:

    The main "problem" is the synchronised clock and too many developers using the minute mark for task scheduling default settings.

    Having mass-deployed systems doing a thing at the exact same time causing trouble has been known to sysadmins for decades. Solutions readily exist for various task schedulers. However, inexperienced developers and maintainers still default to using the minute mark.

    Our industry learns and unlearns this phenomenon again and again.

    (I personally certainly have experienced this in my line of work, too, but...)

    People may be aware of the problem of synchronised tasks on mass-deployed software for their own distributed system, but I'm mostly surprised that the effect is even visible within the global electricity grid.

    So while simple solutions exist since forever, it's unclear how our industry can keep this knowledge alive to avoid future generations doing this little mistake all over again and again.

    bob_zim@infosec.exchangeB This user is from outside of this forum
    bob_zim@infosec.exchangeB This user is from outside of this forum
    bob_zim@infosec.exchange
    wrote sidst redigeret af
    #190

    @hzulla Yeah, lots of people responsible for distributed systems haven’t been taught the ways of thinking about them.

    My work team just deployed a scheduled I/O-heavy job (storage snapshots on a non-CoW filesystem) to about a hundred physical servers. The original plan was to push out exactly the same config to all of them. Everybody understood the problem once I pointed it out, but it’s just not something most people consider.

    1 Reply Last reply
    0
    • hzulla@infosec.exchangeH hzulla@infosec.exchange

      Ok, so this went surprisingly viral. What I learned from the responses so far:

      The main "problem" is the synchronised clock and too many developers using the minute mark for task scheduling default settings.

      Having mass-deployed systems doing a thing at the exact same time causing trouble has been known to sysadmins for decades. Solutions readily exist for various task schedulers. However, inexperienced developers and maintainers still default to using the minute mark.

      Our industry learns and unlearns this phenomenon again and again.

      (I personally certainly have experienced this in my line of work, too, but...)

      People may be aware of the problem of synchronised tasks on mass-deployed software for their own distributed system, but I'm mostly surprised that the effect is even visible within the global electricity grid.

      So while simple solutions exist since forever, it's unclear how our industry can keep this knowledge alive to avoid future generations doing this little mistake all over again and again.

      alan@zeroes.caA This user is from outside of this forum
      alan@zeroes.caA This user is from outside of this forum
      alan@zeroes.ca
      wrote sidst redigeret af
      #191

      @hzulla People also tend to schedule things on the hour/half-hour, or at multiples of five minutes, in part because cron syntax makes that easier.

      1 Reply Last reply
      0
      • drscriptt@oldbytes.spaceD drscriptt@oldbytes.space

        @oclsc @SteveBellovin @mattblaze @hzulla nice trick delaying based on the last octet.

        Though I might add some other time / date attribute to the mix so lower IP doesn’t always beat higher IP.

        But I like the base idea, a lot.

        oclsc@mstdn.caO This user is from outside of this forum
        oclsc@mstdn.caO This user is from outside of this forum
        oclsc@mstdn.ca
        wrote sidst redigeret af
        #192

        @drscriptt @SteveBellovin @mattblaze @hzulla It's not about randomizing, really, just spreading. It's OK if several systems hit at the same time, just not the whole head.

        drscriptt@oldbytes.spaceD 1 Reply Last reply
        0
        • maya_b@hachyderm.ioM maya_b@hachyderm.io

          @Canageek

          plus electric is so much more convenient that stove top kettles which were the norm when I was growing up.

          @psymar

          amgine@mamot.frA This user is from outside of this forum
          amgine@mamot.frA This user is from outside of this forum
          amgine@mamot.fr
          wrote sidst redigeret af
          #193

          @maya_b @Canageek @psymar

          Some of us just want hot water. I have an electric kettle which is 15+ yo, a stovetop, several microwave-safe tea pots (yes, they warn about the sudden boil effect, a 'feature' when adding the tea strainer of leaves) and recently sold a cast iron kettle (I no longer have a solid fuel heater, but the buyer does.)

          I miss the on-demand thermocouple water tap supplying 99°.

          maya_b@hachyderm.ioM canageek@wandering.shopC 2 Replies Last reply
          0
          • amgine@mamot.frA amgine@mamot.fr

            @maya_b @Canageek @psymar

            Some of us just want hot water. I have an electric kettle which is 15+ yo, a stovetop, several microwave-safe tea pots (yes, they warn about the sudden boil effect, a 'feature' when adding the tea strainer of leaves) and recently sold a cast iron kettle (I no longer have a solid fuel heater, but the buyer does.)

            I miss the on-demand thermocouple water tap supplying 99°.

            maya_b@hachyderm.ioM This user is from outside of this forum
            maya_b@hachyderm.ioM This user is from outside of this forum
            maya_b@hachyderm.io
            wrote sidst redigeret af
            #194

            @Amgine

            on demand taps are great. have one here too.

            @Canageek @psymar

            1 Reply Last reply
            0
            • amgine@mamot.frA amgine@mamot.fr

              @maya_b @Canageek @psymar

              Some of us just want hot water. I have an electric kettle which is 15+ yo, a stovetop, several microwave-safe tea pots (yes, they warn about the sudden boil effect, a 'feature' when adding the tea strainer of leaves) and recently sold a cast iron kettle (I no longer have a solid fuel heater, but the buyer does.)

              I miss the on-demand thermocouple water tap supplying 99°.

              canageek@wandering.shopC This user is from outside of this forum
              canageek@wandering.shopC This user is from outside of this forum
              canageek@wandering.shop
              wrote sidst redigeret af
              #195

              @Amgine @maya_b @psymar oh! I haven't seen those, that sounds nice!

              I just get sick of Americans claiming there is some reason they don't do something when Canada is right here and we manage it on the same infrastructure, similar building ages, and very similar history

              maya_b@hachyderm.ioM 1 Reply Last reply
              0
              • canageek@wandering.shopC canageek@wandering.shop

                @Amgine @maya_b @psymar oh! I haven't seen those, that sounds nice!

                I just get sick of Americans claiming there is some reason they don't do something when Canada is right here and we manage it on the same infrastructure, similar building ages, and very similar history

                maya_b@hachyderm.ioM This user is from outside of this forum
                maya_b@hachyderm.ioM This user is from outside of this forum
                maya_b@hachyderm.io
                wrote sidst redigeret af
                #196

                @Canageek

                there are under-counter models that you can install like separate drinking water taps, or in our case we have a water cooler that has cold and boiling water taps.

                @Amgine @psymar

                1 Reply Last reply
                0
                • hzulla@infosec.exchangeH hzulla@infosec.exchange

                  It is such an obvious cause once you think about it, and yet before you hear about this, no software developer or maintainer ever considers the possible effects of e.g. a default Debian cron job setting on the global electricity grid.

                  gudenau@hachyderm.ioG This user is from outside of this forum
                  gudenau@hachyderm.ioG This user is from outside of this forum
                  gudenau@hachyderm.io
                  wrote sidst redigeret af
                  #197

                  @hzulla This is actually something that I think about!

                  Maybe not for thr grid exactly, but for anything with more than a couple of instances I want to be nice to services. A ticket at work someone got is because a client isn't staggering something so it absolutely hammers our product.

                  1 Reply Last reply
                  0
                  • hzulla@infosec.exchangeH hzulla@infosec.exchange

                    This is FASCINATING. Researchers were able to pin down the cause of measurable global 60 second power spikes to software that does regular checks on the minute mark. They found large scale battery installations as one major cause, but obviously this is true for any other computerized system that does cron jobs and has a synchronized clock. As weird as it sounds, adding random 0-59.999s delays to cron jobs in Linux distributions and other software would actually help the power grid.

                    https://www.fz-juelich.de/en/news/archive/press-release/2026/mystery-of-60-second-fluctuations-in-power-grids-solved

                    mickert@hsnl.socialM This user is from outside of this forum
                    mickert@hsnl.socialM This user is from outside of this forum
                    mickert@hsnl.social
                    wrote sidst redigeret af
                    #198

                    @hzulla Wow i've been doing this intuitively for ages without even realizing this. Never schedule exactly on the hour/minute alway stagger/randomize.

                    1 Reply Last reply
                    0
                    • hzulla@infosec.exchangeH hzulla@infosec.exchange

                      Ok, so this went surprisingly viral. What I learned from the responses so far:

                      The main "problem" is the synchronised clock and too many developers using the minute mark for task scheduling default settings.

                      Having mass-deployed systems doing a thing at the exact same time causing trouble has been known to sysadmins for decades. Solutions readily exist for various task schedulers. However, inexperienced developers and maintainers still default to using the minute mark.

                      Our industry learns and unlearns this phenomenon again and again.

                      (I personally certainly have experienced this in my line of work, too, but...)

                      People may be aware of the problem of synchronised tasks on mass-deployed software for their own distributed system, but I'm mostly surprised that the effect is even visible within the global electricity grid.

                      So while simple solutions exist since forever, it's unclear how our industry can keep this knowledge alive to avoid future generations doing this little mistake all over again and again.

                      sehe@fosstodon.orgS This user is from outside of this forum
                      sehe@fosstodon.orgS This user is from outside of this forum
                      sehe@fosstodon.org
                      wrote sidst redigeret af
                      #199

                      @hzulla In fairness, devs sticking to the minute mark isn't really something you want to fix (because you can't). Instead you have to recognize what causes it and give devs the tools to avoid it by default. Because there's currently not a good way to express "once a minute, regardless of where in the period" on many platforms

                      1 Reply Last reply
                      0
                      • hzulla@infosec.exchangeH hzulla@infosec.exchange

                        This is FASCINATING. Researchers were able to pin down the cause of measurable global 60 second power spikes to software that does regular checks on the minute mark. They found large scale battery installations as one major cause, but obviously this is true for any other computerized system that does cron jobs and has a synchronized clock. As weird as it sounds, adding random 0-59.999s delays to cron jobs in Linux distributions and other software would actually help the power grid.

                        https://www.fz-juelich.de/en/news/archive/press-release/2026/mystery-of-60-second-fluctuations-in-power-grids-solved

                        psysal@mastodon.socialP This user is from outside of this forum
                        psysal@mastodon.socialP This user is from outside of this forum
                        psysal@mastodon.social
                        wrote sidst redigeret af
                        #200

                        @hzulla as someone who helps operate cloud infrastructure I can truly believe it. Please for th love of god please learn how to jitter

                        1 Reply Last reply
                        0
                        • hzulla@infosec.exchangeH hzulla@infosec.exchange

                          This is FASCINATING. Researchers were able to pin down the cause of measurable global 60 second power spikes to software that does regular checks on the minute mark. They found large scale battery installations as one major cause, but obviously this is true for any other computerized system that does cron jobs and has a synchronized clock. As weird as it sounds, adding random 0-59.999s delays to cron jobs in Linux distributions and other software would actually help the power grid.

                          https://www.fz-juelich.de/en/news/archive/press-release/2026/mystery-of-60-second-fluctuations-in-power-grids-solved

                          outer@mas.toO This user is from outside of this forum
                          outer@mas.toO This user is from outside of this forum
                          outer@mas.to
                          wrote sidst redigeret af
                          #201

                          @hzulla @knowprose Apple should do something. We wouldn't even know. They play games and lie about our batteries...

                          knowprose@mastodon.socialK 1 Reply Last reply
                          0
                          • notsoloud@expressional.socialN notsoloud@expressional.social

                            @maya_b
                            Got this from a Danish power plant operator many years ago: They were of course not allowed TV or anything distracting in the control room, so they couldn't watch the big football internationals. They still knew the result as soon as the game ended.

                            If Denmark had won, people would watch the TV a bit longer, enjoying the moment. If Denmark had lost, everybody would turn off, get up and put on the coffee machine right away. The load spike was noticeable.
                            @hzulla

                            damonhd@mastodon.socialD This user is from outside of this forum
                            damonhd@mastodon.socialD This user is from outside of this forum
                            damonhd@mastodon.social
                            wrote sidst redigeret af
                            #202

                            @notsoloud @maya_b @hzulla This is called "TV pickup" in the UK. It is diminishing a bit as there are fewer intense shared moments now...

                            maya_b@hachyderm.ioM hzulla@infosec.exchangeH 2 Replies Last reply
                            0
                            • damonhd@mastodon.socialD damonhd@mastodon.social

                              @notsoloud @maya_b @hzulla This is called "TV pickup" in the UK. It is diminishing a bit as there are fewer intense shared moments now...

                              maya_b@hachyderm.ioM This user is from outside of this forum
                              maya_b@hachyderm.ioM This user is from outside of this forum
                              maya_b@hachyderm.io
                              wrote sidst redigeret af
                              #203

                              @DamonHD

                              and also more channels to choose from - not everyone watching the same 3 or 4 things anymore

                              @notsoloud @hzulla

                              1 Reply Last reply
                              0
                              • damonhd@mastodon.socialD damonhd@mastodon.social

                                @notsoloud @maya_b @hzulla This is called "TV pickup" in the UK. It is diminishing a bit as there are fewer intense shared moments now...

                                hzulla@infosec.exchangeH This user is from outside of this forum
                                hzulla@infosec.exchangeH This user is from outside of this forum
                                hzulla@infosec.exchange
                                wrote sidst redigeret af
                                #204

                                @DamonHD @notsoloud @maya_b it's also a major plot point in the wonderful animated movie "Flushed Away".

                                1 Reply Last reply
                                0
                                • mattblaze@federate.socialM mattblaze@federate.social

                                  @casandro @hzulla Um, if open source or free software or whatever buzzword the kids are calling it these days solves this problem, why wasn’t it solved already? As you pointed out, cron’s code has been re-implemented many times over the years.

                                  Open source is nice and all, but it didn’t anticipate or solve this.

                                  synx508@bsd.networkS This user is from outside of this forum
                                  synx508@bsd.networkS This user is from outside of this forum
                                  synx508@bsd.network
                                  wrote sidst redigeret af
                                  #205

                                  @mattblaze @casandro @hzulla This isn't really a problem that requires changes in the software but rather changes in the way it's used. There is no escaping the necessity of *some* tasks being scheduled at the exact times provided by the various crons. I used to run a fairly big website on meagre hardware and had to dither a lot of scripts to spread CPU load out, this included cron jobs. This also smoothes the power draw.

                                  mattblaze@federate.socialM casandro@f-ckendehoelle.deC 2 Replies Last reply
                                  0
                                  • synx508@bsd.networkS synx508@bsd.network

                                    @mattblaze @casandro @hzulla This isn't really a problem that requires changes in the software but rather changes in the way it's used. There is no escaping the necessity of *some* tasks being scheduled at the exact times provided by the various crons. I used to run a fairly big website on meagre hardware and had to dither a lot of scripts to spread CPU load out, this included cron jobs. This also smoothes the power draw.

                                    mattblaze@federate.socialM This user is from outside of this forum
                                    mattblaze@federate.socialM This user is from outside of this forum
                                    mattblaze@federate.social
                                    wrote sidst redigeret af
                                    #206

                                    @synx508 @casandro @hzulla yes, exactly. The software changes required to have cron behave in a way that’s more friendly to the power grid are relatively trivial here. The issue is (apparently) that no one realized (or cared) that synchronized surges in computation can now have a measurable impact at scale (which is an interesting effect).

                                    synx508@bsd.networkS 1 Reply Last reply
                                    0
                                    • mattblaze@federate.socialM mattblaze@federate.social

                                      @synx508 @casandro @hzulla yes, exactly. The software changes required to have cron behave in a way that’s more friendly to the power grid are relatively trivial here. The issue is (apparently) that no one realized (or cared) that synchronized surges in computation can now have a measurable impact at scale (which is an interesting effect).

                                      synx508@bsd.networkS This user is from outside of this forum
                                      synx508@bsd.networkS This user is from outside of this forum
                                      synx508@bsd.network
                                      wrote sidst redigeret af
                                      #207

                                      @mattblaze @casandro @hzulla I was aware at the time, this was 20 years ago, I wondered about the effect on the data centre's power distribution back then as we did have metered power as well as data transfer. It wasn't my primary motivation, though. The British anecdote about TV viewers putting the kettle on during half-time of football matches or after a particular soap on TV was quite well known so that scaling effect was, too, but with a different cron engine - television schedules. We didn't have many channels to choose from before the 1980s so the effect was likely more pronounced then.

                                      1 Reply Last reply
                                      0
                                      • synx508@bsd.networkS synx508@bsd.network

                                        @mattblaze @casandro @hzulla This isn't really a problem that requires changes in the software but rather changes in the way it's used. There is no escaping the necessity of *some* tasks being scheduled at the exact times provided by the various crons. I used to run a fairly big website on meagre hardware and had to dither a lot of scripts to spread CPU load out, this included cron jobs. This also smoothes the power draw.

                                        casandro@f-ckendehoelle.deC This user is from outside of this forum
                                        casandro@f-ckendehoelle.deC This user is from outside of this forum
                                        casandro@f-ckendehoelle.de
                                        wrote sidst redigeret af
                                        #208

                                        @synx508 @mattblaze @hzulla Well unfortunately cron only allows one to set the minute, not the second. AFAIK it was always understood that this time was not supposed to be precise. Just adding some randomness probably isn't to hard to do.

                                        synx508@bsd.networkS 1 Reply Last reply
                                        0
                                        • oclsc@mstdn.caO oclsc@mstdn.ca

                                          @drscriptt @SteveBellovin @mattblaze @hzulla It's not about randomizing, really, just spreading. It's OK if several systems hit at the same time, just not the whole head.

                                          drscriptt@oldbytes.spaceD This user is from outside of this forum
                                          drscriptt@oldbytes.spaceD This user is from outside of this forum
                                          drscriptt@oldbytes.space
                                          wrote sidst redigeret af
                                          #209

                                          @oclsc @SteveBellovin @mattblaze @hzulla

                                          ACK all around.

                                          Reduce the size of the thundering herd to multiple discrete roaming packs of wild servers.

                                          1 Reply Last reply
                                          0
                                          Svar
                                          • Svar som emne
                                          Login for at svare
                                          • Ældste til nyeste
                                          • Nyeste til ældste
                                          • Most Votes


                                          • Log ind

                                          • Login or register to search.
                                          Powered by NodeBB Contributors
                                          Graciously hosted by data.coop
                                          • First post
                                            Last post
                                          0
                                          • Hjem
                                          • Seneste
                                          • Etiketter
                                          • Populære
                                          • Verden
                                          • Bruger
                                          • Grupper