public inbox for buildbot@sourceware.org
 help / color / mirror / Atom feed
* [COMMITTED] Make all GitPollers poll every 3 to 5 minutes
@ 2022-06-26 12:48 Mark Wielaard
  0 siblings, 0 replies; only message in thread
From: Mark Wielaard @ 2022-06-26 12:48 UTC (permalink / raw)
  To: buildbot; +Cc: Mark Wielaard

We don't want to poll at the exact same time for all GitPollers. We
used to use a different prime number between 180 and 300 seconds as
pollInterval. But there is a simpler method that doesn't require an
unique number for each poller. Just set pollInterval to 3 * 60 seconds
and pollRandomDelayMax to 2 * 60 seconds.
---
 builder/master.cfg | 39 +++++++++++++++++++++++++--------------
 1 file changed, 25 insertions(+), 14 deletions(-)

diff --git a/builder/master.cfg b/builder/master.cfg
index 9d0de09..3c21d52 100644
--- a/builder/master.cfg
+++ b/builder/master.cfg
@@ -181,58 +181,65 @@ c['protocols'] = {'pb': {'port': 9989}}
 
 # the 'change_source' setting tells the buildmaster how it should find out
 # about source code changes.
-# We want to poll every ~3/4 minutes (180/240 seconds), but don't want to
-# poll at exactly the same time so use the next unused prime number as poll
-# interval: 181 191 193 197 199 211 223 227 229 233 239 241 251 257 263 269
+# We want to poll every ~3/5 minutes (180/300 seconds), but don't want to
+# poll at exactly the same time so use a pollInterval of 3 * 60 seconds
+# and a pollRandomDelayMax of 2 * 60 seconds.
 
 c['change_source'] = []
 
 sourceware_repourl='https://sourceware.org/git/builder.git'
 sourceware_gitpoller = changes.GitPoller(repourl=sourceware_repourl,
                                          branches=['main'],
-                                         pollInterval=180,
+                                         pollInterval=3*60,
+                                         pollRandomDelayMax=2*60,
                                          project='sourceware')
 c['change_source'].append(sourceware_gitpoller)
 
 elfutils_repourl='https://sourceware.org/git/elfutils.git'
 elfutils_gitpoller = changes.GitPoller(repourl=elfutils_repourl,
                                        branches=['master'],
-                                       pollInterval=181,
+                                       pollInterval=3*60,
+                                       pollRandomDelayMax=2*60,
                                        project='elfutils')
 c['change_source'].append(elfutils_gitpoller)
 
 libabigail_repourl='https://sourceware.org/git/libabigail.git'
 libabigail_gitpoller = changes.GitPoller(repourl=libabigail_repourl,
                                          branches=['master'],
-                                         pollInterval=191,
+                                         pollInterval=3*60,
+                                         pollRandomDelayMax=2*60,
                                          project='libabigail')
 c['change_source'].append(libabigail_gitpoller)
 
 dwz_repourl='https://sourceware.org/git/dwz.git'
 dwz_gitpoller = changes.GitPoller(repourl=dwz_repourl,
                                   branches=['master'],
-                                  pollInterval=193,
+                                  pollInterval=3*60,
+                                  pollRandomDelayMax=2*60,
                                   project='dwz')
 c['change_source'].append(dwz_gitpoller)
 
 bzip2_repourl='https://sourceware.org/git/bzip2.git'
 bzip2_gitpoller = changes.GitPoller(repourl=bzip2_repourl,
                                     branches=['master'],
-                                    pollInterval=197,
+                                    pollInterval=3*60,
+                                    pollRandomDelayMax=2*60,
                                     project='bzip2')
 c['change_source'].append(bzip2_gitpoller)
 
 valgrind_repourl='https://sourceware.org/git/valgrind.git'
 valgrind_gitpoller = changes.GitPoller(repourl=valgrind_repourl,
                                        branches=['master'],
-                                       pollInterval=199,
+                                       pollInterval=3*60,
+                                       pollRandomDelayMax=2*60,
                                        project='valgrind')
 c['change_source'].append(valgrind_gitpoller)
 
 debugedit_repourl='https://sourceware.org/git/debugedit.git'
 debugedit_gitpoller = changes.GitPoller(repourl=debugedit_repourl,
                                         branches=['main'],
-                                        pollInterval=211,
+                                        pollInterval=3*60,
+                                        pollRandomDelayMax=2*60,
                                         project='debugedit')
 c['change_source'].append(debugedit_gitpoller)
 
@@ -240,7 +247,8 @@ c['change_source'].append(debugedit_gitpoller)
 gccrust_repourl='https://code.wildebeest.org/git/mirror/gccrs'
 gccrust_gitpoller = changes.GitPoller(repourl=gccrust_repourl,
                                       branches=['master'],
-                                      pollInterval=223,
+                                      pollInterval=3*60,
+                                      pollRandomDelayMax=2*60,
                                       project='gccrust')
 c['change_source'].append(gccrust_gitpoller)
 
@@ -256,21 +264,24 @@ binutils_gdb_repourl='https://sourceware.org/git/binutils-gdb.git'
 binutils_gdb_gitpoller = changes.GitPoller(repourl=binutils_gdb_repourl,
                                            branches=master_and_users_try_branches,
                                            buildPushesWithNoCommits=True,
-                                           pollInterval=317,
+                                           pollInterval=3*60,
+                                           pollRandomDelayMax=2*60,
                                            project='binutils-gdb')
 c['change_source'].append(binutils_gdb_gitpoller)
 
 gcc_repourl='https://gcc.gnu.org/git/gcc.git'
 gcc_gitpoller = changes.GitPoller(repourl=gcc_repourl,
                                   branches=['master'],
-                                  pollInterval=341,
+                                  pollInterval=3*60,
+                                  pollRandomDelayMax=2*60,
                                   project='gcc')
 c['change_source'].append(gcc_gitpoller)
 
 glibc_repourl='https://sourceware.org/git/glibc.git'
 glibc_gitpoller = changes.GitPoller(repourl=glibc_repourl,
                                     branches=['master'],
-                                    pollInterval=512,
+                                    pollInterval=3*60,
+                                    pollRandomDelayMax=2*60,
                                     project='glibc')
 c['change_source'].append(glibc_gitpoller)
 
-- 
2.30.2


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-26 12:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-26 12:48 [COMMITTED] Make all GitPollers poll every 3 to 5 minutes Mark Wielaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).