<pre style='margin:0'>
larryv pushed a commit to branch embiggen-buildbot-caches
in repository macports-infrastructure.

</pre>
<p><a href="https://github.com/macports/macports-infrastructure/commit/55689b53f31aec4a1d80c4313ab3f24a196050f6">https://github.com/macports/macports-infrastructure/commit/55689b53f31aec4a1d80c4313ab3f24a196050f6</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 55689b53f31aec4a1d80c4313ab3f24a196050f6
</span>Author: Lawrence Velázquez <larryv@macports.org>
AuthorDate: Mon Oct 31 19:31:33 2016 -0400

<span style='display:block; white-space:pre;color:#404040;'>    buildbot: Cache more Change and BuildRequest objects
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    -   Increase the BuildRequests cache setting from 1 (the default) to
</span><span style='display:block; white-space:pre;color:#404040;'>        200. The Buildbot documentation [*] recommends that "this number
</span><span style='display:block; white-space:pre;color:#404040;'>        should be higher than the typical number of outstanding build
</span><span style='display:block; white-space:pre;color:#404040;'>        requests." Right now, we have roughly 100 outstanding requests.
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>        Also set SourceStamps and ssdicts to match because SourceStamps
</span><span style='display:block; white-space:pre;color:#404040;'>        "should generally be similar to the number BuildRequests" and
</span><span style='display:block; white-space:pre;color:#404040;'>        ssdicts "should be similar to the value for SourceStamps."
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    -   Increase the Changes cache setting from 10 (the default) to 100. The
</span><span style='display:block; white-space:pre;color:#404040;'>        Buildbot documentation recommends caching more Change objects when
</span><span style='display:block; white-space:pre;color:#404040;'>        using a DVCS.
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>            [The Changes setting] should be larger than the number of
</span><span style='display:block; white-space:pre;color:#404040;'>            changes that typically arrive in the span of a few minutes,
</span><span style='display:block; white-space:pre;color:#404040;'>            otherwise your schedulers will be reloading changes from the
</span><span style='display:block; white-space:pre;color:#404040;'>            database every time they run. For distributed version control
</span><span style='display:block; white-space:pre;color:#404040;'>            systems, like Git or Hg, several thousand changes may arrive at
</span><span style='display:block; white-space:pre;color:#404040;'>            once, so setting this parameter to something like 10000 isn't
</span><span style='display:block; white-space:pre;color:#404040;'>            unreasonable.
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>        We're not expecting thousand-commit pushes, but I've certainly seen
</span><span style='display:block; white-space:pre;color:#404040;'>        committers push dozens of commits.
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>        Also, set chdicts to match because it "should be similar to the
</span><span style='display:block; white-space:pre;color:#404040;'>        value for Changes."
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    [*]: http://docs.buildbot.net/0.8.12/manual/cfg-global.html#caches
</span>---
 buildbot/master.cfg | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/buildbot/master.cfg b/buildbot/master.cfg
</span><span style='display:block; white-space:pre;color:#808080;'>index e8b6d6d..f3f590f 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/buildbot/master.cfg
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/buildbot/master.cfg
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -88,7 +88,9 @@ config = {
</span>     # Data lifetime
     # (http://docs.buildbot.net/0.8.12/manual/cfg-global.html#data-lifetime)
     'buildhorizon': 10000,
<span style='display:block; white-space:pre;background:#e0ffe0;'>+    'cachedbuildrequests': 200,
</span>     'cachedbuilds': 600,
<span style='display:block; white-space:pre;background:#e0ffe0;'>+    'cachedchanges': 100,
</span>     'eventhorizon': 2000,
     'loghorizon': 5000
     }
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -878,5 +880,10 @@ c['buildHorizon'] = config['buildhorizon']
</span> c['logHorizon'] = config['loghorizon']
 c['eventHorizon'] = config['eventhorizon']
 c['caches'] = {
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    'Builds': config['cachedbuilds']
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    'BuildRequests': config['cachedbuildrequests'],
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    'Builds': config['cachedbuilds'],
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    'Changes': config['cachedchanges'],
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    'chdicts': config['cachedchanges'],
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    'SourceStamps': config['cachedbuildrequests'],
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    'ssdicts': config['cachedbuildrequests']
</span>     }
</pre><pre style='margin:0'>

</pre>