<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Transition Technology: Ticket #823: Pwiki 2014 annual report</title>
    <link>http://localhost:8080/trac/ticket/823</link>
    <description>&lt;p&gt;
Ed would like a some PDF reports of Transition Network site usage for 2014 from Piwik.
&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/823</link>
    </image>
    <generator>Trac 0.12.5</generator>
    <item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 07 Jan 2015 12:24:11 GMT</pubDate>
      <title>attachment set</title>
      <link>http://localhost:8080/trac/ticket/823</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/823</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;attachment&lt;/strong&gt;
                set to &lt;em&gt;memory-year.png&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Penguin Memory 2014
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 07 Jan 2015 12:24:29 GMT</pubDate>
      <title>attachment set</title>
      <link>http://localhost:8080/trac/ticket/823</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/823</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;attachment&lt;/strong&gt;
                set to &lt;em&gt;swap-year.png&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Penguin Swap 2014
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 07 Jan 2015 12:29:38 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/823#comment:1</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/823#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;
        &lt;p&gt;
Pwiki is struggling with the lack of RAM on the server which hosts it, &lt;a class="wiki" href="http://localhost:8080/trac/wiki/PenguinServer"&gt;PenguinServer&lt;/a&gt;, see &lt;a class="ext-link" href="https://penguin.transitionnetwork.org/munin/transitionnetwork.org/penguin.transitionnetwork.org/index.html"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;the Munin stats&lt;/a&gt;:
&lt;/p&gt;
&lt;p&gt;
&lt;a style="padding:0; border:none" href="http://localhost:8080/trac/attachment/ticket/823/memory-year.png"&gt;&lt;img src="http://localhost:8080/trac/raw-attachment/ticket/823/memory-year.png" alt="Penguin Memory 2014" title="Penguin Memory 2014" /&gt;&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
See the "committed" line in the graph above.
&lt;/p&gt;
&lt;p&gt;
&lt;a style="padding:0; border:none" href="http://localhost:8080/trac/attachment/ticket/823/swap-year.png"&gt;&lt;img src="http://localhost:8080/trac/raw-attachment/ticket/823/swap-year.png" alt="Penguin Swap 2014" title="Penguin Swap 2014" /&gt;&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
The server has 3GB of RAM, I'm going to dramatically increase this, which will require a reboot, and then generate the Piwik report and then put it back to 3GB and do another reboot.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 07 Jan 2015 12:34:55 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/823#comment:2</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/823#comment:2</guid>
      <description>
        &lt;p&gt;
The server is now running with 15 rather than 8 CPUs and 20GB rather than 3GB of RAM.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 07 Jan 2015 13:41:09 GMT</pubDate>
      <title>attachment set</title>
      <link>http://localhost:8080/trac/ticket/823</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/823</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;attachment&lt;/strong&gt;
                set to &lt;em&gt;Report_Transition_Network_-_2014.pdf&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
TN Piwik Stats 2014 Version 1
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 07 Jan 2015 13:46:10 GMT</pubDate>
      <title>attachment set</title>
      <link>http://localhost:8080/trac/ticket/823</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/823</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;attachment&lt;/strong&gt;
                set to &lt;em&gt;Report_Transition_Network_-_2014_v2.pdf&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Transition Network Pwiki Stats 2014
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 07 Jan 2015 13:51:59 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/823#comment:3</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/823#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.21&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;1.46&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
I edited &lt;tt&gt;/etc/php5/fpm/pool.d/www.conf&lt;/tt&gt;:
&lt;/p&gt;
&lt;pre class="wiki"&gt;php_admin_value[memory_limit] = 16G
&lt;/pre&gt;&lt;p&gt;
And &lt;tt&gt;/etc/php5/fpm/php.ini&lt;/tt&gt;:
&lt;/p&gt;
&lt;pre class="wiki"&gt;;max_execution_time = 30
max_execution_time = 3600
;max_input_time = 60
max_input_time = 3600
#memory_limit = 128M
memory_limit = 18G
&lt;/pre&gt;&lt;p&gt;
And restarted &lt;tt&gt;php-fpm&lt;/tt&gt;.
&lt;/p&gt;
&lt;p&gt;
And then edited &lt;tt&gt;/etc/nginx/nginx.conf&lt;/tt&gt; and edited:
&lt;/p&gt;
&lt;pre class="wiki"&gt;        #keepalive_timeout 240;
        keepalive_timeout 3600;
