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.
  • gabrielesvelto@mas.toG gabrielesvelto@mas.to

    @benjamineskola @funkylab @hzulla maybe I'm off the mark here but cron implementations have always honored the RANDOM_DELAY env variable and it's always been recommended to set it to a non-zero value. IIRC systemd timers also honor it but I don't know if it's set by default or not.

    itgrrl@infosec.exchangeI This user is from outside of this forum
    itgrrl@infosec.exchangeI This user is from outside of this forum
    itgrrl@infosec.exchange
    wrote sidst redigeret af
    #130

    @gabrielesvelto @benjamineskola @funkylab @hzulla 👇

    https://hachyderm.io/@benjamineskola/117535653537672428

    1 Reply Last reply
    0
    • itgrrl@infosec.exchangeI itgrrl@infosec.exchange

      @benjamineskola @jak2k

      👆👆

      I smell a new PR… 🙃

      drwho@masto.hackers.townD This user is from outside of this forum
      drwho@masto.hackers.townD This user is from outside of this forum
      drwho@masto.hackers.town
      wrote sidst redigeret af
      #131

      @itgrrl @benjamineskola @jak2k Several have been rejected.

      itgrrl@infosec.exchangeI 1 Reply Last reply
      0
      • jak2k@mastodon.deJ jak2k@mastodon.de

        @benjamineskola @hzulla It wouldn't create a small spike at the minute mark. Most Linux distributions use SystemD and its timers have this randomization built-in and considered while timer scheduling: https://www.freedesktop.org/software/systemd/man/latest/systemd.timer.html#RandomizedDelaySec=

        drwho@masto.hackers.townD This user is from outside of this forum
        drwho@masto.hackers.townD This user is from outside of this forum
        drwho@masto.hackers.town
        wrote sidst redigeret af
        #132

        @jak2k @benjamineskola @hzulla Vixie cron supports jitter, but defaults to "none.'

        Cronie supports it, and it picks a random jitter value on boot or whenever it restarts. I use it on my boxen, that's how I stumbled across it.

        I've also found this technique useful: https://cronradar.com/blog/cron-midnight-load-spreading

        1 Reply Last reply
        0
        • johntimaeus@infosec.exchangeJ johntimaeus@infosec.exchange

          @benjamineskola @funkylab @hzulla

          Easily solved with anachron (usual default random delay is 0-45 minutes)

          drwho@masto.hackers.townD This user is from outside of this forum
          drwho@masto.hackers.townD This user is from outside of this forum
          drwho@masto.hackers.town
          wrote sidst redigeret af
          #133

          @johntimaeus @benjamineskola @funkylab @hzulla Ooh! Good mention!

          1 Reply Last reply
          0
          • drwho@masto.hackers.townD This user is from outside of this forum
            drwho@masto.hackers.townD This user is from outside of this forum
            drwho@masto.hackers.town
            wrote sidst redigeret af
            #134

            @psymar @maya_b It's 120 VAC.

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

              @psymar

              it is for most outlets, but clothes dryer and oven will have special 240V outlets

              drwho@masto.hackers.townD This user is from outside of this forum
              drwho@masto.hackers.townD This user is from outside of this forum
              drwho@masto.hackers.town
              wrote sidst redigeret af
              #135

              @maya_b @psymar And special power runs.

              1 Reply Last reply
              0
              • stevebellovin@infosec.exchangeS stevebellovin@infosec.exchange

                @paul_ipv6 @mattblaze @hzulla My original load projection for Netnews, back when we were designing it in late 1979, as “1–2 messages a day, from 50-100 computers, mostly about Unix system internals”… I was off by far more than two orders of magnitude, of course, which is why I never went in for traffic forecasting.

                drwho@masto.hackers.townD This user is from outside of this forum
                drwho@masto.hackers.townD This user is from outside of this forum
                drwho@masto.hackers.town
                wrote sidst redigeret af
                #136

                @SteveBellovin @paul_ipv6 @mattblaze @hzulla Nor I. Early on I was asked to forecast how big a DDoS our link at the office could withstand before we were completely cut off. The next day the first gigabit DDoS attack was detected, easily three zeros above what the office DSL line could handle.

                1 Reply Last reply
                0
                • 20002ist@thepit.social2 20002ist@thepit.social

                  @SteveBellovin @mattblaze @hzulla brb writing a horror novel called “Children of the Cron.”

                  drwho@masto.hackers.townD This user is from outside of this forum
                  drwho@masto.hackers.townD This user is from outside of this forum
                  drwho@masto.hackers.town
                  wrote sidst redigeret af
                  #137

                  @20002ist @SteveBellovin @mattblaze @hzulla Sequel to _Crop Circles In the Korn Shell_?

                  1 Reply Last reply
                  0
                  • itgrrl@infosec.exchangeI itgrrl@infosec.exchange

                    @hzulla more for constraints on local compute capacity than the global power grid, but I can't be the only sysadmin who routinely staggers recurring jobs likely updates or backups to kick off at semi-random times like 02:17, 03:43, etc., based on exactly this sort of reasoning… 🤔

                    drwho@masto.hackers.townD This user is from outside of this forum
                    drwho@masto.hackers.townD This user is from outside of this forum
                    drwho@masto.hackers.town
                    wrote sidst redigeret af
                    #138

                    @itgrrl @hzulla You're not. I do this in my exocortex. Biggest stagger is about six hours, shortest is about three minutes.

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

                      @hzulla Cron, of course, dates back to a world in which:

                      - computers were a significantly smaller part of the load on the power grid
                      - we didn't have tightly synchronized clocks everywhere (no NTP yet)
                      - we didn't have architectures in which power consumption was as tightly linked to computational load

                      Software often outlives all sorts of assumptions!

                      bellegraylane@universeodon.comB This user is from outside of this forum
                      bellegraylane@universeodon.comB This user is from outside of this forum
                      bellegraylane@universeodon.com
                      wrote sidst redigeret af
                      #139

                      @mattblaze @hzulla i was thinking of this earlier after reading the news. Cron is now harming the grid because of course we didn’t think of that. Haha

                      1 Reply Last reply
                      0
                      • czauner@social.vivaldi.netC czauner@social.vivaldi.net

                        @hzulla

                        The Linux Cron doesn't have a -J / -j option?

                        Sorry, I'm too lazy to look that up, but that's what I'm using on BSD. Not because I care for the power-grid, but It keeps load-spikes at bay (hello, Disk-IO)

                        drwho@masto.hackers.townD This user is from outside of this forum
                        drwho@masto.hackers.townD This user is from outside of this forum
                        drwho@masto.hackers.town
                        wrote sidst redigeret af
                        #140

                        @czauner @hzulla Several crond implementations support -J and -J, but they're off by default.

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

                          @gabrielesvelto @benjamineskola @funkylab @hzulla I don't think any of the cron implementations that I've used have implemented RANDOM_DELAY across many *nixes.

                          shaknais@mastodon.socialS This user is from outside of this forum
                          shaknais@mastodon.socialS This user is from outside of this forum
                          shaknais@mastodon.social
                          wrote sidst redigeret af
                          #141

                          @DamonHD

                          RANDOM_DELAY is part of the POSIX standard, so I actually would be very, very surprised, if they don't.

                          Cronie, anachon, and even systemd supports it.

                          damonhd@mastodon.socialD 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

                            tomjennings@tldr.nettime.orgT This user is from outside of this forum
                            tomjennings@tldr.nettime.orgT This user is from outside of this forum
                            tomjennings@tldr.nettime.org
                            wrote sidst redigeret af
                            #142

                            @hzulla

                            Interesting. I've always assumed this and im allergic to :00 times. Probably i absorbed this from time immemorial and forgot it.

                            It also seems obvious. Not for power spikes, but everything else spikes, cpu etc.

                            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

                              R This user is from outside of this forum
                              R This user is from outside of this forum
                              rogandawes@infosec.exchange
                              wrote sidst redigeret af
                              #143

                              @hzulla I asked the question about 4 years ago in the Home Assistant Reddit: https://www.reddit.com/r/homeassistant/s/rgqYwtLDZH

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

                                @hzulla

                                UK tv broadcasters had to deliberately stagger their commercial breaks as everyone put the kettle on to make tea during the commercials. And none of that non-British 1kW kettle nonsense, proper British kettles are 3kW!

                                notsoloud@expressional.socialN This user is from outside of this forum
                                notsoloud@expressional.socialN This user is from outside of this forum
                                notsoloud@expressional.social
                                wrote sidst redigeret af
                                #144

                                @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 1 Reply Last reply
                                0
                                • amethyst@hachyderm.ioA amethyst@hachyderm.io

                                  @veronica @hzulla

                                  Yeah, I know at my last place we had to add deliberate a deliberate couple minutes of jitter to user-scheduled jobs because clients would all choose the same time!

                                  D This user is from outside of this forum
                                  D This user is from outside of this forum
                                  drchaos@sauropods.win
                                  wrote sidst redigeret af
                                  #145

                                  @amethyst @veronica @hzulla same here - active monitoring would create concurrent spikes in system load (which we don't archive over months) and thus in job runtime (which is kept for analysis) not really visible with the naked eye, but looking at the latter using resampling and fft made it really visible. We moved that part of the active monitoring to a later point in the script and selected a different start time in all calling offices...
                                  Yeah, obvious in hindsight.

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

                                    @SteveBellovin @mattblaze @hzulla In the late 1990s I worked at a place that had a hundred or so systems all using the same file server. We used a simple wrapper for cron jobs run by all systems to smear out the impact: extract low octet of IP address, sleep that many seconds before starting.

                                    Nowadays I manage about 300 systems, but net and CPU and storage are fast enough that we don't get crowd-load effects. If we did I'd repeat the scheme but sleep N/10 or N/100 seconds.

                                    There's something to be said for changing cron to insert small random delays. I don't think it often (if ever) matters if a job starts a fraction of a second, or even a few seconds, after the exact start of the minute.

                                    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
                                    #146

                                    @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 1 Reply Last reply
                                    0
                                    • maya_b@hachyderm.ioM maya_b@hachyderm.io

                                      @hzulla

                                      UK tv broadcasters had to deliberately stagger their commercial breaks as everyone put the kettle on to make tea during the commercials. And none of that non-British 1kW kettle nonsense, proper British kettles are 3kW!

                                      azonenberg@ioc.exchangeA This user is from outside of this forum
                                      azonenberg@ioc.exchangeA This user is from outside of this forum
                                      azonenberg@ioc.exchange
                                      wrote sidst redigeret af
                                      #147

                                      @maya_b @hzulla I have heard stories about both power and plumbing system impacts from halftime/commercial breaks during major sporting events like the super bowl

                                      1 Reply Last reply
                                      0
                                      • dianea@lgbtqia.spaceD This user is from outside of this forum
                                        dianea@lgbtqia.spaceD This user is from outside of this forum
                                        dianea@lgbtqia.space
                                        wrote sidst redigeret af
                                        #148

                                        @psymar @maya_b

                                        Yes, in the USA, we have 120V through 14g sized wire, which is good enough for about 15 amps. I measure about 1600 watts for devices that claim 1800 watts. Some outlets are rated for 20 amps and those should be wired with 12g sized wire, or property damage is much more likely. For the stoves and clothes dryers, 10g sized wire is used at minimum, rated for 30 amps.

                                        Imagine if all car chargers started at EXACTLY the same hundredth of a second, on the same rising phase of the waveform. You would be able hear the power company turbines ring like a bell from the magnetic hammer.

                                        1 Reply Last reply
                                        0
                                        • patrislav@chaos.socialP patrislav@chaos.social

                                          @jane namely RandomizedDelaySec in systemd.timer.

                                          It was probably intended to avoid CPU and network congestion, but it’s interesting that we also have to think about power spikes.

                                          @hzulla

                                          patpro@social.patpro.netP This user is from outside of this forum
                                          patpro@social.patpro.netP This user is from outside of this forum
                                          patpro@social.patpro.net
                                          wrote sidst redigeret af
                                          #149

                                          @patrislav @jane @hzulla

                                          Exactly. Jitter option (-j for users, -J for root) was introduced in cron in FreeBSD 5.3 (late 1993) in order to address system load spikes. The grid effect was probably not evaluated at the time, because CPU/RAM/Network were scarce back then, compared to electricity.

                                          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