<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Transition Technology: Ticket #585: TTech Meeting 5th September 2013</title>
    <link>http://localhost:8080/trac/ticket/585</link>
    <description>&lt;p&gt;
This ticket has been created for the TTech Skype meeting due to take place today.
&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/585</link>
    </image>
    <generator>Trac 0.12.5</generator>
    <item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Thu, 05 Sep 2013 08:55:01 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/585#comment:1</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/585#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;1.5&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;1.5&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Some notes for the meeting.
&lt;/p&gt;
&lt;h2 id="SpamandBots"&gt;Spam and Bots&lt;/h2&gt;
&lt;p&gt;
I have changed the webalizer stats to use the same username and passwords as trac as I couldn't remember the password I set, you can access them here:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://penguin.transitionnetwork.org/webalizer/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://penguin.transitionnetwork.org/webalizer/&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
According to these stats (and they don't, by any means, include everything as I couldn't work out how to get nginx to log everything) for August we:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Served 69GB of data
&lt;/li&gt;&lt;li&gt;Had 1.4m hits
&lt;/li&gt;&lt;li&gt;Had 217k visits
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
By response code:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;1.1m       200 - OK
&lt;/li&gt;&lt;li&gt;145k       301/302 - redirects
&lt;/li&gt;&lt;li&gt;105k       404 - not found
&lt;/li&gt;&lt;li&gt;5k         502 - Bad Gateway
&lt;/li&gt;&lt;li&gt;6k         503 - Service Unavailable
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
The biggest single source of bandwidth by URL is Rob's RSS feed, 34.5GB of data, 150k hits. This represents half the total site data transfer, the RSS files is 0.4MB but will hopefully be mostly served gzipped at 0.1MB.
&lt;/p&gt;
&lt;p&gt;
More data is transferred for /user/register than the front page, 5.1GB compared to 3.6GB.
&lt;/p&gt;
&lt;p&gt;
The most popular user agents are bots, by hits:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;110k Googlebot
&lt;/li&gt;&lt;li&gt;78k  Bingbot
&lt;/li&gt;&lt;li&gt;74k  AhrefsBot
&lt;/li&gt;&lt;li&gt;43k  Drupal
&lt;/li&gt;&lt;li&gt;43k  Pingdom
&lt;/li&gt;&lt;li&gt;36k  Baiduspider
&lt;/li&gt;&lt;li&gt;26k  FeedBurner
&lt;/li&gt;&lt;li&gt;26k  magpie-crawler
&lt;/li&gt;&lt;li&gt;17k  Wget
&lt;/li&gt;&lt;li&gt;15k  Apple-PubSub
&lt;/li&gt;&lt;li&gt;12k  msnbot
&lt;/li&gt;&lt;/ul&gt;&lt;h2 id="Drupalsettings"&gt;Drupal settings&lt;/h2&gt;
&lt;p&gt;
MySQL has been running for 1 day and 8 hours and these figures are based on that.
&lt;/p&gt;
&lt;p&gt;
According to mysqltuner.pl this is flagged up:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Joins performed without indexes: 4657
&lt;/li&gt;&lt;li&gt;Adjust your join queries to always utilize indexes
&lt;/li&gt;&lt;li&gt;join_buffer_size (&amp;gt; 128.0M, or always use indexes with joins)
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
And according to tuning-primer.sh:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Current join_buffer_size = 128.00 M
&lt;/li&gt;&lt;li&gt;You have had 4657 queries where a join could not use an index properly
&lt;/li&gt;&lt;li&gt;join_buffer_size &amp;gt;= 4 M This is not advised
&lt;/li&gt;&lt;li&gt;You should enable "log-queries-not-using-indexes" Then look for non indexed joins in the slow query log.
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
And:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;The slow query log is enabled.
&lt;/li&gt;&lt;li&gt;Current long_query_time = 5.000000 sec.
&lt;/li&gt;&lt;li&gt;You have 57509 out of 8073570 that take longer than 5.000000 sec. to complete
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
And:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Of 137391 temp tables, 25% were created on disk
&lt;/li&gt;&lt;/ul&gt;&lt;h2 id="BOA"&gt;BOA&lt;/h2&gt;
&lt;p&gt;
Would it be worth considering a dedicated MySQL server?
&lt;/p&gt;
&lt;h2 id="Hardware"&gt;Hardware&lt;/h2&gt;
&lt;p&gt;
The physical server the virtual machines are running on has stopped responding a couple of times in the last month, this appears to be due to faulty RAM, 3 chips were recorded as having faults in the BIOS log and these were all replaced on Tuesday evening.
&lt;/p&gt;
&lt;p&gt;
There doesn't appear to be an issue with memory:
&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/memory.html"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://penguin.transitionnetwork.org/munin/transitionnetwork.org/puffin.transitionnetwork.org/memory.html&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
Or CPU:
&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/cpu.html"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://penguin.transitionnetwork.org/munin/transitionnetwork.org/puffin.transitionnetwork.org/cpu.html&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
Two immediate options which could be considered:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Moving the file system to our new ZFS Sheffield file server
&lt;/li&gt;&lt;li&gt;Moving the site to hardware Iceland
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
The ZFS files server uses RAM and SSD caches and one big advantage is that we could change the way backups are done by using file system snapshots.
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://en.wikipedia.org/wiki/Zfs"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://en.wikipedia.org/wiki/Zfs&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
Other options which would require hardware purchase:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Dedicated server with SSD disks
&lt;/li&gt;&lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Thu, 05 Sep 2013 09:59:37 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/585#comment:2</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/585#comment:2</guid>
      <description>
        &lt;p&gt;