&lt;/pre&gt;&lt;p&gt;
And edited &lt;tt&gt;/etc/nginx/stats-shared &lt;/tt&gt;:
&lt;/p&gt;
&lt;pre class="wiki"&gt;        fastcgi_read_timeout 3600;
&lt;/pre&gt;&lt;p&gt;
And restarted Nginx.
&lt;/p&gt;
&lt;p&gt;
Things to note from watching &lt;tt&gt;top&lt;/tt&gt;, each php-fpm process uses one processor, memory usage per php-fpm process reached 780M.
&lt;/p&gt;
&lt;p&gt;
Dispite changing all these settings (and the values above are the final values not all the ones tried) I was still getting "504 Gateway Time-out" from Nginx when trying to generate a PDF via the browser, however the "send report via email" function, which I expect uses the cli version of php, does appear to work... However there are some stats from the imported GA data which are no longer being collected and also some graphs which go from 2005 to 2009 -- this appears to be a Piwik bug, see:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="attachment" href="http://localhost:8080/trac/attachment/ticket/823/Report_Transition_Network_-_2014.pdf" title="Attachment 'Report_Transition_Network_-_2014.pdf' in Ticket #823"&gt;attachment:ticket:823:Report_Transition_Network_-_2014.pdf&lt;/a&gt;&lt;a class="trac-rawlink" href="http://localhost:8080/trac/raw-attachment/ticket/823/Report_Transition_Network_-_2014.pdf" title="Download"&gt;​&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
So I generated another report without the buggy reports:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="attachment" href="http://localhost:8080/trac/attachment/ticket/823/Report_Transition_Network_-_2014_v2.pdf" title="Attachment 'Report_Transition_Network_-_2014_v2.pdf' in Ticket #823"&gt;attachment:ticket:823:Report_Transition_Network_-_2014_v2.pdf&lt;/a&gt;&lt;a class="trac-rawlink" href="http://localhost:8080/trac/raw-attachment/ticket/823/Report_Transition_Network_-_2014_v2.pdf" title="Download"&gt;​&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
However I don't know if this has enough data?
&lt;/p&gt;
&lt;p&gt;
A better job could be done manually generating graphs using the web interface and exporting tables etc, but that would be more time consuming -- Ed is the last PDF you have been sent adequate?
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 07 Jan 2015 14:19:10 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/823#comment:4</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/823#comment:4</guid>
      <description>
        &lt;p&gt;
The 2005 to 2009 graphs deserve a ticket with Piwik -- if these graphs are wanted from the PDF -- I'm happy to follow this up if you think it deserves the time.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>ed</dc:creator>

      <pubDate>Wed, 07 Jan 2015 14:31:17 GMT</pubDate>
      <title>status changed; resolution set</title>
      <link>http://localhost:8080/trac/ticket/823#comment:5</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/823#comment:5</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;
That's great Chris thanks. Closing ticket.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 07 Jan 2015 14:46:01 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/823#comment:6</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/823#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;1.46&lt;/em&gt; to &lt;em&gt;1.71&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
OK, undoing the changes / setting sane values, &lt;tt&gt;/etc/php5/fpm/pool.d/www.conf&lt;/tt&gt;:
&lt;/p&gt;
&lt;pre class="wiki"&gt;php_admin_value[memory_limit] = 256M
&lt;/pre&gt;&lt;p&gt;
In &lt;tt&gt;/etc/php5/fpm/php.ini&lt;/tt&gt;:
&lt;/p&gt;
&lt;pre class="wiki"&gt;max_execution_time = 60
max_input_time = 60
memory_limit = 256M
&lt;/pre&gt;&lt;p&gt;
In &lt;tt&gt;/etc/nginx/nginx.conf&lt;/tt&gt;:
&lt;/p&gt;
&lt;pre class="wiki"&gt;keepalive_timeout 240;
&lt;/pre&gt;&lt;p&gt;
In &lt;tt&gt;/etc/nginx/stats-shared&lt;/tt&gt;:
&lt;/p&gt;
&lt;pre class="wiki"&gt;fastcgi_read_timeout 240;
&lt;/pre&gt;&lt;p&gt;
And I'm now rebooting the server to reset the RAM and CPUs.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 07 Jan 2015 14:58:16 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/823#comment:7</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/823#comment:7</guid>
      <description>
        &lt;p&gt;
It's worth noting that the MySQL dump of the Piwik database is 3.3G in size -- it is a lot of data...
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>