ReleaseEngineering/Applications/Slavealloc: Difference between revisions

Jump to navigation Jump to search
Line 57: Line 57:
Once this was set up, the 'slavealloc dbinit' command was used to initialize the database.
Once this was set up, the 'slavealloc dbinit' command was used to initialize the database.


The production and staging tac files are in <tt>/build/slavealloc</tt>.  Staging runs on port 1079, and production runs on 1080.  The files are similar to those [http://hg.mozilla.org/build/tools/file/828895e6a5d3/lib/python/slavealloc/contrib in hg].  Note, however, that the MySQL db URL must end with <tt>;pool_recycle=1800</tt> to automatically expire connections before the MySQL server itself does.  If this still occurs, we can look to the example of the [https://github.com/djmitche/buildbot/blob/master/master/buildbot/db/enginestrategy.py#L31 Buildbot source] for a better solution.
The production and staging tac files are in <tt>/build/slavealloc</tt>.  Staging runs on port 1079, and production runs on 1080.  The files are similar to those [http://hg.mozilla.org/build/tools/file/828895e6a5d3/lib/python/slavealloc/contrib in hg], and include the commented <tt>pool_recycle</tt> line, with timeout 400, to automatically expire connections before the MySQL server itself does.  If this still occurs, we can look to the example of the [https://github.com/djmitche/buildbot/blob/master/master/buildbot/db/enginestrategy.py#L31 Buildbot source] for a better solution.


Startup is done via initscripts, the initscripts are [http://hg.mozilla.org/build/tools/file/828895e6a5d3/lib/python/slavealloc/contrib/ in hg].
Startup is done via initscripts, the initscripts are [http://hg.mozilla.org/build/tools/file/828895e6a5d3/lib/python/slavealloc/contrib/ in hg].
canmove, Confirmed users
1,394

edits

Navigation menu