Changes between Version 65 and Version 66 of SettingUpBuildslave


Ignore:
Timestamp:
09/23/16 08:50:32 (8 years ago)
Author:
Samuli Seppänen
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SettingUpBuildslave

    v65 v66  
    1111
    1212'''NOTE:''' The buildslave needs root access to be able to connect to the t_client.sh test servers using OpenVPN. Moreover, anyone who controls the buildmaster can do whatever he wants on the buildslaves by simply modifying the build procedure. For this reason you should only run buildslaves on expendable virtual machines. That said, you can grant limited ''sudo'' privileges to a normal user to run buildbot as a normal user: see section "Running builtbot as non-root user" for details.
     13
     14= Creating a VM for the buildslave =
     15
     16A Linux VM will probably need at least 768MB of memory. Some distros such as Fedora 24 suggests 1024MB as the bare minimum. The VM should have at least 8GB of diskspace, but adding a bit more helps avoid problems later on.
    1317
    1418= Ensure that OpenVPN builds correctly =
     
    358362}}}
    359363This method is  a bit hackish but works fine.
     364
     365== Buildslaves running out of disk or inodes ==
     366
     367The buildslaves consume large amount of diskspace and inodes:
     368
     369{{{
     370$ df -m|grep -E '(^Filesystem|vda1)'
     371Filesystem     1M-blocks  Used Available Use% Mounted on
     372/dev/vda1           9196  4342      4365  50% /
     373
     374$ df -i|grep -E '(^Filesystem|vda1)'
     375Filesystem     Inodes  IUsed  IFree IUse% Mounted on
     376/dev/vda1      606208 274616 331592   46% /
     377}}}
     378
     379Because buildslave leaves obsolete build directories laying around, removing them can help free up some space and inodes:
     380
     381{{{
     382$ rm -rf /var/lib/buildbot/slaves/openvpn/build-*
     383}}}
     384
     385On Ubuntu it is fairly important to remove useless kernels and kernel headers periodically:
     386
     387{{{
     388$ apt-get autoremove
     389}}}