Changes between Initial Version and Version 1 of Infrastructure/MovingTrac


Ignore:
Timestamp:
05/27/2013 07:49:06 PM (15 months ago)
Author:
tom.prince
Comment:

Move MovingTrac

Legend:

Unmodified
Added
Removed
Modified
  • Infrastructure/MovingTrac

    v1 v1  
     1{{{ 
     2#!html 
     3<div style="background: #ffff99; padding: 10px; border: 1px solid #ffcc88"> 
     4This information is about the old deployment on cube, but is left here, since some of the details are still relevant haven't been documented properly elsewhere. 
     5</div> 
     6}}} 
     7 
     8Trac is currently deployed on twistedmatrix.com using a custom build of postgres on an old version of Ubuntu on some old hardware. 
     9 
     10We have a new, better piece of hardware donated by Dreamhost, and we may get newer, better hardware donated in the future.  So we'd like to move it around. 
     11 
     12Moving trac is possible - we even have new hardware - but the enterprising administrator who would like to help us with this needs to be aware of a few issues. 
     13 
     14Trac, along with postgres, is installed into ~trac-migration on cube.  Postgres is compiled into `~/.local/` and the database cluster is in `~/Database/`.  This was done because we are running Ubuntu 8.04 LTS, and the most recent packaged version of Postgres for that platform is 8.3, and we were told by some trac developers that upgrading to 8.4 would help.  
     15 
     16The newer hosting is running on Debian, which is still kind of old, but ''does'' have a system packaged install of postgresql-8.4.  So when Trac is moved we should use the system installed database instead, since this will get automatic security updates. 
     17 
     18The other thing that needs to be updated is the SVN repository mirror, which is replicated to be local to Trac so that the source browser works.  Our production version control system is on wolfwood.twistedmatrix.com, and each revision is pushed over to cube.twistedmatrix.com by a post-commit hook. 
     19 
     20An SVN post-commit hook also pushes SVN changes to trac along a second channel using a PB server deployed with trac.  The post-commit hook needs the correct address for that PB server, which will need to move along with the trac server. 
     21 
     22trac and kenaan (an IRC commit/notification bot) also interact.  trac uses programs from lp:twisted-trac-integration to send messages to kenaan.  For this, trac needs to be configured with the correct address at which kenaan is listening.  If kenaan is not moved at the same time as trac, the configuration probably needs to change from pointing at localhost to pointing across a network.  If kenaan is moved, other things pointing at it need to be updated.  The location of kenaan is configured inside lp:twisted-trac-integration. 
     23 
     24Once the database moves, the high scores daemon needs to be moved as well, since it talks to the same database. 
     25 
     26Trac also sends emails when tickets are done, so the local mail server needs to be able to send mail on behalf of Twisted. 
     27 
     28DiffResource (currently deployed in ~diffresource on cube) needs to know the public URL of trac, but otherwise doesn't need to be nearby the trac deployment (alternatively, it can be pointed at a Frack deployment). 
     29 
     30Finally there is the web server, but its configuration is fairly centralized in ~www-data. 
     31 
     32So, a handy brief list of dependencies for Trac to work on a new host is: 
     33 
     34  - web server 
     35  - postgres 
     36  - highscores server 
     37  - svn mirror 
     38  - svn post-commit config update 
     39  - private trac pb server for accepting commit notification 
     40  - lp:twisted-trac-integration, with updated configuration to point at kenaan 
     41 
     42And the list of things that need to be updated but not ''necessarily'' re-deployed onto the new host with trac: 
     43 
     44  - diffresource 
     45 
     46Other questions: 
     47 
     48  - mailman (hosted beneath the main web server)? 
     49  - exim4 (twistedmatrix.com mx)? 
     50  - HTTP latency measurements (currently all measuring over localhost, should stay that way)?