<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Transition Technology: Ticket #670: Roll back performance customisations and use stock BOA settings where possible</title>
    <link>http://localhost:8080/trac/ticket/670</link>
    <description>&lt;p&gt;
&lt;strong&gt;Issue&lt;/strong&gt;
Given so much has changed since the initial issues on the server, I now strongly recommend reverting all settings changes that do not add features back to stock BOA settings after the next BOA release.
&lt;/p&gt;
&lt;p&gt;
These would include all MySQL, PHP, FPM, Redis and other settings that have been for performance reasons, or to combat the situation where there was hardware/IO issues with the underlying server. I'm most interested in FPM and MySQL settings.
&lt;/p&gt;
&lt;p&gt;
The next version of BOA will include some improvements we need (&lt;a class="ext-link" href="https://tech.transitionnetwork.org/trac/ticket/629"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;see 629: Upgrades to BOA&lt;/a&gt; which should handle load on our server with a lot of CPU cores. With this in place we'll be able to revert more easily to stock settings.
&lt;/p&gt;
&lt;p&gt;
&lt;em&gt;Rationale&lt;/em&gt;
I'm not talking about rolling back changes that provide us with features or mission-critical capabilities, just the changes to the subsystems I list above for performance reasons.
&lt;/p&gt;
&lt;p&gt;
It's my belief that these enhancements no longer match the needs of the server since the changes to filesystem and underlying hardware fixes have been completed. They also represent an ongoing risk around updates, future planning -- plus it's possible they might mean Puffin's web services need more memory than it otherwise would, costing TN more than it should need to spend on hardware.
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;Proposed solution&lt;/strong&gt;
&lt;/p&gt;
&lt;ol&gt;&lt;li&gt;Await the next version of BOA, and setup the enhanced load settings per the documentation.
&lt;/li&gt;&lt;li&gt;Revert all other changes to conf files for MySQL, PHP, FPM, Redis that do not add a feature or are not mission-critical.
&lt;/li&gt;&lt;li&gt;Review &lt;tt&gt;/root/.barracuda.cnf&lt;/tt&gt; and turn off any overrides and customisations we don't now need as a result of 2).
&lt;/li&gt;&lt;li&gt;Run the BOA &lt;tt&gt;BOND.sh&lt;/tt&gt; script to do the tuning of the server appropriate to the memory requirements. This will tune for the current levels on first pass.
&lt;/li&gt;&lt;li&gt;Review Munin and site performance. If we need to make any tweaks then we can do a minimal set as required -- keeping an eye on memory usage.
&lt;/li&gt;&lt;li&gt;Once a few days have gone by I would hope that the overall memory use will be lower, OR with more cached data. At this point we can either re-run the barracuda installer with the &lt;tt&gt;_RESERVED_RAM&lt;/tt&gt; set to 1-4 Gb, or simply reduce the memory available to Puffin.
&lt;/li&gt;&lt;li&gt;Repeat from 4, using BOND.sh to optimise for the new memory footprint.
&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;
Clearly, it's possible no memory savings can be made, or just 1Gb or so is sensible. Either way, rolling back the changes made for a system that has changed immensely is worth attempting to compare current (tweaked) performance to the stock system. Since current settings are all documented and can be backed up, we should be able to test this with no risk and the ability to roll back as needed.
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;Next steps&lt;/strong&gt;
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Chris and Ed to give their thoughts.
&lt;/li&gt;&lt;li&gt;Ed to green-light before we proceed in too much detail or take any action.
&lt;/li&gt;&lt;li&gt;Chris and Jim to establish the changes and outcomes.
&lt;/li&gt;&lt;li&gt;Chris, Jim and whoever to do the new optimisation process.
&lt;/li&gt;&lt;/ul&gt;</description>
    <language>en-us</language>
    <image>
      <title>Transition Technology</title>
      <url>/trac/chrome/site/TransitionNetwork-Logo-Web-Small.jpg</url>
      <link>http://localhost:8080/trac/ticket/670</link>
    </image>
    <generator>Trac 0.12.5</generator>
    <item>
      
        <dc:creator>jim</dc:creator>

      <pubDate>Sat, 11 Jan 2014 20:51:30 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/670#comment:1</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.2&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.2&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>jim</dc:creator>

      <pubDate>Sat, 11 Jan 2014 20:51:50 GMT</pubDate>
      <title>cc changed</title>
      <link>http://localhost:8080/trac/ticket/670#comment:2</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670#comment:2</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;cc&lt;/strong&gt;
              &lt;em&gt;jim&lt;/em&gt; added
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
CC me...
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Sat, 11 Jan 2014 21:15:03 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/670#comment:3</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670#comment:3</guid>
      <description>
        &lt;p&gt;
On Sat 11-Jan-2014 at 08:51:30PM -0000, Transiton Technology Trac wrote:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
Given so much has changed since the initial issues on the server, I now
strongly recommend reverting all settings changes that do not add features
back to stock BOA settings after the next BOA release.
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
I'm happy to give this a try, the main thing we need to watch for is the number of php-fpm processes.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Sun, 12 Jan 2014 11:35:03 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/670#comment:4</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670#comment:4</guid>
      <description>
        &lt;p&gt;
Can you post copies of all the files that will be clobbered on the next BOA upgrade to Trac so we have them available for reference.
&lt;/p&gt;
&lt;p&gt;
The main thing that I expect will change is that there will be a dramatic shift of memory allocation away from MySQL and to php-fpm.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>ed</dc:creator>

      <pubDate>Mon, 13 Jan 2014 08:50:35 GMT</pubDate>
      <title>cc, owner, status changed</title>
      <link>http://localhost:8080/trac/ticket/670#comment:5</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670#comment:5</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;cc&lt;/strong&gt;
              &lt;em&gt;sam&lt;/em&gt; added
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;owner&lt;/strong&gt;
              changed from &lt;em&gt;ed&lt;/em&gt; to &lt;em&gt;jim&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;new&lt;/em&gt; to &lt;em&gt;assigned&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
I'm fine with this if it is about how we are needing less specialisations for BOA - particularly around the handover, and watching JK's epic Sherlock impersonation over the weekend on &lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/610" title="defect: Aegir database intensive (migrate, clone, restore) tasks hang for larger ... (closed: fixed)"&gt;#610&lt;/a&gt; and this will make it more standard, and theefore more handover-able.
&lt;/p&gt;
&lt;p&gt;
Jim and Chris to work together *very very* closely and document the arse of it please.
&lt;/p&gt;
&lt;p&gt;
Adding Sam cc
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Mon, 13 Jan 2014 11:43:14 GMT</pubDate>
      <title>attachment set</title>
      <link>http://localhost:8080/trac/ticket/670</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;attachment&lt;/strong&gt;
                set to &lt;em&gt;csf.allow.txt&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
/etc/csf/csf.allow
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Mon, 13 Jan 2014 11:43:36 GMT</pubDate>
      <title>attachment set</title>
      <link>http://localhost:8080/trac/ticket/670</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;attachment&lt;/strong&gt;
                set to &lt;em&gt;csf.blocklists.txt&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
/etc/csf/csf.blocklists
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Mon, 13 Jan 2014 11:43:54 GMT</pubDate>
      <title>attachment set</title>
      <link>http://localhost:8080/trac/ticket/670</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;attachment&lt;/strong&gt;
                set to &lt;em&gt;csf.conf.txt&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
/etc/csf/csf.conf
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Mon, 13 Jan 2014 11:44:11 GMT</pubDate>
      <title>attachment set</title>
      <link>http://localhost:8080/trac/ticket/670</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;attachment&lt;/strong&gt;
                set to &lt;em&gt;my.cnf.txt&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
/etc/mysql/my.cnf
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Mon, 13 Jan 2014 11:45:32 GMT</pubDate>
      <title>attachment set</title>
      <link>http://localhost:8080/trac/ticket/670</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;attachment&lt;/strong&gt;
                set to &lt;em&gt;nginx.conf.txt&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
/var/aegir/config/server_master/nginx.conf
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Mon, 13 Jan 2014 11:45:52 GMT</pubDate>
      <title>attachment set</title>
      <link>http://localhost:8080/trac/ticket/670</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;attachment&lt;/strong&gt;
                set to &lt;em&gt;php53-fpm.conf.txt&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
/opt/local/etc/php53-fpm.conf
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Mon, 13 Jan 2014 11:46:14 GMT</pubDate>
      <title>attachment set</title>
      <link>http://localhost:8080/trac/ticket/670</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;attachment&lt;/strong&gt;
                set to &lt;em&gt;second.sh.txt&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
/var/xdrago/second.sh
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Mon, 13 Jan 2014 13:24:35 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/670#comment:6</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670#comment:6</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;2.16&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.2&lt;/em&gt; to &lt;em&gt;2.36&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
I have attached all the files that I think have been changed from the default BOA settings, but it is possible that I might have missed one or two, Jim can you check this list?
&lt;/p&gt;
&lt;p&gt;
They have been posted here so that when the next BOA upgrade clobbers all these files we will, if needs be, be able to revert the clobbering.
&lt;/p&gt;
&lt;p&gt;
I have also done some updating of &lt;a class="wiki" href="http://localhost:8080/trac/wiki/PuffinServer"&gt;wiki:PuffinServer&lt;/a&gt; but more is needed.
&lt;/p&gt;
&lt;h2 id="etccsfcsf.allow"&gt;/etc/csf/csf.allow&lt;/h2&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="attachment" href="http://localhost:8080/trac/attachment/ticket/670/csf.allow.txt" title="Attachment 'csf.allow.txt' in Ticket #670"&gt;attachment:csf.allow.txt&lt;/a&gt;&lt;a class="trac-rawlink" href="http://localhost:8080/trac/raw-attachment/ticket/670/csf.allow.txt" title="Download"&gt;​&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
A backup of this file has also been created on the server for future diffing:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;tt&gt;/etc/csf/csf.allow.2013-01-13.bak&lt;/tt&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
In this file we have allowed some specific IP addresses, two for munin (though at the moment only the penguin one is needed):
&lt;/p&gt;
&lt;pre class="wiki"&gt;tcp:in:d=4949:s=81.95.52.102 # munin.webarch.net
tcp:in:d=4949:s=81.95.52.111 # penguin.webarch.net
&lt;/pre&gt;&lt;p&gt;
And we have allowed the Webarchitects monitoring server, this enables email alerts to be sent to the Webarchitects sysadmins when a service which is being monitored goes down:
&lt;/p&gt;
&lt;pre class="wiki"&gt;81.95.52.66 # webarch monitoring server - Manually allowed - Wed Aug  7 10:56:54 2013
&lt;/pre&gt;&lt;p&gt;
See &lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/544" title="maintenance: CSF / LDF false positive blocks on Puffin (closed: fixed)"&gt;ticket:544&lt;/a&gt; for more on this.
&lt;/p&gt;
&lt;h2 id="etccsfcsf.blocklists"&gt;/etc/csf/csf.blocklists&lt;/h2&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="attachment" href="http://localhost:8080/trac/attachment/ticket/670/csf.blocklists.txt" title="Attachment 'csf.blocklists.txt' in Ticket #670"&gt;attachment:csf.blocklists.txt&lt;/a&gt;&lt;a class="trac-rawlink" href="http://localhost:8080/trac/raw-attachment/ticket/670/csf.blocklists.txt" title="Download"&gt;​&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
A backup of this file has also been created on the server for future diffing:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;tt&gt;/etc/csf/csf.blocklists.2013-01-13.bak&lt;/tt&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
In this file we have enabled various blacklists, specifically:
&lt;/p&gt;
&lt;pre class="wiki"&gt;# Spamhaus Don't Route Or Peer List (DROP)
# Details: http://www.spamhaus.org/drop/
SPAMDROP|86400|0|http://www.spamhaus.org/drop/drop.lasso
# Spamhaus Extended DROP List (EDROP)
# Details: http://www.spamhaus.org/drop/
SPAMEDROP|86400|0|http://www.spamhaus.org/drop/edrop.lasso
# DShield.org Recommended Block List
# Details: http://dshield.org
DSHIELD|86400|0|http://feeds.dshield.org/block.txt
# BOGON list
# Details: http://www.team-cymru.org/Services/Bogons/
BOGON|86400|0|http://www.cymru.com/Documents/bogon-bn-agg.txt
# Project Honey Pot Directory of Dictionary Attacker IPs
# Details: http://www.projecthoneypot.org
HONEYPOT|86400|0|http://www.projecthoneypot.org/list_of_ips.php?t=d&amp;amp;rss=1
# BruteForceBlocker IP List
# Details: http://danger.rulez.sk/index.php/bruteforceblocker/
BFB|86400|0|http://danger.rulez.sk/projects/bruteforceblocker/blist.php
# OpenBL.org 30 day List
# Details: http://www.openbl.org
OPENBL|86400|0|http://www.us.openbl.org/lists/base_30days.txt
# Autoshun Shun List
# Details: http://www.autoshun.org/
AUTOSHUN|86400|0|http://www.autoshun.org/files/shunlist.csv
&lt;/pre&gt;&lt;p&gt;
The enabling of these blacklists was done on &lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/589" title="maintenance: Blocking spammers at a firewall level (closed: fixed)"&gt;ticket:589&lt;/a&gt;.
&lt;/p&gt;
&lt;h2 id="etccsfcsf.conf"&gt;/etc/csf/csf.conf&lt;/h2&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="attachment" href="http://localhost:8080/trac/attachment/ticket/670/csf.conf.txt" title="Attachment 'csf.conf.txt' in Ticket #670"&gt;attachment:csf.conf.txt&lt;/a&gt;&lt;a class="trac-rawlink" href="http://localhost:8080/trac/raw-attachment/ticket/670/csf.conf.txt" title="Download"&gt;​&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
A backup of this file has also been created on the server for future diffing:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;tt&gt;/etc/csf/csf.conf.2013-01-13.bak&lt;/tt&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
This files has various amendments, the following list is based on doing a diff with the oldest backup, the ones listed are the ones which have either been done before we set &lt;tt&gt;_CUSTOM_CONFIG_CSF=YES&lt;/tt&gt; in &lt;tt&gt;/root/.barracuda.cnf&lt;/tt&gt; and look significant, or ones which have clearly been done manually, this means that not all of these settings will be clobbered with the next BOA upgrade, this is how the diff was done:
&lt;/p&gt;
&lt;pre class="wiki"&gt;cd /etc/csf
diff csf.conf-pre-BOA-2.0.4-121215-1555 csf.conf | vim -
&lt;/pre&gt;&lt;p&gt;
To allow Mosh connections:
&lt;/p&gt;
&lt;pre class="wiki"&gt;# Allow incoming UDP ports
UDP_IN = "20,21,53,123,161,33434:33523,60000:60040"
# Allow outgoing UDP ports
# To allow outgoing traceroute add 33434:33523 to this list
UDP_OUT = "20,21,53,113,123,161,33434:33523,60000:60040"
&lt;/pre&gt;&lt;p&gt;
See &lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/673" title="maintenance: Install mosh - the mobile shell (closed: fixed)"&gt;ticket:673&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
Enable email alerts to be sent to me for monitoring:
&lt;/p&gt;
&lt;pre class="wiki"&gt;LF_ALERT_TO = "chris@webarchitects.co.uk"
X_ARF_TO = "chris@webarchitects.co.uk"
&lt;/pre&gt;&lt;p&gt;
Switch off testing and auto updates:
&lt;/p&gt;
&lt;pre class="wiki"&gt;TESTING = "0"
AUTO_UPDATES = "0"
&lt;/pre&gt;&lt;p&gt;
TCP ports:
&lt;/p&gt;
&lt;pre class="wiki"&gt;TCP_IN = "20,21,22,37,53,80,443,2401,5280,9418,30000:50000"
TCP_OUT = "20,21,22,25,37,53,80,110,143,443,465,587,873,993,995,1129,2401,3306,5280,9418,11371,27017,30000:50000"
&lt;/pre&gt;&lt;p&gt;
Disallow pings:
&lt;/p&gt;
&lt;pre class="wiki"&gt;ICMP_IN = "0"
&lt;/pre&gt;&lt;p&gt;
Ensure that the server isn't vulnerable to a DOS which exploits the behaviour of csf IP blocking:
&lt;/p&gt;
&lt;pre class="wiki"&gt;DENY_IP_LIMIT = "100"
&lt;/pre&gt;&lt;p&gt;
Port flood settings:
&lt;/p&gt;
&lt;pre class="wiki"&gt;SYNFLOOD = "1"
CONNLIMIT = "22;19,80;19,443;19,53;5"
PORTFLOOD = "22;tcp;9;29,1433;tcp;1;900"
&lt;/pre&gt;&lt;p&gt;
Logging:
&lt;/p&gt;
&lt;pre class="wiki"&gt;DROP_OUT_LOGGING = "1"
LOGFLOOD_ALERT = "1"
&lt;/pre&gt;&lt;p&gt;
We are not running a IMAP or POP3 server and we are not using Apache:
&lt;/p&gt;
&lt;pre class="wiki"&gt;LF_POP3D = "0"
LF_IMAPD = "0"
LF_HTACCESS = "0"
LF_MODSEC = "0"
LT_EMAIL_ALERT = "0"
&lt;/pre&gt;&lt;p&gt;
Distributed attack settings:
&lt;/p&gt;
&lt;pre class="wiki"&gt;LF_DISTATTACK = "1"
LF_DISTATTACK_UNIQ = "3"
LF_DISTFTP = "5"
LF_DISTFTP_UNIQ = "5"
LF_DISTFTP_PERM = "900"
&lt;/pre&gt;&lt;p&gt;
Process time tracking:
&lt;/p&gt;
&lt;pre class="wiki"&gt;PT_LIMIT = "0"
&lt;/pre&gt;&lt;p&gt;
User process tracking:
&lt;/p&gt;
&lt;pre class="wiki"&gt;PT_USERPROC = "0"
PT_USERMEM = "0"
PT_USERTIME = "0"
PT_USERKILL_ALERT = "0"
&lt;/pre&gt;&lt;p&gt;
Forkbomb:
&lt;/p&gt;
&lt;pre class="wiki"&gt;PT_FORKBOMB = "250"
&lt;/pre&gt;&lt;p&gt;
Port scan tracking:
&lt;/p&gt;
&lt;pre class="wiki"&gt;PS_INTERVAL = "120"
PS_LIMIT = "19"
&lt;/pre&gt;&lt;p&gt;
User ID tracking:
&lt;/p&gt;
&lt;pre class="wiki"&gt;UID_INTERVAL = "0"
UID_LIMIT = "10"
UID_PORTS = "0:65535,ICMP"
&lt;/pre&gt;&lt;p&gt;
We only have CSF on one server:
&lt;/p&gt;
&lt;pre class="wiki"&gt;CLUSTER_BLOCK = "0"
&lt;/pre&gt;&lt;h2 id="etcmysqlmy.cnf"&gt;/etc/mysql/my.cnf&lt;/h2&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="attachment" href="http://localhost:8080/trac/attachment/ticket/670/my.cnf.txt" title="Attachment 'my.cnf.txt' in Ticket #670"&gt;attachment:my.cnf.txt&lt;/a&gt;&lt;a class="trac-rawlink" href="http://localhost:8080/trac/raw-attachment/ticket/670/my.cnf.txt" title="Download"&gt;​&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
A backup of this file has also been created on the server for future diffing:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;/etc/mysql/my.cnf.2013-01-13.bak
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
All the changes to &lt;tt&gt;/etc/mysql/my.cnf&lt;/tt&gt; should be linked from &lt;a class="assigned ticket" href="http://localhost:8080/trac/ticket/587" title="maintenance: Puffin MySQL Tuning (assigned)"&gt;ticket:587&lt;/a&gt;, reading through the file these are the ones that stand out:
&lt;/p&gt;
&lt;pre class="wiki"&gt;[mysqld]
tmpdir                  = /run/shm/mysql
join_buffer_size        = 256M
key_buffer_size         = 256M
max_connections         = 40
max_user_connections    = 40
query_cache_limit       = 2M
query_cache_size        = 768M
query_cache_min_res_unit = 1K
sort_buffer_size        = 512K
bulk_insert_buffer_size = 256K
table_open_cache        = 6144
table_definition_cache  = 6144
table_cache             = 20480
tmp_table_size          = 2048M
max_heap_table_size     = 4096M
max_tmp_tables          = 32768
open_files_limit        = 196608
innodb_buffer_pool_size = 1536M
&lt;/pre&gt;&lt;h2 id="varaegirconfigserver_masternginx.conf"&gt;/var/aegir/config/server_master/nginx.conf&lt;/h2&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="attachment" href="http://localhost:8080/trac/attachment/ticket/670/nginx.conf.txt" title="Attachment 'nginx.conf.txt' in Ticket #670"&gt;attachment:nginx.conf.txt&lt;/a&gt;&lt;a class="trac-rawlink" href="http://localhost:8080/trac/raw-attachment/ticket/670/nginx.conf.txt" title="Download"&gt;​&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
A backup of this file has also been created on the server for future diffing:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;tt&gt;/var/aegir/config/server_master/nginx.conf.2013-01-13.bak&lt;/tt&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
The changes made to this file are to ename Munin graphs based on Nginx and php-fpm status and they are documented on here: &lt;a class="wiki" href="http://localhost:8080/trac/wiki/PuffinServer#nginxconfigchanges"&gt;wiki:PuffinServer#nginxconfigchanges&lt;/a&gt;
&lt;/p&gt;
&lt;pre class="wiki"&gt;  location /nginx_status {
    stub_status on;
    access_log   off;
    allow 127.0.0.1;
    allow 81.95.52.103;
    deny all;
  }
  location ~ ^/(status|ping)$ {
    fastcgi_pass 127.0.0.1:9090;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_intercept_errors on;
    include fastcgi_params;
    access_log off;
    allow 127.0.0.1;
    deny all;
  }
&lt;/pre&gt;&lt;h2 id="optlocaletcphp53-fpm.conf"&gt;/opt/local/etc/php53-fpm.conf&lt;/h2&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="attachment" href="http://localhost:8080/trac/attachment/ticket/670/php53-fpm.conf.txt" title="Attachment 'php53-fpm.conf.txt' in Ticket #670"&gt;attachment:php53-fpm.conf.txt&lt;/a&gt;&lt;a class="trac-rawlink" href="http://localhost:8080/trac/raw-attachment/ticket/670/php53-fpm.conf.txt" title="Download"&gt;​&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
A backup of this file has also been created on the server for future diffing:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;tt&gt;/opt/local/etc/php53-fpm.conf.2013-01-13.bak&lt;/tt&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
The changes to this file, (see &lt;a class="wiki" href="http://localhost:8080/trac/wiki/PuffinServer#php-fpmconfigchanges"&gt;wiki:PuffinServer#php-fpmconfigchanges&lt;/a&gt;) relate to enabling the Munin graphs:
&lt;/p&gt;
&lt;pre class="wiki"&gt;pm.status_path = /status
ping.path = /ping
&lt;/pre&gt;&lt;p&gt;
And to reducing the number of php-fpm processes:
&lt;/p&gt;
&lt;pre class="wiki"&gt;pm.start_servers = 4
pm.max_spare_servers = 4
&lt;/pre&gt;&lt;h2 id="varxdragosecond.sh"&gt;/var/xdrago/second.sh&lt;/h2&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="attachment" href="http://localhost:8080/trac/attachment/ticket/670/second.sh.txt" title="Attachment 'second.sh.txt' in Ticket #670"&gt;attachment:second.sh.txt&lt;/a&gt;&lt;a class="trac-rawlink" href="http://localhost:8080/trac/raw-attachment/ticket/670/second.sh.txt" title="Download"&gt;​&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
The changes in this file, (see &lt;a class="wiki" href="http://localhost:8080/trac/wiki/PuffinServer#xdragoshellscriptchanges"&gt;wiki:PuffinServer#xdragoshellscriptchanges&lt;/a&gt;) are to increase the suicide thresholds:
&lt;/p&gt;
&lt;pre class="wiki"&gt;CTL_ONEX_SPIDER_LOAD=2716
CTL_FIVX_SPIDER_LOAD=2716
CTL_ONEX_LOAD=10108
CTL_FIVX_LOAD=6216
CTL_ONEX_LOAD_CRIT=13216
CTL_FIVX_LOAD_CRIT=10885
&lt;/pre&gt;&lt;p&gt;
See &lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/555" title="maintenance: Load spikes causing the TN site to be stopped for 15 min at a time (closed: fixed)"&gt;ticket:555&lt;/a&gt; for background info.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Mon, 13 Jan 2014 13:54:58 GMT</pubDate>
      <title>attachment set</title>
      <link>http://localhost:8080/trac/ticket/670</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;attachment&lt;/strong&gt;
                set to &lt;em&gt;puffin-2013-01-13-multips_memory-year.png&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Mon, 13 Jan 2014 13:55:07 GMT</pubDate>
      <title>attachment set</title>
      <link>http://localhost:8080/trac/ticket/670</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;attachment&lt;/strong&gt;
                set to &lt;em&gt;puffin-2013-01-13-phpfpm_average-week.png&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Mon, 13 Jan 2014 13:55:16 GMT</pubDate>
      <title>attachment set</title>
      <link>http://localhost:8080/trac/ticket/670</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;attachment&lt;/strong&gt;
                set to &lt;em&gt;puffin-2013-01-13-phpfpm_status-week.png&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Mon, 13 Jan 2014 13:55:26 GMT</pubDate>
      <title>attachment set</title>
      <link>http://localhost:8080/trac/ticket/670</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;attachment&lt;/strong&gt;
                set to &lt;em&gt;puffin-2013-01-13-phpfpm_status-year.png&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Mon, 13 Jan 2014 14:30:06 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/670#comment:7</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670#comment:7</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.35&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;2.36&lt;/em&gt; to &lt;em&gt;2.71&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;h2 id="Memory:MySQLvsphp-fpm"&gt;Memory: MySQL vs php-fpm&lt;/h2&gt;
&lt;p&gt;
I suspect that the key change that reverting the default BOA configs will result in is a dramatic shift of memory allocation away from MySQL to php-fpm.
&lt;/p&gt;
&lt;p&gt;
See the changes from the default setting documented above:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/670#etcmysqlmy.cnf" title="maintenance: Roll back performance customisations and use stock BOA settings where ... (closed: fixed)"&gt;ticket:670#etcmysqlmy.cnf&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/670#optlocaletcphp53-fpm.conf" title="maintenance: Roll back performance customisations and use stock BOA settings where ... (closed: fixed)"&gt;ticket:670#optlocaletcphp53-fpm.conf&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
This week (not an unusual week as far as I'm aware) the site has been running with a average of 1.22 php-fpm processes and has spiked to a max of around 12 active processes:
&lt;/p&gt;
&lt;p&gt;
&lt;a style="padding:0; border:none" href="http://localhost:8080/trac/attachment/ticket/670/puffin-2013-01-13-phpfpm_status-week.png"&gt;&lt;img src="http://localhost:8080/trac/raw-attachment/ticket/670/puffin-2013-01-13-phpfpm_status-week.png" /&gt;&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
Each process takes around 90MB of RAM (though some of this might be shared between processes?):
&lt;/p&gt;
&lt;p&gt;
&lt;a style="padding:0; border:none" href="http://localhost:8080/trac/attachment/ticket/670/puffin-2013-01-13-phpfpm_average-week.png"&gt;&lt;img src="http://localhost:8080/trac/raw-attachment/ticket/670/puffin-2013-01-13-phpfpm_average-week.png" /&gt;&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
Times when the default BOA settings has set the number of php-fpm processes a lot higher (it's currently set to 5) can be seen in this graph:
&lt;/p&gt;
&lt;p&gt;
&lt;a style="padding:0; border:none" href="http://localhost:8080/trac/attachment/ticket/670/puffin-2013-01-13-phpfpm_status-year.png"&gt;&lt;img src="http://localhost:8080/trac/raw-attachment/ticket/670/puffin-2013-01-13-phpfpm_status-year.png" /&gt;&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
At thoses times the higher minimum number of php-fpm processes resulted in a higher overall memory usage by php-fpm:
&lt;/p&gt;
&lt;p&gt;
&lt;a style="padding:0; border:none" href="http://localhost:8080/trac/attachment/ticket/670/puffin-2013-01-13-multips_memory-year.png"&gt;&lt;img src="http://localhost:8080/trac/raw-attachment/ticket/670/puffin-2013-01-13-multips_memory-year.png" /&gt;&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
Since, most of the time, there is no need for a lot of php-fpm processes the minimum number of processes has been dramatically reduced and the memory that this has saved has been allocated to MySQL via large increases in the cache settings.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Mon, 13 Jan 2014 14:34:58 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/670#comment:8</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670#comment:8</guid>
      <description>
        &lt;p&gt;
Oops, all the filenames used for the Munin graphs above should have 2014 in them not 2013...
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>jim</dc:creator>

      <pubDate>Mon, 13 Jan 2014 14:49:51 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/670#comment:9</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670#comment:9</guid>
      <description>
        &lt;p&gt;
Good info, thanks Chris... Question: according to the chart, memory per FPM process was at its lowest in March when we commissioned the server and the settings were default -- what's changed between then and now do you think?
&lt;/p&gt;
&lt;p&gt;
I wonder if FPM's usage is shared as you say, or other settings/caches/buffers have an impact on it.
&lt;/p&gt;
&lt;p&gt;
The purpose of this ticket is a sanity check and to establish a) if we need our current customistions, b) if they can be improved, c) if the lessons can be learned and passed back to the BOA project.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Mon, 13 Jan 2014 17:48:02 GMT</pubDate>
      <title>attachment set</title>
      <link>http://localhost:8080/trac/ticket/670</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;attachment&lt;/strong&gt;
                set to &lt;em&gt;tmp_phpfpm_average-year-1317618564.png&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Mon, 13 Jan 2014 18:01:18 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/670#comment:10</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670#comment:10</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.25&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;2.71&lt;/em&gt; to &lt;em&gt;2.96&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Replying to &lt;a href="http://localhost:8080/trac/ticket/670#comment:9" title="Comment 9 for Ticket #670"&gt;jim&lt;/a&gt;:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
Question: according to the chart, memory per FPM process was at its lowest in March when we commissioned the server and the settings were default -- what's changed between then and now do you think?
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
I don't know, looking at the Timeline (note annoying use of US date format)
&lt;a class="ext-link" href="https://trac.transitionnetwork.org/trac/timeline?from=06%2F01%2F13&amp;amp;daysback=30&amp;amp;authors=&amp;amp;milestone=on&amp;amp;ticket=on&amp;amp;changeset=on&amp;amp;wiki=on&amp;amp;update=Update"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://trac.transitionnetwork.org/trac/timeline?from=06%2F01%2F13&amp;amp;daysback=30&amp;amp;authors=&amp;amp;milestone=on&amp;amp;ticket=on&amp;amp;changeset=on&amp;amp;wiki=on&amp;amp;update=Update&lt;/a&gt; it could be the upgrade to BOA 2.0.9?
&lt;/p&gt;
&lt;p&gt;
&lt;a style="padding:0; border:none" href="http://localhost:8080/trac/attachment/ticket/670/tmp_phpfpm_average-year-1317618564.png"&gt;&lt;img src="http://localhost:8080/trac/raw-attachment/ticket/670/tmp_phpfpm_average-year-1317618564.png" /&gt;&lt;/a&gt;
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 15 Jan 2014 10:02:07 GMT</pubDate>
      <title>attachment set</title>
      <link>http://localhost:8080/trac/ticket/670</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;attachment&lt;/strong&gt;
                set to &lt;em&gt;puffin-2014-01-15-mysql_qcache_mem-year.png&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 15 Jan 2014 10:10:30 GMT</pubDate>
      <title>attachment set</title>
      <link>http://localhost:8080/trac/ticket/670</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;attachment&lt;/strong&gt;
                set to &lt;em&gt;redis.conf.txt&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
/etc/redis/redis.conf
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 15 Jan 2014 10:28:47 GMT</pubDate>
      <title>cc, hours, component, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/670#comment:11</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670#comment:11</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;cc&lt;/strong&gt;
              &lt;em&gt;planetlarg&lt;/em&gt; added
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.25&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;component&lt;/strong&gt;
                changed from &lt;em&gt;Unassigned&lt;/em&gt; to &lt;em&gt;Live server&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;2.96&lt;/em&gt; to &lt;em&gt;3.21&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Nick added as a CC.
&lt;/p&gt;
&lt;p&gt;
This graph illustrates the additional memory we have allocated to MySQL and the tweaks we have made varying the RAM allocated to the query cache between 1GB and 0.5GB:
&lt;/p&gt;
&lt;p&gt;
&lt;a style="padding:0; border:none" href="http://localhost:8080/trac/attachment/ticket/670/puffin-2014-01-15-mysql_qcache_mem-year.png"&gt;&lt;img src="http://localhost:8080/trac/raw-attachment/ticket/670/puffin-2014-01-15-mysql_qcache_mem-year.png" /&gt;&lt;/a&gt;
&lt;/p&gt;
&lt;h2 id="etcredisredis.conf"&gt;/etc/redis/redis.conf&lt;/h2&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="attachment" href="http://localhost:8080/trac/attachment/ticket/670/redis.conf.txt" title="Attachment 'redis.conf.txt' in Ticket #670"&gt;attachment:redis.conf.txt&lt;/a&gt;&lt;a class="trac-rawlink" href="http://localhost:8080/trac/raw-attachment/ticket/670/redis.conf.txt" title="Download"&gt;​&lt;/a&gt;​
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
A backup of this file has also been created on the server for future diffing:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;/etc/redis/redis.conf.2014-01-15.bak
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
Looking at a diff with the oldest backup in &lt;tt&gt;/etc/redis/&lt;/tt&gt;:
&lt;/p&gt;
&lt;pre class="wiki"&gt;diff redis.conf-pre-BOA-2.0.5-130108-1232 redis.conf | vim -
281c281
&amp;lt; maxmemory 512MB
---
&amp;gt; maxmemory 1024MB
&lt;/pre&gt;&lt;p&gt;
We have doubled the memory available to Redis to 1GB.
&lt;/p&gt;
&lt;pre class="wiki"&gt;maxmemory 1024MB
&lt;/pre&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Fri, 17 Jan 2014 10:00:28 GMT</pubDate>
      <title>attachment set</title>
      <link>http://localhost:8080/trac/ticket/670</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;attachment&lt;/strong&gt;
                set to &lt;em&gt;barracuda.cnf.txt&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
/root/.barracuda.cnf
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Fri, 17 Jan 2014 10:51:18 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/670#comment:12</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670#comment:12</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.85&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;3.21&lt;/em&gt; to &lt;em&gt;4.06&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;h2 id="root.barracuda.cnf"&gt;/root/.barracuda.cnf&lt;/h2&gt;
&lt;p&gt;
I have backed up the &lt;tt&gt;/root/.barracuda.cnf&lt;/tt&gt; file to &lt;tt&gt;/root/.barracuda.cnf.2014-01-17.bak&lt;/tt&gt; and removed the &lt;tt&gt;_NEWRELIC_KEY&lt;/tt&gt; variable from &lt;tt&gt;/root/.barracuda.cnf&lt;/tt&gt; as it's no longer needed and attached it here:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="attachment" href="http://localhost:8080/trac/attachment/ticket/670/barracuda.cnf.txt" title="Attachment 'barracuda.cnf.txt' in Ticket #670"&gt;attachment:barracuda.cnf.txt&lt;/a&gt;&lt;a class="trac-rawlink" href="http://localhost:8080/trac/raw-attachment/ticket/670/barracuda.cnf.txt" title="Download"&gt;​&lt;/a&gt;​
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
In order to reverse all the customisation that we have done I think these are the things we need to look at in &lt;tt&gt;/root/.barracuda.cnf&lt;/tt&gt; before the next BOA update, &lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/629" title="maintenance: Upgrade to BOA-2.1.3 Stable Edition (closed: wontfix)"&gt;ticket:629&lt;/a&gt;
&lt;/p&gt;
&lt;pre class="wiki"&gt;_XTRAS_LIST="PDS CSF CHV"
&lt;/pre&gt;&lt;p&gt;
The options for this are, listed here &lt;a class="ext-link" href="http://drupalcode.org/project/barracuda.git/blob/HEAD:/docs/NOTES.txt#l2"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://drupalcode.org/project/barracuda.git/blob/HEAD:/docs/NOTES.txt#l2&lt;/a&gt;
&lt;/p&gt;
&lt;pre class="wiki"&gt;Xtras included with "ALL" wildcard:
CGP --- Collectd Graph Panel
CHV --- Chive DB Manager
CSF --- Firewall
CSS --- Compass Tools
FTP --- Pure-FTPd server with forced FTPS
PDS --- Fast DNS Cache Server (pdnsd)
WMN --- Webmin Control Panel
Xtras which need to be listed explicitly:
BDD --- SQL Buddy DB Manager
BND --- Bind9 DNS Server
BZR --- Bazaar
FMG --- FFmpeg support
GIT --- Latest Git from sources
SR1 --- Apache Solr 1 with Jetty 7
SR3 --- Apache Solr 3 with Jetty 8
SR4 --- Apache Solr 4 with Jetty 8 or 9
&lt;/pre&gt;&lt;p&gt;
Is anyone using the Chive DB Manager? It is available here:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://chive.master.puffin.webarch.net/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://chive.master.puffin.webarch.net/&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
Chive is a web interface to MySQL, see &lt;a class="ext-link" href="http://www.chive-project.com/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://www.chive-project.com/&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
If Chive would be useful to people I can add some documentation about it to &lt;a class="wiki" href="http://localhost:8080/trac/wiki/PuffinServer"&gt;wiki:PuffinServer&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
I'm not sure why we have a FTP server running when we don't have &lt;tt&gt;FTP&lt;/tt&gt; set in &lt;tt&gt;_XTRAS_LIST&lt;/tt&gt;? See the note at the end of &lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/674#comment:4" title="maintenance: Puffin locked up (closed: fixed)"&gt;ticket:674#comment:4&lt;/a&gt;
&lt;/p&gt;
&lt;pre class="wiki"&gt;_AUTOPILOT=YES
&lt;/pre&gt;&lt;p&gt;
&lt;strong&gt;We really need to change this to &lt;tt&gt;NO&lt;/tt&gt;&lt;/strong&gt; as I think this is the cause of the problems with the Debian upgrade, see &lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/535#comment:23" title="maintenance: Upgrade Puffin, Penguin and Parrot from Debian Squeeze to Wheezy (closed: fixed)"&gt;ticket:535#comment:23&lt;/a&gt;
&lt;/p&gt;
&lt;pre class="wiki"&gt;_PHP_FPM_WORKERS=AUTO
&lt;/pre&gt;&lt;p&gt;
If we end up with a lot of unneeded PHP-FPM processes, see &lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/670#Memory:MySQLvsphp-fpm" title="maintenance: Roll back performance customisations and use stock BOA settings where ... (closed: fixed)"&gt;ticket:670#Memory:MySQLvsphp-fpm&lt;/a&gt; we might want to set this to 4 or so.
&lt;/p&gt;
&lt;pre class="wiki"&gt;_PHP_FPM_VERSION=5.3
_PHP_CLI_VERSION=5.3
&lt;/pre&gt;&lt;p&gt;
We are using the default versiopn of PHP, see &lt;a class="ext-link" href="http://drupalcode.org/project/barracuda.git/blob/HEAD:/BARRACUDA.sh.txt"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://drupalcode.org/project/barracuda.git/blob/HEAD:/BARRACUDA.sh.txt&lt;/a&gt; the other options are 5.5, 5.4, and 5.2.
&lt;/p&gt;
&lt;pre class="wiki"&gt;_LOAD_LIMIT_ONE=8664
_LOAD_LIMIT_TWO=5328
&lt;/pre&gt;&lt;p&gt;
See &lt;a class="wiki" href="http://localhost:8080/trac/wiki/PuffinServer#LoadSpikes"&gt;wiki:PuffinServer#LoadSpikes&lt;/a&gt; for notes on these thresholds.
&lt;/p&gt;
&lt;pre class="wiki"&gt;#_CUSTOM_CONFIG_SQL=NO
_CUSTOM_CONFIG_SQL=YES
&lt;/pre&gt;&lt;p&gt;
We have a customised &lt;tt&gt;/etc/mysql/my.cnf&lt;/tt&gt;, see &lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/670#etcmysqlmy.cnf" title="maintenance: Roll back performance customisations and use stock BOA settings where ... (closed: fixed)"&gt;ticket:670#etcmysqlmy.cnf&lt;/a&gt;
&lt;/p&gt;
&lt;pre class="wiki"&gt;#_CUSTOM_CONFIG_PHP_5_3=NO
_CUSTOM_CONFIG_PHP_5_3=YES
&lt;/pre&gt;&lt;p&gt;
We have a customised &lt;tt&gt;/opt/local/etc/php53-fpm.conf&lt;/tt&gt; see &lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/670#optlocaletcphp53-fpm.conf" title="maintenance: Roll back performance customisations and use stock BOA settings where ... (closed: fixed)"&gt;ticket:670#optlocaletcphp53-fpm.conf&lt;/a&gt;
&lt;/p&gt;
&lt;pre class="wiki"&gt;_SYSTEM_UPGRADE_ONLY=YES
&lt;/pre&gt;&lt;p&gt;
Should this be set to &lt;tt&gt;NO&lt;/tt&gt;? As it is it will prevent cause the skipping of Aegir Master Instance upgrades, see &lt;a class="ext-link" href="http://drupalcode.org/project/barracuda.git/blob/HEAD:/BARRACUDA.sh.txt#l346"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://drupalcode.org/project/barracuda.git/blob/HEAD:/BARRACUDA.sh.txt#l346&lt;/a&gt;
&lt;/p&gt;
&lt;pre class="wiki"&gt;_SQUEEZE_TO_WHEEZY=YES
&lt;/pre&gt;&lt;p&gt;
This can be changed to &lt;tt&gt;NO&lt;/tt&gt; since we are on Wheezy now.
&lt;/p&gt;
&lt;p&gt;
Anything else I have missed?
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>jim</dc:creator>

      <pubDate>Wed, 29 Jan 2014 16:16:23 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/670#comment:13</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670#comment:13</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.05&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;4.06&lt;/em&gt; to &lt;em&gt;4.11&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Chris, my time is running out so I'm going to leave this in your capable hands -- though if there are specific questions or tasks I'll answer/do them when they come up.
&lt;/p&gt;
&lt;p&gt;
All the above looks good... The only thing we've added to the BOA setup (though it's not a change from stock as BOA supports this) within the &lt;a class="missing wiki"&gt;Aegir/Drupal?&lt;/a&gt; world is the &lt;a class="ext-link" href="https://github.com/transitionnetwork/transitionnetwork.org-d6.profile/blob/master/override.global.php"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;/data/conf/override.global.inc&lt;/a&gt; file to do some Session 443 and developer tweaks.
&lt;/p&gt;
&lt;p&gt;
So I'm presently happy with this if you are.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 29 Jan 2014 16:39:04 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/670#comment:14</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670#comment:14</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.25&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;4.11&lt;/em&gt; to &lt;em&gt;4.36&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Replying to &lt;a href="http://localhost:8080/trac/ticket/670#comment:13" title="Comment 13 for Ticket #670"&gt;jim&lt;/a&gt;:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
So I'm presently happy with this if you are.
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
I'm happy that we have documented all the tweaks that have been made and I'm happy to see what the default settings would be, but I expect after the next BOA upgrade we will need to redo these changes:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Edit the firewall scripts to stop some things being blocked and block other things &lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/670#etccsfcsf.allow" title="maintenance: Roll back performance customisations and use stock BOA settings where ... (closed: fixed)"&gt;ticket:670#etccsfcsf.allow&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;Edit the database config to give it more RAM, it is currently using &lt;a class="ext-link" href="https://penguin.transitionnetwork.org/munin/transitionnetwork.org/puffin.transitionnetwork.org/multips_memory.html"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;2.5G&lt;/a&gt; see &lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/670#etcmysqlmy.cnf" title="maintenance: Roll back performance customisations and use stock BOA settings where ... (closed: fixed)"&gt;ticket:670#etcmysqlmy.cnf&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;Edit the PHP-FPM config to reduce the number of processes and amount of RAM it has &lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/670#Memory:MySQLvsphp-fpm" title="maintenance: Roll back performance customisations and use stock BOA settings where ... (closed: fixed)"&gt;ticket:670#Memory:MySQLvsphp-fpm&lt;/a&gt; see &lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/670#optlocaletcphp53-fpm.conf" title="maintenance: Roll back performance customisations and use stock BOA settings where ... (closed: fixed)"&gt;ticket:670#optlocaletcphp53-fpm.conf&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
But I'd be happy to find that the above tweaks were not needed.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Mon, 31 Mar 2014 13:15:19 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/670#comment:15</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670#comment:15</guid>
      <description>
        &lt;p&gt;
Reviewing the changes we need to make to &lt;tt&gt;/root/.barracuda.cnf&lt;/tt&gt; prior to tonights upgrade, see &lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/707" title="maintenance: Upgrade to BOA-2.2.2 (closed: fixed)"&gt;ticket:707&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
I think we can change this:
&lt;/p&gt;
&lt;pre class="wiki"&gt;#_XTRAS_LIST="PDS CSF CHV"
_XTRAS_LIST="PDS CSF"
&lt;/pre&gt;&lt;p&gt;
As we don't need Chive do we?
&lt;/p&gt;
&lt;pre class="wiki"&gt;CHV --- Chive DB Manager
&lt;/pre&gt;&lt;p&gt;
Note that:
&lt;/p&gt;
&lt;pre class="wiki"&gt;### Note that removing any item from this
### list once it is already installed, will
### NOT uninstall anything.
&lt;/pre&gt;&lt;p&gt;
So Chive need manually uninstalling, on the other hand the upgrade will result in:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Use Two-Factor-like Authentication logic for Chive DB Manager access.
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
Which will make it a lot more secure as someone will need to ping their IP address from the server before they can use Chive, but since people with ssh access can use the !MySQL command line I'm still not sure Chive is needed?
&lt;/p&gt;
&lt;p&gt;
I'll include it for now as the removal process would be additional work.
&lt;/p&gt;
&lt;p&gt;
The full list of options is here: &lt;a class="ext-link" href="http://drupalcode.org/project/barracuda.git/blob/HEAD:/BARRACUDA.sh.txt"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://drupalcode.org/project/barracuda.git/blob/HEAD:/BARRACUDA.sh.txt&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
This has been changed to No:
&lt;/p&gt;
&lt;pre class="wiki"&gt;_CUSTOM_CONFIG_PHP_5_3=NO
#_CUSTOM_CONFIG_PHP_5_3=YES
&lt;/pre&gt;&lt;p&gt;
I haven't changed this:
&lt;/p&gt;
&lt;pre class="wiki"&gt;_CUSTOM_CONFIG_CSF=YES
&lt;/pre&gt;&lt;p&gt;
As I really think it would be a waste of time to redo all the tweaks to the firewall, see &lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/670#comment:6" title="maintenance: Roll back performance customisations and use stock BOA settings where ... (closed: fixed)"&gt;ticket:670#comment:6&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
This has been changed:
&lt;/p&gt;
&lt;pre class="wiki"&gt;#_SYSTEM_UPGRADE_ONLY=YES
_SYSTEM_UPGRADE_ONLY=NO
&lt;/pre&gt;&lt;p&gt;
This has been changed:
&lt;/p&gt;
&lt;pre class="wiki"&gt;#_BUILD_FROM_SRC=YES
_BUILD_FROM_SRC=NO
&lt;/pre&gt;&lt;p&gt;
This has been changed:
&lt;/p&gt;
&lt;pre class="wiki"&gt;_CUSTOM_CONFIG_SQL=NO
#_CUSTOM_CONFIG_SQL=YES
&lt;/pre&gt;&lt;p&gt;
But I expect we will want to change this back to YES and use the existing !MySQL config as a lot of time has been invested in it.
&lt;/p&gt;
&lt;p&gt;
This has been changed as we are using Wheezy:
&lt;/p&gt;
&lt;pre class="wiki"&gt;#_SQUEEZE_TO_WHEEZY=YES
_SQUEEZE_TO_WHEEZY=NO
&lt;/pre&gt;&lt;p&gt;
This is the resulting updated file:
&lt;/p&gt;
&lt;pre class="wiki"&gt;###
### Configuration created on 121215-1545
### with Barracuda version BOA-2.0.4
###
### NOTE: the group of settings displayed bellow will *not* be overriden
### on upgrade by the Barracuda script nor by this configuration file.
### They can be defined only on initial Barracuda install.
###
_HTTP_WILDCARD=YES
_MY_OWNIP="81.95.52.103"
#_MY_OWNIP=""
_MY_HOSTN="puffin.webarch.net"
#_MY_HOSTN=""
_MY_FRONT="master.puffin.webarch.net"
_THIS_DB_HOST=localhost
#_THIS_DB_HOST=FQDN
_SMTP_RELAY_TEST=YES
_SMTP_RELAY_HOST=""
_LOCAL_NETWORK_IP=""
_LOCAL_NETWORK_HN=""
###
### NOTE: the group of settings displayed bellow
### will *override* all listed settings in the Barracuda script,
### both on initial install and upgrade.
###
_MY_EMAIL="chris@webarchitects.co.uk"
_XTRAS_LIST="PDS CSF CHV"
_AUTOPILOT=NO
_DEBUG_MODE=NO
_DB_SERVER=MariaDB
_SSH_PORT=22
_LOCAL_DEBIAN_MIRROR="ftp.debian.org"
_LOCAL_UBUNTU_MIRROR="archive.ubuntu.com"
_FORCE_GIT_MIRROR=""
_DNS_SETUP_TEST=YES
_NGINX_EXTRA_CONF=""
_NGINX_WORKERS=AUTO
_PHP_FPM_WORKERS=AUTO
#_BUILD_FROM_SRC=YES
_BUILD_FROM_SRC=NO
_PHP_MODERN_ONLY=YES
_PHP_FPM_VERSION=5.3
_PHP_CLI_VERSION=5.3
#_LOAD_LIMIT_ONE=1444
#_LOAD_LIMIT_TWO=888
_LOAD_LIMIT_ONE=8664
_LOAD_LIMIT_TWO=5328
_CUSTOM_CONFIG_CSF=YES
_CUSTOM_CONFIG_SQL=NO
#_CUSTOM_CONFIG_SQL=YES
_CUSTOM_CONFIG_REDIS=NO
_CUSTOM_CONFIG_PHP_5_2=NO
_CUSTOM_CONFIG_PHP_5_3=NO
#_CUSTOM_CONFIG_PHP_5_3=YES
_SPEED_VALID_MAX=3600
_NGINX_DOS_LIMIT=300
#_SYSTEM_UPGRADE_ONLY=YES
_SYSTEM_UPGRADE_ONLY=NO
_USE_MEMCACHED=NO
_NEWRELIC_KEY=
_USE_STOCK=NO
###
### Configuration created on 121215-1545
### with Barracuda version BOA-2.0.4
###
_EXTRA_PACKAGES=
_PHP_EXTRA_CONF=""
_STRONG_PASSWORDS=NO
_DB_BINARY_LOG=NO
_DB_ENGINE=InnoDB
_NGINX_LDAP=NO
_PHP_GEOS=NO
_PHP_MONGODB=NO
_AEGIR_UPGRADE_ONLY=NO
### Squeeze to Wheezy upgrade config
### See https://trac.transitionnetwork.org/trac/ticket/535
#_SQUEEZE_TO_WHEEZY=YES
_SQUEEZE_TO_WHEEZY=NO
_NGINX_FORWARD_SECRECY=YES
_NGINX_SPDY=YES
#_BUILD_FROM_SRC=NO
_NGINX_NAXSI=NO
_PHP_ZEND_OPCACHE=YES
_PERMISSIONS_FIX=YES
_MODULES_FIX=YES
_MODULES_SKIP=""
_SSL_FROM_SOURCES=NO
_SSH_FROM_SOURCES=NO
_RESERVED_RAM=0
&lt;/pre&gt;&lt;p&gt;
In the description of this ticket Jim suggests:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
Run the BOA BOND.sh script to do the tuning of the server appropriate to the memory requirements.
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
There isn't a copy of this on the server, so:
&lt;/p&gt;
&lt;pre class="wiki"&gt;cd /usr/local/bin
lynx -dump -source https://raw.githubusercontent.com/omega8cc/boa/master/aegir/tools/BOND.sh.txt &amp;gt; BOND.sh
chmod 750 BOND.sh
&lt;/pre&gt;&lt;p&gt;
Try running it:
&lt;/p&gt;
&lt;pre class="wiki"&gt;Tuner [Mon Mar 31 14:03:52 BST 2014] ==&amp;gt; INFO: This script is ran as a root user
Tuner [Mon Mar 31 14:03:52 BST 2014] ==&amp;gt; ERROR: This script should be used only when the same version of BARRACUDA was used before
Tuner [Mon Mar 31 14:03:52 BST 2014] ==&amp;gt; Your system has to be configured/upgraded by BARRACUDA version BOA-2.2.0 first
Tuner [Mon Mar 31 14:03:52 BST 2014] ==&amp;gt; Bye
&lt;/pre&gt;&lt;p&gt;
So this is something to do after the upgrade.
&lt;/p&gt;
&lt;p&gt;
The time spent on this comment has been recorded on &lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/707#comment:5" title="maintenance: Upgrade to BOA-2.2.2 (closed: fixed)"&gt;ticket:707#comment:5&lt;/a&gt;
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>jim</dc:creator>

      <pubDate>Mon, 31 Mar 2014 13:25:06 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/670#comment:16</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670#comment:16</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.05&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;4.36&lt;/em&gt; to &lt;em&gt;4.41&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Hi Chris, a few answers:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;We do need Chive, it's very useful to have in the background where it costs us nothing, so please leave it enabled.
&lt;/li&gt;&lt;li&gt;CSF changes are necessary so yes, keep those customisations.
&lt;/li&gt;&lt;li&gt;The MySQL changes may or may not be needed post update, and their settings should be managed with a view to reducing the overal memory allocation for the entire VM... 8Gb is a lot, I would wager we can get by with 4-6Gb given the enhancements provided by the Zend Opcache and BOA 2.2.0... So for me these settings are certainly candidates for 'back to stock' unless there's a proven reason not to -- what do you think?
&lt;/li&gt;&lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Mon, 31 Mar 2014 13:53:06 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/670#comment:17</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670#comment:17</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.25&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;4.41&lt;/em&gt; to &lt;em&gt;4.66&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Replying to &lt;a href="http://localhost:8080/trac/ticket/670#comment:16" title="Comment 16 for Ticket #670"&gt;jim&lt;/a&gt;:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;ul&gt;&lt;li&gt;We do need Chive, it's very useful to have in the background where it costs us nothing, so please leave it enabled.
&lt;/li&gt;&lt;/ul&gt;&lt;/blockquote&gt;
&lt;p&gt;
OK.
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;ul&gt;&lt;li&gt;CSF changes are necessary so yes, keep those customisations.
&lt;/li&gt;&lt;/ul&gt;&lt;/blockquote&gt;
&lt;p&gt;
OK.
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;ul&gt;&lt;li&gt;The MySQL changes may or may not be needed post update, and their settings should be managed with a view to reducing the overal memory allocation for the entire VM... 8Gb is a lot, I would wager we can get by with 4-6Gb given the enhancements provided by the Zend Opcache and BOA 2.2.0... So for me these settings are certainly candidates for 'back to stock' unless there's a proven reason not to -- what do you think?
&lt;/li&gt;&lt;/ul&gt;&lt;/blockquote&gt;
&lt;p&gt;
!MySQL using 2.5GB of RAM at the moment, see:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://penguin.transitionnetwork.org/munin/transitionnetwork.org/puffin.transitionnetwork.org/multips_memory.html"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://penguin.transitionnetwork.org/munin/transitionnetwork.org/puffin.transitionnetwork.org/multips_memory.html&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
It has 768M of data in the query cache:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://penguin.transitionnetwork.org/munin/transitionnetwork.org/puffin.transitionnetwork.org/mysql_qcache_mem.html"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://penguin.transitionnetwork.org/munin/transitionnetwork.org/puffin.transitionnetwork.org/mysql_qcache_mem.html&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
The dumped database size is 221M.
&lt;/p&gt;
&lt;p&gt;
I would expect to see the performance reduce if the amount of RAM available to MySQL is reduced, but I'm happy to test this assumption if needs be.
&lt;/p&gt;
&lt;p&gt;
I'm not sure 8GB of RAM for the server is a lot given the size and complexity of the site and traffic it gets. For reference these are the latest bandwidth stats from Xen:
&lt;/p&gt;
&lt;pre class="wiki"&gt;
 puffin  /  monthly
       month        rx      |     tx      |    total    |   avg. rate
    ------------------------+-------------+-------------+---------------
      Apr '13     68.61 GiB |   14.06 GiB |   82.66 GiB |  267.52 kbit/s
      May '13     65.49 GiB |   22.61 GiB |   88.10 GiB |  275.92 kbit/s
      Jun '13     68.12 GiB |   16.18 GiB |   84.31 GiB |  272.85 kbit/s
      Jul '13    113.14 GiB |   21.98 GiB |  135.12 GiB |  423.18 kbit/s
      Aug '13    124.42 GiB |   17.20 GiB |  141.62 GiB |  443.56 kbit/s
      Sep '13    139.33 GiB |   13.78 GiB |  153.10 GiB |  495.49 kbit/s
      Oct '13    143.35 GiB |   13.97 GiB |  157.32 GiB |  492.72 kbit/s
      Nov '13    121.11 GiB |   12.47 GiB |  133.57 GiB |  432.29 kbit/s
      Dec '13    112.36 GiB |   10.83 GiB |  123.19 GiB |  385.82 kbit/s
      Jan '14    133.04 GiB |   15.02 GiB |  148.06 GiB |  463.72 kbit/s
      Feb '14    110.55 GiB |   10.57 GiB |  121.13 GiB |  420.01 kbit/s
      Mar '14    113.76 GiB |   10.79 GiB |  124.54 GiB |  395.56 kbit/s
    ------------------------+-------------+-------------+---------------
    estimated    115.36 GiB |   10.94 GiB |  126.30 GiB |
&lt;/pre&gt;&lt;p&gt;
But I guess we could try reducing it by 1 or 2GB, &lt;a class="wiki" href="http://localhost:8080/trac/wiki/PenguinServer"&gt;wiki:PenguinServer&lt;/a&gt; really could do with more, so it could be moved there:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://penguin.transitionnetwork.org/munin/transitionnetwork.org/penguin.transitionnetwork.org/multips_memory.html"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://penguin.transitionnetwork.org/munin/transitionnetwork.org/penguin.transitionnetwork.org/multips_memory.html&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a class="ext-link" href="https://penguin.transitionnetwork.org/munin/transitionnetwork.org/penguin.transitionnetwork.org/memory.html"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://penguin.transitionnetwork.org/munin/transitionnetwork.org/penguin.transitionnetwork.org/memory.html&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
If the RAM is reduced the time it would be noticed the most would be when there are traffic spikes I expect.
&lt;/p&gt;
&lt;p&gt;
According to the Piwik stats the biggest traffic spike this year was on 14th Feb with 3.2k visitors and 5.5k page views (note this excludes bots, people with JS disabled and people with Do Not Track headers set).
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Sat, 12 Apr 2014 08:44:39 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/670#comment:18</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670#comment:18</guid>
      <description>
        &lt;p&gt;
Last night the server was updated to the latest BOA and this morning the server went down, see &lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/707#comment:23" title="maintenance: Upgrade to BOA-2.2.2 (closed: fixed)"&gt;ticket:707#comment:23&lt;/a&gt; and my first impression is that we are now back to the load spike suicide situation &lt;a class="wiki" href="http://localhost:8080/trac/wiki/PuffinServer#LoadSpikes"&gt;wiki:PuffinServer#LoadSpikes&lt;/a&gt;
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Sat, 12 Apr 2014 13:09:35 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/670#comment:19</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670#comment:19</guid>
      <description>
        &lt;p&gt;
Replying to &lt;a href="http://localhost:8080/trac/ticket/670#comment:17" title="Comment 17 for Ticket #670"&gt;chris&lt;/a&gt;:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
I would expect to see the performance reduce if the amount of RAM available to MySQL is reduced
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
The amount of RAM available to MySQL has been halved by the BOA upgrade, for more detail see &lt;a class="assigned ticket" href="http://localhost:8080/trac/ticket/587#comment:11" title="maintenance: Puffin MySQL Tuning (assigned)"&gt;ticket:587#comment:11&lt;/a&gt; but I'm not sure how to measure if this has made things faster or slower, it looks like the slow query log is no longer generated -- there are no stats anymore:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://penguin.transitionnetwork.org/munin/transitionnetwork.org/puffin.transitionnetwork.org/mysql_slow.html"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://penguin.transitionnetwork.org/munin/transitionnetwork.org/puffin.transitionnetwork.org/mysql_slow.html&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Mon, 14 Apr 2014 09:05:39 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/670#comment:20</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670#comment:20</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.5&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;4.66&lt;/em&gt; to &lt;em&gt;5.16&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
This is the &lt;tt&gt;/root/.barracuda.cnf&lt;/tt&gt; after the upgrade to BOA 2.2.2:
&lt;/p&gt;
&lt;pre class="wiki"&gt;###
### Configuration created on 121215-1545
### with Barracuda version BOA-2.0.4
###
### NOTE: the group of settings displayed bellow will *not* be overriden
### on upgrade by the Barracuda script nor by this configuration file.
### They can be defined only on initial Barracuda install.
###
_HTTP_WILDCARD=YES
_MY_OWNIP="81.95.52.103"
#_MY_OWNIP=""
_MY_HOSTN="puffin.webarch.net"
#_MY_HOSTN=""
_MY_FRONT="master.puffin.webarch.net"
_THIS_DB_HOST=localhost
#_THIS_DB_HOST=FQDN
_SMTP_RELAY_TEST=YES
_SMTP_RELAY_HOST=""
_LOCAL_NETWORK_IP=""
_LOCAL_NETWORK_HN=""
###
### NOTE: the group of settings displayed bellow
### will *override* all listed settings in the Barracuda script,
### both on initial install and upgrade.
###
_MY_EMAIL="chris@webarchitects.co.uk"
_XTRAS_LIST="PDS CSF CHV"
_AUTOPILOT=NO
_DEBUG_MODE=NO
_DB_SERVER=MariaDB
_SSH_PORT=22
_LOCAL_DEBIAN_MIRROR="ftp.debian.org"
_LOCAL_UBUNTU_MIRROR="archive.ubuntu.com"
_FORCE_GIT_MIRROR=""
_DNS_SETUP_TEST=YES
_NGINX_EXTRA_CONF=""
_NGINX_WORKERS=AUTO
_PHP_FPM_WORKERS=AUTO
_PHP_FPM_VERSION=5.3
_PHP_CLI_VERSION=5.3
_CUSTOM_CONFIG_CSF=YES
_CUSTOM_CONFIG_SQL=NO
#_CUSTOM_CONFIG_SQL=YES
_CUSTOM_CONFIG_REDIS=NO
_CUSTOM_CONFIG_PHP_5_2=NO
_CUSTOM_CONFIG_PHP_5_3=NO
#_CUSTOM_CONFIG_PHP_5_3=YES
_SPEED_VALID_MAX=3600
_NGINX_DOS_LIMIT=300
#_SYSTEM_UPGRADE_ONLY=YES
_SYSTEM_UPGRADE_ONLY=NO
_NEWRELIC_KEY=
_USE_STOCK=NO
###
### Configuration created on 121215-1545
### with Barracuda version BOA-2.0.4
###
_EXTRA_PACKAGES=
_PHP_EXTRA_CONF=""
_STRONG_PASSWORDS=YES
_DB_BINARY_LOG=NO
_DB_ENGINE=InnoDB
_NGINX_LDAP=NO
_PHP_GEOS=NO
_PHP_MONGODB=NO
_AEGIR_UPGRADE_ONLY=NO
### Squeeze to Wheezy upgrade config
### See https://trac.transitionnetwork.org/trac/ticket/535
#_SQUEEZE_TO_WHEEZY=YES
_SQUEEZE_TO_WHEEZY=NO
_NGINX_FORWARD_SECRECY=YES
_NGINX_SPDY=YES
_NGINX_NAXSI=NO
_PERMISSIONS_FIX=YES
_MODULES_FIX=YES
_MODULES_SKIP=""
_SSL_FROM_SOURCES=NO
_SSH_FROM_SOURCES=NO
_RESERVED_RAM=0
_PHP_MULTI_INSTALL="5.3"
_CUSTOM_CONFIG_LSHELL=NO
_CUSTOM_CONFIG_PHP55=NO
_CUSTOM_CONFIG_PHP54=NO
_CUSTOM_CONFIG_PHP53=NO
_CUSTOM_CONFIG_PHP52=NO
_CPU_SPIDER_RATIO=3
_CPU_MAX_RATIO=6
_CPU_CRIT_RATIO=9
_PHP_FPM_DENY=""
_REDIS_LISTEN_MODE=PORT
_STRICT_BIN_PERMISSIONS=YES
&lt;/pre&gt;&lt;p&gt;
Jim has suggested on the Ttech list:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
switch Redis port to 'socket' which is recommended from 'port'.
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
So this line has been changed:
&lt;/p&gt;
&lt;pre class="wiki"&gt;_REDIS_LISTEN_MODE=SOCKET
&lt;/pre&gt;&lt;p&gt;
Time recorded on this tick includes time spend looking at Munin stats, responding the email on the Ttech list and a phone call with Ed.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Mon, 14 Apr 2014 11:20:02 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/670#comment:21</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670#comment:21</guid>
      <description>
        &lt;p&gt;
To get these graphs working:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://penguin.transitionnetwork.org/munin/transitionnetwork.org/puffin.transitionnetwork.org/phpfpm_connections.html"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://penguin.transitionnetwork.org/munin/transitionnetwork.org/puffin.transitionnetwork.org/phpfpm_connections.html&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a class="ext-link" href="https://penguin.transitionnetwork.org/munin/transitionnetwork.org/puffin.transitionnetwork.org/phpfpm_status.html"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://penguin.transitionnetwork.org/munin/transitionnetwork.org/puffin.transitionnetwork.org/phpfpm_status.html&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
It was necessary to customise the stock BOA settings, see &lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/707#comment:32" title="maintenance: Upgrade to BOA-2.2.2 (closed: fixed)"&gt;ticket:707#comment:32&lt;/a&gt; and &lt;a class="wiki" href="http://localhost:8080/trac/wiki/PuffinServer#nginxconfigchanges"&gt;wiki:PuffinServer#nginxconfigchanges&lt;/a&gt;
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Mon, 02 Jun 2014 10:55:01 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/670#comment:22</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670#comment:22</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;1.0&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;5.16&lt;/em&gt; to &lt;em&gt;6.16&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Since we have "Rolled back performance customisations and use stock BOA settings where possible" the server has been having load spikes, some of these have been so big that they would have triggered a server suicide had the previous xdrago shell scripts been in place, in the last week we have had these spikes, the following lines are from the email subject lines from the server alerts:
&lt;/p&gt;
&lt;pre class="wiki"&gt;May 25 lfd on puffin.webarch.net: High 1 minute load average alert - 3.29
May 25 lfd on puffin.webarch.net: High 1 minute load average alert - 4.80
May 25 lfd on puffin.webarch.net: High 1 minute load average alert - 3.35
May 25 lfd on puffin.webarch.net: High 1 minute load average alert - 4.38
May 25 lfd on puffin.webarch.net: High 1 minute load average alert - 3.46
May 25 lfd on puffin.webarch.net: High 1 minute load average alert - 3.33
May 25 lfd on puffin.webarch.net: High 1 minute load average alert - 4.54
May 25 lfd on puffin.webarch.net: High 1 minute load average alert - 19.42
May 25 lfd on puffin.webarch.net: High 1 minute load average alert - 60.34
May 25 lfd on puffin.webarch.net: High 1 minute load average alert - 29.69
May 25 lfd on puffin.webarch.net: High 1 minute load average alert - 11.17
May 25 lfd on puffin.webarch.net: High 1 minute load average alert - 4.22
May 25 lfd on puffin.webarch.net: High 1 minute load average alert - 3.05
May 25 lfd on puffin.webarch.net: High 1 minute load average alert - 5.95
May 25 lfd on puffin.webarch.net: High 1 minute load average alert - 3.37
May 26 lfd on puffin.webarch.net: High 1 minute load average alert - 4.11
May 26 lfd on puffin.webarch.net: High 1 minute load average alert - 6.55
May 26 lfd on puffin.webarch.net: High 1 minute load average alert - 9.45
May 26 lfd on puffin.webarch.net: High 1 minute load average alert - 3.89
May 26 lfd on puffin.webarch.net: High 1 minute load average alert - 4.75
May 26 lfd on puffin.webarch.net: High 1 minute load average alert - 3.80
May 26 lfd on puffin.webarch.net: High 1 minute load average alert - 4.29
May 26 lfd on puffin.webarch.net: High 1 minute load average alert - 3.21
May 26 lfd on puffin.webarch.net: High 1 minute load average alert - 3.03
May 26 lfd on puffin.webarch.net: High 1 minute load average alert - 20.50
May 26 lfd on puffin.webarch.net: High 1 minute load average alert - 11.40
May 26 lfd on puffin.webarch.net: High 1 minute load average alert - 4.29
May 26 lfd on puffin.webarch.net: High 1 minute load average alert - 5.24
May 26 lfd on puffin.webarch.net: High 1 minute load average alert - 7.05
May 26 lfd on puffin.webarch.net: High 1 minute load average alert - 14.50
May 26 lfd on puffin.webarch.net: High 1 minute load average alert - 8.59
May 26 lfd on puffin.webarch.net: High 1 minute load average alert - 30.44
May 26 lfd on puffin.webarch.net: High 1 minute load average alert - 11.62
May 26 lfd on puffin.webarch.net: High 1 minute load average alert - 4.30
May 26 lfd on puffin.webarch.net: High 1 minute load average alert - 3.35
May 26 lfd on puffin.webarch.net: High 1 minute load average alert - 14.88
May 26 lfd on puffin.webarch.net: High 1 minute load average alert - 5.62
May 26 lfd on puffin.webarch.net: High 1 minute load average alert - 25.06
May 26 lfd on puffin.webarch.net: High 1 minute load average alert - 8.90
May 26 lfd on puffin.webarch.net: High 1 minute load average alert - 3.69
May 26 lfd on puffin.webarch.net: High 1 minute load average alert - 3.60
May 27 lfd on puffin.webarch.net: High 1 minute load average alert - 3.76
May 27 lfd on puffin.webarch.net: High 1 minute load average alert - 5.73
May 27 lfd on puffin.webarch.net: High 1 minute load average alert - 3.77
May 27 lfd on puffin.webarch.net: High 1 minute load average alert - 5.69
May 27 lfd on puffin.webarch.net: High 1 minute load average alert - 3.66
May 27 lfd on puffin.webarch.net: High 1 minute load average alert - 4.50
May 27 lfd on puffin.webarch.net: High 1 minute load average alert - 5.94
May 27 lfd on puffin.webarch.net: High 1 minute load average alert - 5.69
May 27 lfd on puffin.webarch.net: High 1 minute load average alert - 27.10
May 27 lfd on puffin.webarch.net: High 1 minute load average alert - 9.60
May 27 lfd on puffin.webarch.net: High 1 minute load average alert - 3.78
May 27 lfd on puffin.webarch.net: High 1 minute load average alert - 5.64
May 27 lfd on puffin.webarch.net: High 1 minute load average alert - 4.73
May 27 lfd on puffin.webarch.net: High 1 minute load average alert - 8.57
May 27 lfd on puffin.webarch.net: High 1 minute load average alert - 43.91
May 27 lfd on puffin.webarch.net: High 1 minute load average alert - 20.11
May 27 lfd on puffin.webarch.net: High 1 minute load average alert - 8.14
May 27 lfd on puffin.webarch.net: High 1 minute load average alert - 3.28
May 27 lfd on puffin.webarch.net: High 1 minute load average alert - 5.13
May 27 lfd on puffin.webarch.net: High 1 minute load average alert - 5.25
May 27 lfd on puffin.webarch.net: High 1 minute load average alert - 4.33
May 28 lfd on puffin.webarch.net: High 1 minute load average alert - 3.03
May 28 lfd on puffin.webarch.net: High 1 minute load average alert - 6.34
May 28 lfd on puffin.webarch.net: High 1 minute load average alert - 3.38
May 28 lfd on puffin.webarch.net: High 1 minute load average alert - 3.46
May 28 lfd on puffin.webarch.net: High 1 minute load average alert - 3.09
May 28 lfd on puffin.webarch.net: High 1 minute load average alert - 6.03
May 28 lfd on puffin.webarch.net: High 1 minute load average alert - 7.16
May 28 lfd on puffin.webarch.net: High 1 minute load average alert - 12.05
May 28 lfd on puffin.webarch.net: High 1 minute load average alert - 4.72
May 28 lfd on puffin.webarch.net: High 1 minute load average alert - 3.12
May 28 lfd on puffin.webarch.net: High 1 minute load average alert - 76.28
May 28 lfd on puffin.webarch.net: High 1 minute load average alert - 101.63
May 28 lfd on puffin.webarch.net: High 1 minute load average alert - 72.41
May 28 lfd on puffin.webarch.net: High 1 minute load average alert - 10.77
May 28 lfd on puffin.webarch.net: High 1 minute load average alert - 4.20
May 28 lfd on puffin.webarch.net: High 1 minute load average alert - 6.52
May 28 lfd on puffin.webarch.net: High 1 minute load average alert - 6.32
May 28 lfd on puffin.webarch.net: High 1 minute load average alert - 8.05
May 28 lfd on puffin.webarch.net: High 1 minute load average alert - 3.17
May 28 lfd on puffin.webarch.net: High 1 minute load average alert - 6.97
May 28 lfd on puffin.webarch.net: High 1 minute load average alert - 5.34
May 28 lfd on puffin.webarch.net: High 1 minute load average alert - 4.22
May 28 lfd on puffin.webarch.net: High 1 minute load average alert - 4.58
May 28 lfd on puffin.webarch.net: High 1 minute load average alert - 66.02
May 28 lfd on puffin.webarch.net: High 1 minute load average alert - 92.50
May 28 lfd on puffin.webarch.net: High 1 minute load average alert - 35.54
May 28 lfd on puffin.webarch.net: High 1 minute load average alert - 13.53
May 28 lfd on puffin.webarch.net: High 1 minute load average alert - 5.29
May 29 lfd on puffin.webarch.net: High 1 minute load average alert - 3.62
May 29 lfd on puffin.webarch.net: High 1 minute load average alert - 6.81
May 29 lfd on puffin.webarch.net: High 1 minute load average alert - 3.67
May 29 lfd on puffin.webarch.net: High 1 minute load average alert - 3.37
May 29 lfd on puffin.webarch.net: High 1 minute load average alert - 3.19
May 29 lfd on puffin.webarch.net: High 1 minute load average alert - 3.83
May 30 lfd on puffin.webarch.net: High 1 minute load average alert - 3.20
May 30 lfd on puffin.webarch.net: High 1 minute load average alert - 3.24
May 30 lfd on puffin.webarch.net: High 1 minute load average alert - 4.14
May 30 lfd on puffin.webarch.net: High 1 minute load average alert - 3.27
May 30 lfd on puffin.webarch.net: High 1 minute load average alert - 7.16
May 31 lfd on puffin.webarch.net: High 1 minute load average alert - 3.55
May 31 lfd on puffin.webarch.net: High 1 minute load average alert - 5.68
May 31 lfd on puffin.webarch.net: High 1 minute load average alert - 4.02
May 31 lfd on puffin.webarch.net: High 1 minute load average alert - 3.39
May 31 lfd on puffin.webarch.net: High 1 minute load average alert - 3.01
May 31 lfd on puffin.webarch.net: High 1 minute load average alert - 4.10
May 31 lfd on puffin.webarch.net: High 1 minute load average alert - 3.20
Jun 01 lfd on puffin.webarch.net: High 1 minute load average alert - 3.19
Jun 01 lfd on puffin.webarch.net: High 1 minute load average alert - 6.67
Jun 01 lfd on puffin.webarch.net: High 1 minute load average alert - 5.98
Jun 01 lfd on puffin.webarch.net: High 1 minute load average alert - 4.01
Jun 01 lfd on puffin.webarch.net: High 1 minute load average alert - 3.66
Jun 01 lfd on puffin.webarch.net: High 1 minute load average alert - 3.92
Jun 01 lfd on puffin.webarch.net: High 1 minute load average alert - 6.25
Jun 01 lfd on puffin.webarch.net: High 1 minute load average alert - 4.72
Jun 01 lfd on puffin.webarch.net: High 1 minute load average alert - 3.82
Jun 01 lfd on puffin.webarch.net: High 1 minute load average alert - 11.84
Jun 01 lfd on puffin.webarch.net: High 1 minute load average alert - 5.10
Jun 02 lfd on puffin.webarch.net: High 1 minute load average alert - 3.15
Jun 02 lfd on puffin.webarch.net: High 1 minute load average alert - 3.36
Jun 02 lfd on puffin.webarch.net: High 1 minute load average alert - 4.68
Jun 02 lfd on puffin.webarch.net: High 1 minute load average alert - 3.24
Jun 02 lfd on puffin.webarch.net: High 1 minute load average alert - 6.86
Jun 02 lfd on puffin.webarch.net: High 1 minute load average alert - 3.49
&lt;/pre&gt;&lt;p&gt;
The ones below 14 are not something to worry about -- the server has 14 CPUs, these are the concerning ones:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Sun, 25 May 2014 09:54:00 - &lt;strong&gt;60.34&lt;/strong&gt;
&lt;/li&gt;&lt;li&gt;Mon, 26 May 2014 06:25:56 - &lt;strong&gt;20.50&lt;/strong&gt;
&lt;/li&gt;&lt;li&gt;Mon, 26 May 2014 15:58:24 - &lt;strong&gt;30.44&lt;/strong&gt;
&lt;/li&gt;&lt;li&gt;Mon, 26 May 2014 18:45:39 - &lt;strong&gt;25.06&lt;/strong&gt;
&lt;/li&gt;&lt;li&gt;Tue, 27 May 2014 06:25:47 - &lt;strong&gt;27.10&lt;/strong&gt;
&lt;/li&gt;&lt;li&gt;Tue, 27 May 2014 08:47:04 - &lt;strong&gt;43.91&lt;/strong&gt;
&lt;/li&gt;&lt;li&gt;Wed, 28 May 2014 11:05:00 - &lt;strong&gt;101.63&lt;/strong&gt;
&lt;/li&gt;&lt;li&gt;Wed, 28 May 2014 13:52:26 - &lt;strong&gt;92.50&lt;/strong&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
I suspect that if we renistate the memory allocation that was removed from MySQL by the "Roll back performance customisations and use stock BOA settings where possible" policy -- MySQL memory was reduced by 50%, see &lt;a class="assigned ticket" href="http://localhost:8080/trac/ticket/587#comment:11" title="maintenance: Puffin MySQL Tuning (assigned)"&gt;ticket:587#comment:11&lt;/a&gt; and &lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/707#comment:39" title="maintenance: Upgrade to BOA-2.2.2 (closed: fixed)"&gt;ticket:707#comment:39&lt;/a&gt; -- then there is a chance that these spikes would be dramatically reduced. Ed / Jim -- are you willing to give this a try?
&lt;/p&gt;
&lt;p&gt;
In &lt;a class="ext-link" href="http://trac.edgewall.org/intertrac/ticket/707%23comment%3A5" title="ticket/707#comment:5 in Trac project trac"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;trac:ticket/707#comment:5&lt;/a&gt; it was suggested that:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;blockquote&gt;
&lt;p&gt;
After the upgrade has been done this should be run: /usr/local/bin/BOND.sh
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;p&gt;
This hadn't been done, so:
&lt;/p&gt;
&lt;pre class="wiki"&gt;/usr/local/bin/BOND.sh
Tuner [Mon Jun  2 11:38:14 BST 2014] ==&amp;gt; INFO: This script is ran as a root user
Tuner [Mon Jun  2 11:38:14 BST 2014] ==&amp;gt; ERROR: This script should be used only when the same version of BARRACUDA was used before
Tuner [Mon Jun  2 11:38:14 BST 2014] ==&amp;gt; Your system has to be configured/upgraded by BARRACUDA version BOA-2.2.0 first
Tuner [Mon Jun  2 11:38:14 BST 2014] ==&amp;gt; Bye
&lt;/pre&gt;&lt;p&gt;
Not sure what that means exactly...
&lt;/p&gt;
&lt;p&gt;
The old load spike suicide documentation has been archived to &lt;a class="wiki" href="http://localhost:8080/trac/wiki/PuffinServerBoaLoadSpikes"&gt;wiki:PuffinServerBoaLoadSpikes&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Mon, 02 Jun 2014 12:50:16 GMT</pubDate>
      <title>attachment set</title>
      <link>http://localhost:8080/trac/ticket/670</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;attachment&lt;/strong&gt;
                set to &lt;em&gt;tn_visitors_2014-03-02.png&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Mon, 02 Jun 2014 12:53:43 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/670#comment:23</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670#comment:23</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.25&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;6.16&lt;/em&gt; to &lt;em&gt;6.41&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Replying to &lt;a href="http://localhost:8080/trac/ticket/670#comment:22" title="Comment 22 for Ticket #670"&gt;chris&lt;/a&gt;:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
these are the concerning ones:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Sun, 25 May 2014 09:54:00 - &lt;strong&gt;60.34&lt;/strong&gt;
&lt;/li&gt;&lt;li&gt;Mon, 26 May 2014 06:25:56 - &lt;strong&gt;20.50&lt;/strong&gt;
&lt;/li&gt;&lt;li&gt;Mon, 26 May 2014 15:58:24 - &lt;strong&gt;30.44&lt;/strong&gt;
&lt;/li&gt;&lt;li&gt;Mon, 26 May 2014 18:45:39 - &lt;strong&gt;25.06&lt;/strong&gt;
&lt;/li&gt;&lt;li&gt;Tue, 27 May 2014 06:25:47 - &lt;strong&gt;27.10&lt;/strong&gt;
&lt;/li&gt;&lt;li&gt;Tue, 27 May 2014 08:47:04 - &lt;strong&gt;43.91&lt;/strong&gt;
&lt;/li&gt;&lt;li&gt;Wed, 28 May 2014 11:05:00 - &lt;strong&gt;101.63&lt;/strong&gt;
&lt;/li&gt;&lt;li&gt;Wed, 28 May 2014 13:52:26 - &lt;strong&gt;92.50&lt;/strong&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;/blockquote&gt;
&lt;p&gt;
It's worth noting that these coincide with increases in 50x errors, these are the subject lines from the &lt;a class="wiki" href="http://localhost:8080/trac/wiki/ErrorCodeCheck"&gt;wiki:ErrorCodeCheck&lt;/a&gt; email for the same period:
&lt;/p&gt;
&lt;pre class="wiki"&gt;May 25 - 6211 403, 3013 404, 0 502, 4 503 and 0 504 errors from puffin.webarch.net
May 26 - 6267 403, 4386 404, 0 502, 16 503 and 0 504 errors from puffin.webarch.net
May 27 - 5825 403, 3593 404, 0 502, 19 503 and 0 504 errors from puffin.webarch.net
May 28 - 5544 403, 3296 404, 0 502, 20 503 and 0 504 errors from puffin.webarch.net
May 29 - 5866 403, 2685 404, 0 502, 100 503 and 7 504 errors from puffin.webarch.net
May 30 - 5155 403, 2619 404, 0 502, 0 503 and 0 504 errors from puffin.webarch.net
May 31 - 5148 403, 2487 404, 0 502, 0 503 and 0 504 errors from puffin.webarch.net
Jun 01 - 5197 403, 2380 404, 0 502, 0 503 and 0 504 errors from puffin.webarch.net
Jun 02 - 4953 403, 2503 404, 0 502, 0 503 and 0 504 errors from puffin.webarch.net
&lt;/pre&gt;&lt;p&gt;
The 403's are mostly blocked bots, the 404's are mostly links to the old wiki pages, it's the 503 and 504's which are probably related to the spikes.
&lt;/p&gt;
&lt;p&gt;
Note that the script that greps for the errors in the Nginx logs runs with logrotate, so the errors numbers above for 29th May relate to the load spike on 28th May.
&lt;/p&gt;
&lt;p&gt;
The number of people visiting the site, as recorded by &lt;a class="wiki" href="http://localhost:8080/trac/wiki/PiwikServer"&gt;PiwikServer&lt;/a&gt; wasn't significantly higher than usual:
&lt;/p&gt;
&lt;p&gt;
&lt;a style="padding:0; border:none" href="http://localhost:8080/trac/attachment/ticket/670/tn_visitors_2014-03-02.png"&gt;&lt;img src="http://localhost:8080/trac/raw-attachment/ticket/670/tn_visitors_2014-03-02.png" /&gt;&lt;/a&gt;
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>ed</dc:creator>

      <pubDate>Mon, 09 Jun 2014 10:30:33 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/670#comment:24</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670#comment:24</guid>
      <description>
        &lt;p&gt;
Re: removing the standard settings to a customised set up: Sam is going to arrange a Ttech skype to discuss Paul's success with Aegir publishing where we will take stock of how it was, how to do it next etc. I suggest that we talk about this then - and come up with a clear proposal. How about that?
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Mon, 09 Jun 2014 11:01:39 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/670#comment:25</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670#comment:25</guid>
      <description>
        &lt;p&gt;
Replying to &lt;a href="http://localhost:8080/trac/ticket/670#comment:24" title="Comment 24 for Ticket #670"&gt;ed&lt;/a&gt;:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
Re: removing the standard settings to a customised set up
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
All I'm basically suggesting is that we change the MySQL settings so that the number of connections isn't maxed out all the time (see &lt;a class="ext-link" href="https://penguin.transitionnetwork.org/munin/transitionnetwork.org/puffin.transitionnetwork.org/mysql_connections.html"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://penguin.transitionnetwork.org/munin/transitionnetwork.org/puffin.transitionnetwork.org/mysql_connections.html&lt;/a&gt; - there is no slack any more) and so that the query cache is bigger, see these comments regarding the memory use being reduced by 50% with the default MySQL settings: &lt;a class="assigned ticket" href="http://localhost:8080/trac/ticket/587#comment:11" title="maintenance: Puffin MySQL Tuning (assigned)"&gt;ticket:587#comment:11&lt;/a&gt; and &lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/707#comment:39" title="maintenance: Upgrade to BOA-2.2.2 (closed: fixed)"&gt;ticket:707#comment:39&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
Would you like me to list all lines in &lt;tt&gt;my.cnf&lt;/tt&gt; that I'm suggesting are changed?
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
I suggest that we talk about this then - and come up with a clear proposal. How about that?
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
OK.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>ed</dc:creator>

      <pubDate>Mon, 09 Jun 2014 11:10:35 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/670#comment:26</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670#comment:26</guid>
      <description>
        &lt;p&gt;
No point showing me lines of code, Chris, best place for this is in the BOA/Aegir meet I reckon so that everyone there hears and discuses it.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Sun, 03 Jan 2016 19:38:02 GMT</pubDate>
      <title>status changed; resolution set</title>
      <link>http://localhost:8080/trac/ticket/670#comment:27</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/670#comment:27</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;assigned&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;fixed&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Replying to &lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/670" title="maintenance: Roll back performance customisations and use stock BOA settings where ... (closed: fixed)"&gt;jim&lt;/a&gt;:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
Given so much has changed since the initial issues on the server, I now strongly recommend reverting all settings changes that do not add features back to stock BOA settings after the next BOA release.
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
With hindsight this was a terrible suggestion, we should have ditched BOA many years ago -- commenting out all the BOA root cron jobs appears to have solved all the problems we have had over the years with load spikes, see &lt;a class="wiki" href="http://localhost:8080/trac/wiki/PuffinServer#LoadSpikes"&gt;wiki:PuffinServer#LoadSpikes&lt;/a&gt; -- so closing this ticket.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>