<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Transition Technology: Ticket #554: Site slow down and MySQL load increase</title>
    <link>http://localhost:8080/trac/ticket/554</link>
    <description>&lt;p&gt;
Since the upgrade to &lt;a class="ext-link" href="http://blog.mariadb.org/mariadb-5-5-31-now-available/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;MariaDB 5.5.31&lt;/a&gt;, done on &lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/218#comment:93" title="maintenance: Debian upgrades and updates (closed: fixed)"&gt;ticket:218#comment:93&lt;/a&gt; (and fixed on &lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/548#comment:32" title="defect: All Admin functions broken on TN.org (closed: fixed)"&gt;ticket:548#comment:32&lt;/a&gt;) there appears to have been been a noticeable slowdown in the time for pages to be generated, measuring with &lt;a class="ext-link" href="http://tools.pingdom.com/fpt/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://tools.pingdom.com/fpt/&lt;/a&gt; the front page alone takes around 5 seconds to generate.
&lt;/p&gt;
&lt;p&gt;
There is a clear increase in the amount of MySQL/MariaDB activity measured by Munin, see the attached graphs, the upgrade was done around midday on 24th May 2013. There has also been a increase in traffic according to the firewall graphs. The memory usage of redis has also dropped right down and the database memory usage has significantly increased.
&lt;/p&gt;
&lt;p&gt;
It's not totally clear if the cause of this change in behaviour of the site is related to the MySQL/MariaDB upgrade or if there was a coincidental change in the traffic to the site at the same time. There is no noticeable change in the visitors recorded in the Piwik stats.
&lt;/p&gt;
&lt;p&gt;
According to pingdom the front page of the site is now "slower than 77% of all tested websites"  with a total load time of around 6 seconds, almost all of this is down to the wait of around 5 seconds for the index.php file. This can also be tested from parrot with Apache bench, sometimes cached pages are served up and these appear in an instance, if the front page is generated it takes around 5 seconds, see &lt;a class="wiki" href="http://localhost:8080/trac/wiki/LoadTimes#a2013-05-28"&gt;wiki:LoadTimes#a2013-05-28&lt;/a&gt;
&lt;/p&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/554</link>
    </image>
    <generator>Trac 0.12.5</generator>
    <item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 28 May 2013 18:11:51 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/554#comment:1</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/554#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.25&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.25&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 28 May 2013 18:12:34 GMT</pubDate>
      <title>attachment set</title>
      <link>http://localhost:8080/trac/ticket/554</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/554</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;attachment&lt;/strong&gt;
                set to &lt;em&gt;puffin-mysql_queries-week-2013-05-28.png&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
MySQL Queries
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 28 May 2013 18:12:48 GMT</pubDate>
      <title>attachment set</title>
      <link>http://localhost:8080/trac/ticket/554</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/554</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;attachment&lt;/strong&gt;
                set to &lt;em&gt;puffin-mysql_bytes-week-2013-05-28.png&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
MySQL Bytes
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 28 May 2013 18:13:08 GMT</pubDate>
      <title>attachment set</title>
      <link>http://localhost:8080/trac/ticket/554</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/554</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;attachment&lt;/strong&gt;
                set to &lt;em&gt;puffin-multips_memory-week-2013-05-28.png&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Memory usage
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 28 May 2013 18:13:24 GMT</pubDate>
      <title>attachment set</title>
      <link>http://localhost:8080/trac/ticket/554</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/554</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;attachment&lt;/strong&gt;
                set to &lt;em&gt;puffin-cpu-week-2013-05-28.png&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
