From: Mark Wielaard <mark@klomp.org>
To: buildbot@sourceware.org
Cc: Mark Wielaard <mark@klomp.org>
Subject: [COMMITTED] Make all GitPollers poll every 3 to 5 minutes
Date: Sun, 26 Jun 2022 14:48:31 +0200 [thread overview]
Message-ID: <20220626124831.30400-1-mark@klomp.org> (raw)
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
reply other threads:[~2022-06-26 12:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220626124831.30400-1-mark@klomp.org \
--to=mark@klomp.org \
--cc=buildbot@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).