The main ticket the load spikes are documented on is &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;
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Thu, 05 Sep 2013 11:20:07 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/585#comment:3</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/585#comment:3</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;1.5&lt;/em&gt; to &lt;em&gt;2.5&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
TODO for Chris:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Look at CSF for blocking spammers
&lt;/li&gt;&lt;li&gt;Look at caching of RSS feeds, can they be served directly by Nginx?
&lt;/li&gt;&lt;li&gt;Change Mysql &lt;tt&gt;long_query_time         = 5&lt;/tt&gt; to 10 seconds and see what is logged
&lt;/li&gt;&lt;li&gt;Install New Relic on 13th Sept
&lt;/li&gt;&lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>jim</dc:creator>

      <pubDate>Thu, 05 Sep 2013 12:44:15 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/585#comment:4</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/585#comment:4</guid>
      <description>
        &lt;p&gt;
Actually, thinking about it please DO NOT change the slow query time...
&lt;/p&gt;
&lt;p&gt;
Using &lt;a class="ext-link" href="https://github.com/LeeKemp/mysql-slow-query-log-parser"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://github.com/LeeKemp/mysql-slow-query-log-parser&lt;/a&gt; on the 4.8Mb slow log from today gets the attached - very readable and providing some good leads I've already tried to deal with.
&lt;/p&gt;
&lt;p&gt;
I'd rather we had the 5s ones to compare the changes I've made now we have this tool.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>jim</dc:creator>

      <pubDate>Thu, 05 Sep 2013 12:44:57 GMT</pubDate>
      <title>attachment set</title>
      <link>http://localhost:8080/trac/ticket/585</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/585</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;attachment&lt;/strong&gt;
                set to &lt;em&gt;sql.report.log&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Processed slow query log - puffin 5 sep 2013
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Thu, 05 Sep 2013 13:02:09 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/585#comment:5</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/585#comment:5</guid>
      <description>
        &lt;p&gt;