CPU usage
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 28 May 2013 18:13:38 GMT</pubDate>
      <title>attachment set</title>
      <link>http://localhost:8080/trac/ticket/554</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/554</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;attachment&lt;/strong&gt;
                set to &lt;em&gt;puffin-fw_conntrack-week-2013-05-28.png&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Firewall
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 28 May 2013 18:13:53 GMT</pubDate>
      <title>attachment set</title>
      <link>http://localhost:8080/trac/ticket/554</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/554</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;attachment&lt;/strong&gt;
                set to &lt;em&gt;puffin-if_eth0-week-2013-05-28.png&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Firewall
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 28 May 2013 18:14:06 GMT</pubDate>
      <title>attachment set</title>
      <link>http://localhost:8080/trac/ticket/554</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/554</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;attachment&lt;/strong&gt;
                set to &lt;em&gt;puffin-fw_packets-week-2013-05-28.png&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Firewall
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 28 May 2013 18:20:56 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/554#comment:2</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/554#comment:2</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.15&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.25&lt;/em&gt; to &lt;em&gt;0.4&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
These are the munin graphs from &lt;a class="ext-link" href="https://penguin.transitionnetwork.org/munin/transitionnetwork.org/puffin.transitionnetwork.org/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://penguin.transitionnetwork.org/munin/transitionnetwork.org/puffin.transitionnetwork.org/&lt;/a&gt; which have been attached to this ticket:
&lt;/p&gt;
&lt;p&gt;
&lt;a style="padding:0; border:none" href="http://localhost:8080/trac/attachment/ticket/554/puffin-mysql_queries-week-2013-05-28.png"&gt;&lt;img src="http://localhost:8080/trac/raw-attachment/ticket/554/puffin-mysql_queries-week-2013-05-28.png" alt="MySQL Queries" title="MySQL Queries" /&gt;&lt;/a&gt;
&lt;a style="padding:0; border:none" href="http://localhost:8080/trac/attachment/ticket/554/puffin-mysql_bytes-week-2013-05-28.png"&gt;&lt;img src="http://localhost:8080/trac/raw-attachment/ticket/554/puffin-mysql_bytes-week-2013-05-28.png" alt="MySQL Bytes" title="MySQL Bytes" /&gt;&lt;/a&gt;
&lt;a style="padding:0; border:none" href="http://localhost:8080/trac/attachment/ticket/554/puffin-multips_memory-week-2013-05-28.png"&gt;&lt;img src="http://localhost:8080/trac/raw-attachment/ticket/554/puffin-multips_memory-week-2013-05-28.png" alt="Memory usage" title="Memory usage" /&gt;&lt;/a&gt;
&lt;a style="padding:0; border:none" href="http://localhost:8080/trac/attachment/ticket/554/puffin-cpu-week-2013-05-28.png"&gt;&lt;img src="http://localhost:8080/trac/raw-attachment/ticket/554/puffin-cpu-week-2013-05-28.png" alt="CPU usage" title="CPU usage" /&gt;&lt;/a&gt;
&lt;a style="padding:0; border:none" href="http://localhost:8080/trac/attachment/ticket/554/puffin-fw_conntrack-week-2013-05-28.png"&gt;&lt;img src="http://localhost:8080/trac/raw-attachment/ticket/554/puffin-fw_conntrack-week-2013-05-28.png" alt="Firewall" title="Firewall" /&gt;&lt;/a&gt;
&lt;a style="padding:0; border:none" href="http://localhost:8080/trac/attachment/ticket/554/puffin-fw_conntrack-week-2013-05-28.png"&gt;&lt;img src="http://localhost:8080/trac/raw-attachment/ticket/554/puffin-fw_conntrack-week-2013-05-28.png" alt="Firewall" title="Firewall" /&gt;&lt;/a&gt;
&lt;a style="padding:0; border:none" href="http://localhost:8080/trac/attachment/ticket/554/puffin-if_eth0-week-2013-05-28.png"&gt;&lt;img src="http://localhost:8080/trac/raw-attachment/ticket/554/puffin-if_eth0-week-2013-05-28.png" alt="Firewall" title="Firewall" /&gt;&lt;/a&gt;
&lt;a style="padding:0; border:none" href="http://localhost:8080/trac/attachment/ticket/554/puffin-fw_packets-week-2013-05-28.png"&gt;&lt;img src="http://localhost:8080/trac/raw-attachment/ticket/554/puffin-fw_packets-week-2013-05-28.png" alt="Firewall" title="Firewall" /&gt;&lt;/a&gt;
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 28 May 2013 18:31:08 GMT</pubDate>
      <title>attachment set</title>
      <link>http://localhost:8080/trac/ticket/554</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/554</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;attachment&lt;/strong&gt;
                set to &lt;em&gt;puffin-load-month-2013-05-28.png&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Load
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 28 May 2013 18:34:33 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/554#comment:3</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/554#comment:3</guid>
      <description>
        &lt;p&gt;
The load average has gone from less than 1 to over 2 since midday on 24th May 2013 as well, see (note this is a monthly graph not a weekly one as the others above):
&lt;/p&gt;
&lt;p&gt;
&lt;a style="padding:0; border:none" href="http://localhost:8080/trac/attachment/ticket/554/puffin-load-month-2013-05-28.png"&gt;&lt;img src="http://localhost:8080/trac/raw-attachment/ticket/554/puffin-load-month-2013-05-28.png" alt="Load" title="Load" /&gt;&lt;/a&gt;
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 28 May 2013 18:55:07 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/554#comment:4</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/554#comment:4</guid>
      <description>
        &lt;p&gt;
