canmove, Confirmed users
1,394
edits
(→Nginx) |
No edit summary |
||
| Line 1: | Line 1: | ||
== Application Description == | == Application Description == | ||
Slavealloc is a client-server application. The client is [http://hg.mozilla.org/build/puppet-manifests/file/tip/modules/buildslave/files/runslave.py runslave.py]. Communication is via a very basic HTTP request to http://slavealloc.build.mozilla.org/production/gettac/$slavename, where the response is expected to be a <tt>buildbot.tac</tt> file suitable for use to start buildslave. | Slavealloc is a client-server application. The client is [http://hg.mozilla.org/build/puppet-manifests/file/tip/modules/buildslave/files/runslave.py runslave.py]. Communication is via a very basic HTTP request to http://slavealloc.build.mozilla.org/production/gettac/$slavename, where the response is expected to be a <tt>buildbot.tac</tt> file suitable for use to start buildslave. | ||
| Line 42: | Line 41: | ||
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 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]. | ||
Startup is done via initscripts, the initscripts are [http://hg.mozilla.org/build/tools/file/828895e6a5d3/lib/python/slavealloc/contrib/ in hg]. | |||
== External Resources == | == External Resources == | ||
The slavealloc server uses the following external resources: | |||
* two MySQL databases (production and staging) | |||
* VM host for the slaveallocator VM | |||
== Security == | == Security == | ||
| Line 60: | Line 59: | ||
sandbox/bin/pip install -e . | sandbox/bin/pip install -e . | ||
Then you can run the slavealloc daemon locally from the root of the tools repository with a simple: | Then you can run the slavealloc daemon locally from the root of the tools repository with a simple: | ||
sandbox/bin/twistd -noy slavealloc-combined.tac | sandbox/bin/twistd -noy lib/python/slavealloc/contrib/slavealloc-combined.tac | ||
Note that due to what I believe to be a bug in pip, you may need to explicitly install Twisted to get the twistd executable installed: | Note that due to what I believe to be a bug in pip, you may need to explicitly install Twisted to get the twistd executable installed: | ||
pip install -U twisted | pip install -U twisted | ||