[llvm-commits] [zorg] r172767 - in /zorg/trunk/buildbot/osuosl/master: buildbot.tac master.cfg

Galina Kistanova gkistanova at gmail.com
Thu Jan 17 15:34:42 PST 2013


Author: gkistanova
Date: Thu Jan 17 17:34:42 2013
New Revision: 172767

URL: http://llvm.org/viewvc/llvm-project?rev=172767&view=rev
Log:
Changed few setting for llvm build master: db_url, rotateLength, maxRotatedFiles.

Modified:
    zorg/trunk/buildbot/osuosl/master/buildbot.tac
    zorg/trunk/buildbot/osuosl/master/master.cfg

Modified: zorg/trunk/buildbot/osuosl/master/buildbot.tac
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/buildbot/osuosl/master/buildbot.tac?rev=172767&r1=172766&r2=172767&view=diff
==============================================================================
--- zorg/trunk/buildbot/osuosl/master/buildbot.tac (original)
+++ zorg/trunk/buildbot/osuosl/master/buildbot.tac Thu Jan 17 17:34:42 2013
@@ -3,8 +3,23 @@
 import os
 
 basedir = os.path.dirname(os.path.abspath(__file__))
+rotateLength = 10000000 # 10 MiB
+maxRotatedFiles = 20
 configfile = r'master.cfg'
 
 application = service.Application('buildmaster')
-BuildMaster(basedir, configfile).setServiceParent(application)
 
+try:
+  from twisted.python.logfile import LogFile
+  from twisted.python.log import ILogObserver, FileLogObserver
+  logfile = LogFile.fromFullPath(os.path.join(basedir, "twistd.log"),
+                                 rotateLength=rotateLength, maxRotatedFiles=maxRotatedFiles)
+  application.setComponent(ILogObserver, FileLogObserver(logfile).emit)
+except ImportError:
+  # probably not yet twisted 8.2.0 and beyond, can't set log yet
+  pass
+
+m = BuildMaster(basedir, configfile)
+m.setServiceParent(application)
+m.log_rotation.rotateLength = rotateLength
+m.log_rotation.maxRotatedFiles = maxRotatedFiles

Modified: zorg/trunk/buildbot/osuosl/master/master.cfg
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/buildbot/osuosl/master/master.cfg?rev=172767&r1=172766&r2=172767&view=diff
==============================================================================
--- zorg/trunk/buildbot/osuosl/master/master.cfg (original)
+++ zorg/trunk/buildbot/osuosl/master/master.cfg Thu Jan 17 17:34:42 2013
@@ -62,8 +62,9 @@
 # Number of builds to cache in memory.
 c['buildCacheSize'] = 200
 
-# Use gzip instead of bz2, to reduce server load.
-c['logCompressionMethod'] = 'gz'
+# Do not compress logs to reduce server load.
+# We have a designated build master with large enough HDD.
+c['logCompressionLimit'] = False
 
 ####### BUILDERS
 
@@ -152,4 +153,4 @@
 
 ####### DB URL
 
-c['db_url'] = "sqlite:///state.sqlite"
+c['db_url'] = "postgresql://localhost/buildmasterdb"





More information about the llvm-commits mailing list