Using Apache banch to request the front page (just the index.php file, no css, js or images) 200 times running 10 concurrent requests at a time, from another machine in the same rack is something we have stats for from the last few years -- for comparison it now looks like the site is now roughly back to the speed it was when it was running with apache without varnish, two years ago:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="wiki" href="http://localhost:8080/trac/wiki/LoadTimes#a2013-05-28"&gt;wiki:LoadTimes#a2013-05-28&lt;/a&gt; 5.539 seconds &lt;a class="wiki" href="http://localhost:8080/trac/wiki/PuffinServer"&gt;wiki:PuffinServer&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a class="wiki" href="http://localhost:8080/trac/wiki/LoadTimes#a2013-01-28"&gt;wiki:LoadTimes#a2013-01-28&lt;/a&gt; 0.253 seconds &lt;a class="wiki" href="http://localhost:8080/trac/wiki/NewLiveServer"&gt;wiki:NewLiveServer&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a class="wiki" href="http://localhost:8080/trac/wiki/LoadTimes#a2013-01-28"&gt;wiki:LoadTimes#a2013-01-28&lt;/a&gt; 0.262 seconds &lt;a class="wiki" href="http://localhost:8080/trac/wiki/PuffinServer"&gt;wiki:PuffinServer&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a class="wiki" href="http://localhost:8080/trac/wiki/LoadTimes#a2011-07-13"&gt;wiki:LoadTimes#a2011-07-13&lt;/a&gt; 3.417 seconds &lt;a class="wiki" href="http://localhost:8080/trac/wiki/NewLiveServer"&gt;wiki:NewLiveServer&lt;/a&gt; without varnish
&lt;/li&gt;&lt;li&gt;&lt;a class="wiki" href="http://localhost:8080/trac/wiki/LoadTimes#a2011-07-05"&gt;wiki:LoadTimes#a2011-07-05&lt;/a&gt; 5.131 seconds &lt;a class="wiki" href="http://localhost:8080/trac/wiki/NewLiveServer"&gt;wiki:NewLiveServer&lt;/a&gt; without varnish
&lt;/li&gt;&lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>jim</dc:creator>

      <pubDate>Tue, 28 May 2013 22:52:39 GMT</pubDate>
      <title>hours, status, totalhours changed; resolution set</title>
      <link>http://localhost:8080/trac/ticket/554#comment:5</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/554#comment:5</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.1&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;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;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.4&lt;/em&gt; to &lt;em&gt;0.5&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
It's because Redis couldn't be used since the global.inc replacement... the fix I said to do wiped the Redis password from &lt;tt&gt;/data/conf/global.inc&lt;/tt&gt; - near the bottom:
&lt;tt&gt;$conf['redis_client_password']            = 'isfoobared';&lt;/tt&gt;
&lt;/p&gt;
&lt;p&gt;
I replaced this with the correct pw from &lt;tt&gt;global.inc.bak&lt;/tt&gt;, which is the auto-generated password BOA creates.
&lt;/p&gt;
&lt;p&gt;
This explains the more load/connections to MySQL and the slowness.
&lt;/p&gt;
&lt;p&gt;
Apologies for missing this, should be fixed now. Graphs settling back down...
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 28 May 2013 23:15:58 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/554#comment:6</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/554#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;0.25&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.5&lt;/em&gt; to &lt;em&gt;0.75&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Thanks Jim, that did the trick, sorry for not spotting that the slowness was down to redis being unavailable, I had checked it was running a few times but didn't think to check the password.
&lt;/p&gt;
&lt;p&gt;
I have checked the speed of the site and it's back to loading the front page and all the js, css and images in less than a second via pingdom.com and 200 copies of index.php loads in less than 0.2 seconds, see &lt;a class="wiki" href="http://localhost:8080/trac/wiki/LoadTimes#a2013-05-29"&gt;wiki:LoadTimes#a2013-05-29&lt;/a&gt;
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>ed</dc:creator>

      <pubDate>Wed, 29 May 2013 06:46:21 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/554#comment:7</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/554#comment:7</guid>
      <description>
        &lt;p&gt;
good work lads - going faster than shit off a shovel now. even the panels pages. nice.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>