Replying to &lt;a href="http://localhost:8080/trac/ticket/585#comment:4" title="Comment 4 for Ticket #585"&gt;jim&lt;/a&gt;:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
Actually, thinking about it please DO NOT change the slow query time...
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
No problem, I have created a ticket just for Mysql tuning: &lt;a class="assigned ticket" href="http://localhost:8080/trac/ticket/587" title="maintenance: Puffin MySQL Tuning (assigned)"&gt;ticket:587&lt;/a&gt; let's take this there...
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Fri, 06 Sep 2013 09:50:10 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/585#comment:6</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/585#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.1&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;2.5&lt;/em&gt; to &lt;em&gt;2.6&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Follow up tickets regarding matters discussed in this meeting:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/586" title="maintenance: New Relic Monitoring for BOA (closed: fixed)"&gt;ticket:586&lt;/a&gt;         New Relic Monitoring for BOA
&lt;/li&gt;&lt;li&gt;&lt;a class="assigned ticket" href="http://localhost:8080/trac/ticket/587" title="maintenance: Puffin MySQL Tuning (assigned)"&gt;ticket:587&lt;/a&gt;         Puffin MySQL Tuning
&lt;/li&gt;&lt;li&gt;&lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/588" title="maintenance: RSS feed caching (closed: fixed)"&gt;ticket:588&lt;/a&gt;    RSS feed caching
&lt;/li&gt;&lt;li&gt;&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;    Blocking spammers at a firewall level
&lt;/li&gt;&lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>jim</dc:creator>

      <pubDate>Fri, 06 Sep 2013 10:27:48 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/585#comment:7</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/585#comment:7</guid>
      <description>
        &lt;p&gt;
Plus &lt;a class="assigned ticket" href="http://localhost:8080/trac/ticket/590" title="defect: Drupal performance improvements (assigned)"&gt;#590&lt;/a&gt; Drupal performance improvements
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>jim</dc:creator>

      <pubDate>Fri, 06 Sep 2013 11:33:10 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/585#comment:8</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/585#comment:8</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;2.6&lt;/em&gt; to &lt;em&gt;2.75&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
I've now emailed Ben, Sarah and Amber to inform them of these tickets to help keep them in the loop when Ed's away.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 11 Sep 2013 15:54:00 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/585#comment:9</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/585#comment:9</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;2.75&lt;/em&gt; to &lt;em&gt;3.75&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
I'm adding this comment to record the Skype chat held on 11th September 2013.
&lt;/p&gt;
&lt;p&gt;
I wonder if we should have one TTech Meetings ticket where we can all record out time for meetings?
&lt;/p&gt;
&lt;p&gt;
I have created a ticket for the ZFS migration that was agreed today and is due to take place late one evening next week.
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/593" title="maintenance: Migrating Puffin to a ZFS file server (closed: fixed)"&gt;ticket:593&lt;/a&gt; Migrating Parrot to a ZFS file server
&lt;/li&gt;&lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>jim</dc:creator>

      <pubDate>Thu, 12 Sep 2013 11:11:31 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/585#comment:10</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/585#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.8&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;3.75&lt;/em&gt; to &lt;em&gt;4.55&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Adding my time too.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Thu, 26 Sep 2013 12:00:26 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/585#comment:11</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/585#comment:11</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.45&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;4.55&lt;/em&gt; to &lt;em&gt;5.0&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
On 26th September Jim and I had a phone meeting about New Relic &lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/586" title="maintenance: New Relic Monitoring for BOA (closed: fixed)"&gt;ticket:586&lt;/a&gt; and general state of the load spike issue, &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; and the ZFS migration, &lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/593" title="maintenance: Migrating Puffin to a ZFS file server (closed: fixed)"&gt;ticket:593&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
I'll write some notes up on those tickets.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>jim</dc:creator>

      <pubDate>Sun, 29 Sep 2013 19:16:26 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/585#comment:12</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/585#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.45&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;5.0&lt;/em&gt; to &lt;em&gt;5.45&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Adding my time too...
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Fri, 15 Nov 2013 14:06:10 GMT</pubDate>
      <title>status changed; resolution set</title>
      <link>http://localhost:8080/trac/ticket/585#comment:13</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/585#comment:13</guid>
      <description>
          &lt;ul&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;/ul&gt;
        &lt;p&gt;
Closing this ticket.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>