13 | | == Munin Stats == |
14 | | |
15 | | There are munin stats for the server available here |
16 | | |
17 | | * https://penguin.transitionnetwork.org/munin/transitionnetwork.org/puffin.transitionnetwork.org/ |
18 | | |
19 | | See ticket:555#comment:13 for the notes regarding the installation of the MySQL munin stats package. See ticket:677#comment:3 for the Redis plugin install notes. |
20 | | |
21 | | Sometimes the IO State graph stops, this can be fixed by deleting the lock files, see ticket:555#IOstategraph. |
22 | | |
23 | | Some BOA upgrades change the Redis password and then it needed to be copied from {{{/etc/redis/redis.conf}}} to {{{/etc/munin/plugin-conf.d/munin-node}}} and munin-node needed restarting, see ticket:730 and PuffinServer#Muninconfigchanges. |
24 | | |
25 | | We did have a trial with New Relic in 2013, see ticket:586 but this isn't on-going. |
26 | | |
27 | | == HTTP Stats == |
28 | | |
29 | | The wiki:PiwikServer generates stats from the humans visiting the server and some of these stats have been made public on wiki:WebStats. |
30 | | |
31 | | There are some notes on analysing the raw Nginx stats on wiki:WebServerLogs and [https://penguin.transitionnetwork.org/webalizer/puffin/ Webalizer stats for Puffin] are available using the same username/password as this Trac site. |
32 | | |
33 | | There is a wiki:ErrorCodeCheck script which emails the total number of HTTP errors each day, see ticket:483#comment:63 for a list of the total for August, September and October 2013. |
34 | | |
35 | | == Load Spikes == |
36 | | |
37 | | The documentation of the load spike suicides that the server suffered from in 2013 has been archived to wiki:PuffinServerBoaLoadSpikes as that documentation is now out dated. |
38 | | |
39 | | When the server was updated to BOA-2.2.3 on ticket:721 the scripts in {{{/var/xdrago/}}} were changed, however the load spike issue hasn't been finally resolved, see ticket:670#comment:22. |
40 | | |
41 | | == Tickets == |
42 | | |
43 | | Most the "live server" tickets relate to puffin, but the older ones, prior to ticket number #466, are for previous servers. |
44 | | |
45 | | === Current live server tickets === |
46 | | |
47 | | [[TicketQuery(status=accepted|new|assigned|reopened&component=Live server,order=id,desc=1,format=table,col=summary|owner|reporter)]] |
48 | | |
49 | | === Closed live server tickets === |
50 | | |
51 | | [[TicketQuery(status=closed&component=Live server,order=id,desc=1,format=table,col=summary|owner|reporter)]] |
52 | | |
58 | | |
59 | | === MariaDB === |
60 | | |
61 | | The MySQL root password is available in {{{/root/.my.cnf}}}. |
62 | | |
63 | | Tuning of the MySQL server is being tracked on ticket:587. |
64 | | |
65 | | We have set MySQL to use a RAM disk for temp tables, see ticket:591. |
66 | | |
67 | | BOA installs MariaDB as the MySQL server using the debs from the MariaDB site, see {{{/etc/apt/sources.list.d/mariadb.list}}}, these are the current (2013-01-13) packages which are installed (note the config files only remain for php5-mysql as PHP in now installed from source code by BOA): |
68 | | |
69 | | {{{ |
70 | | dpkg -l | grep -i mysql |
71 | | ii libdbd-mysql-perl 4.021-1+b1 amd64 Perl5 database interface to the MySQL database |
72 | | ii libmysqlclient16 5.1.72-2 amd64 MySQL database client library |
73 | | ii libmysqlclient18 5.5.34+maria-1~wheezy amd64 Virtual package to satisfy external depends |
74 | | ii mariadb-common 5.5.34+maria-1~wheezy all MariaDB database common files (e.g. /etc/mysql/conf.d/mariadb.cnf) |
75 | | ii mysql-common 5.5.34+maria-1~wheezy all MariaDB database common files (e.g. /etc/mysql/my.cnf) |
76 | | ii mytop 1.6-6 all top like query monitor for MySQL |
77 | | rc php5-mysql 5.3.27-1~dotdeb.0 amd64 MySQL module for php5 |
78 | | ii python-mysqldb 1.2.3-2 amd64 Python interface to MySQL |
79 | | }}} |
80 | | |
81 | | === Nginx === |
82 | | |
83 | | BOA did use Nginx from dotdeb but now it compiles it from source, the dotdeb config files remain: |
84 | | |
85 | | {{{ |
86 | | dpkg -l | grep -i nginx |
87 | | rc nginx-common 1.4.1-1~dotdeb.0 all small, powerful, scalable web/proxy server - common files |
88 | | }}} |
89 | | |
90 | | The only changes made to the default nginx configuration during the initial install was to move the key and cert it was using out of the way and symlink to the *.transitionnetwork.org ones, see ticket:466#comment:25 and also ticket:707#comment:21. |
91 | | |
92 | | The other change made from the default BOA config are to enable Munin graphs, see wiki:PuffinServer#nginxconfigchanges |
93 | | |
94 | | === php-fpm === |
95 | | |
96 | | Please note that the version of php-fpm that the http://transitionnetwork.org/ site needs to be running to work properly is: |
97 | | |
98 | | {{{ |
99 | | /etc/init.d/php53-fpm |
100 | | }}} |
101 | | |
102 | | The config file for it is {{{/opt/local/etc/php53-fpm.conf}}} and when it is running it is listed in top and ps as php-fpm: |
103 | | |
104 | | {{{ |
105 | | ps -lA | grep php |
106 | | 1 S 0 29482 1 0 80 0 - 188067 - ? 00:00:00 php-fpm |
107 | | 5 S 33 29483 29482 2 80 0 - 205351 - ? 00:01:32 php-fpm |
108 | | 5 S 33 29484 29482 2 80 0 - 199726 - ? 00:01:28 php-fpm |
109 | | ... |
110 | | }}} |
111 | | |
112 | | Please note the settings that we changed from the default BOA ones in {{{/opt/local/etc/php53-fpm.conf}}} below. |
113 | | |
114 | | When the server boots another version of php-fpm was also started, which is listed in top and ps as php5-fpm, this one: |
115 | | |
116 | | {{{ |
117 | | /etc/init.d/php5-fpm |
118 | | }}} |
119 | | |
120 | | Which is configured via files in {{{/etc/php5/fpm/}}}. This version should be stopped if it is found to be running: |
121 | | |
122 | | {{{ |
123 | | /etc/init.d/php5-fpm stop |
124 | | }}} |
125 | | |
126 | | It was stopped from running at runlevel 2 by deleting this symlink (see ticket:560#comment:17): |
127 | | |
128 | | {{{ |
129 | | /etc/rc2.d/S01php5-fpm -> ../init.d/php5-fpm |
130 | | }}} |
131 | | |
132 | | But that didn't solve the problem, see ticket:580. |
133 | | |
134 | | === Redis === |
135 | | |
136 | | Tickets related to Redis issues: |
137 | | |
138 | | * ticket:730 Redist Munin stats stop working after BOA upgrade |
139 | | * ticket:554 Site slow down and MySQL load increase |
140 | | * ticket:677 Spike in MyISAM (search) database activity, Redis unable to cache such requests |
141 | | |
142 | | Redis Munin graphs: |
143 | | |
144 | | * https://penguin.transitionnetwork.org/munin/transitionnetwork.org/puffin.transitionnetwork.org/index.html#redis |
| 176 | === MariaDB === |
| 177 | |
| 178 | The MySQL root password is available in {{{/root/.my.cnf}}}. |
| 179 | |
| 180 | Tuning of the MySQL server is being tracked on ticket:587. |
| 181 | |
| 182 | We have set MySQL to use a RAM disk for temp tables, see ticket:591. |
| 183 | |
| 184 | BOA installs MariaDB as the MySQL server using the debs from the MariaDB site, see {{{/etc/apt/sources.list.d/mariadb.list}}}, these are the current (2013-01-13) packages which are installed (note the config files only remain for php5-mysql as PHP in now installed from source code by BOA): |
| 185 | |
| 186 | {{{ |
| 187 | dpkg -l | grep -i mysql |
| 188 | ii libdbd-mysql-perl 4.021-1+b1 amd64 Perl5 database interface to the MySQL database |
| 189 | ii libmysqlclient16 5.1.72-2 amd64 MySQL database client library |
| 190 | ii libmysqlclient18 5.5.34+maria-1~wheezy amd64 Virtual package to satisfy external depends |
| 191 | ii mariadb-common 5.5.34+maria-1~wheezy all MariaDB database common files (e.g. /etc/mysql/conf.d/mariadb.cnf) |
| 192 | ii mysql-common 5.5.34+maria-1~wheezy all MariaDB database common files (e.g. /etc/mysql/my.cnf) |
| 193 | ii mytop 1.6-6 all top like query monitor for MySQL |
| 194 | rc php5-mysql 5.3.27-1~dotdeb.0 amd64 MySQL module for php5 |
| 195 | ii python-mysqldb 1.2.3-2 amd64 Python interface to MySQL |
| 196 | }}} |
| 197 | |
| 198 | === Nginx === |
| 199 | |
| 200 | BOA did use Nginx from dotdeb but now it compiles it from source, the dotdeb config files remain: |
| 201 | |
| 202 | {{{ |
| 203 | dpkg -l | grep -i nginx |
| 204 | rc nginx-common 1.4.1-1~dotdeb.0 all small, powerful, scalable web/proxy server - common files |
| 205 | }}} |
| 206 | |
| 207 | The only changes made to the default nginx configuration during the initial install was to move the key and cert it was using out of the way and symlink to the *.transitionnetwork.org ones, see ticket:466#comment:25 and also ticket:707#comment:21. |
| 208 | |
| 209 | The other change made from the default BOA config are to enable Munin graphs, see wiki:PuffinServer#nginxconfigchanges |
| 210 | |
| 211 | === php-fpm === |
| 212 | |
| 213 | Please note that the version of php-fpm that the http://transitionnetwork.org/ site needs to be running to work properly is: |
| 214 | |
| 215 | {{{ |
| 216 | /etc/init.d/php53-fpm |
| 217 | }}} |
| 218 | |
| 219 | The config file for it is {{{/opt/local/etc/php53-fpm.conf}}} and when it is running it is listed in top and ps as php-fpm: |
| 220 | |
| 221 | {{{ |
| 222 | ps -lA | grep php |
| 223 | 1 S 0 29482 1 0 80 0 - 188067 - ? 00:00:00 php-fpm |
| 224 | 5 S 33 29483 29482 2 80 0 - 205351 - ? 00:01:32 php-fpm |
| 225 | 5 S 33 29484 29482 2 80 0 - 199726 - ? 00:01:28 php-fpm |
| 226 | ... |
| 227 | }}} |
| 228 | |
| 229 | Please note the settings that we changed from the default BOA ones in {{{/opt/local/etc/php53-fpm.conf}}} below. |
| 230 | |
| 231 | When the server boots another version of php-fpm was also started, which is listed in top and ps as php5-fpm, this one: |
| 232 | |
| 233 | {{{ |
| 234 | /etc/init.d/php5-fpm |
| 235 | }}} |
| 236 | |
| 237 | Which is configured via files in {{{/etc/php5/fpm/}}}. This version should be stopped if it is found to be running: |
| 238 | |
| 239 | {{{ |
| 240 | /etc/init.d/php5-fpm stop |
| 241 | }}} |
| 242 | |
| 243 | It was stopped from running at runlevel 2 by deleting this symlink (see ticket:560#comment:17): |
| 244 | |
| 245 | {{{ |
| 246 | /etc/rc2.d/S01php5-fpm -> ../init.d/php5-fpm |
| 247 | }}} |
| 248 | |
| 249 | But that didn't solve the problem, see ticket:580. |
| 250 | |
| 251 | === Redis === |
| 252 | |
| 253 | Tickets related to Redis issues: |
| 254 | |
| 255 | * ticket:730 Redist Munin stats stop working after BOA upgrade |
| 256 | * ticket:554 Site slow down and MySQL load increase |
| 257 | * ticket:677 Spike in MyISAM (search) database activity, Redis unable to cache such requests |
| 258 | |
| 259 | Redis Munin graphs: |
| 260 | |
| 261 | * https://penguin.transitionnetwork.org/munin/transitionnetwork.org/puffin.transitionnetwork.org/index.html#redis |
| 262 | |
| 263 | == Munin Stats == |
| 264 | |
| 265 | There are munin stats for the server available here |
| 266 | |
| 267 | * https://penguin.transitionnetwork.org/munin/transitionnetwork.org/puffin.transitionnetwork.org/ |
| 268 | |
| 269 | See ticket:555#comment:13 for the notes regarding the installation of the MySQL munin stats package. See ticket:677#comment:3 for the Redis plugin install notes. |
| 270 | |
| 271 | Sometimes the IO State graph stops, this can be fixed by deleting the lock files, see ticket:555#IOstategraph. |
| 272 | |
| 273 | Some BOA upgrades change the Redis password and then it needed to be copied from {{{/etc/redis/redis.conf}}} to {{{/etc/munin/plugin-conf.d/munin-node}}} and munin-node needed restarting, see ticket:730 and PuffinServer#Muninconfigchanges. |
| 274 | |
| 275 | We did have a trial with New Relic in 2013, see ticket:586 but this isn't on-going. |
| 276 | |
| 277 | == HTTP Stats == |
| 278 | |
| 279 | The wiki:PiwikServer generates stats from the humans visiting the server and some of these stats have been made public on wiki:WebStats. |
| 280 | |
| 281 | There are some notes on analysing the raw Nginx stats on wiki:WebServerLogs and [https://penguin.transitionnetwork.org/webalizer/puffin/ Webalizer stats for Puffin] are available using the same username/password as this Trac site. |
| 282 | |
| 283 | There is a wiki:ErrorCodeCheck script which emails the total number of HTTP errors each day, see ticket:483#comment:63 for a list of the total for August, September and October 2013. |
| 284 | |
| 285 | == Load Spikes == |
| 286 | |
| 287 | The documentation of the load spike suicides that the server suffered from in 2013 has been archived to wiki:PuffinServerBoaLoadSpikes as that documentation is now out dated. |
| 288 | |
| 289 | When the server was updated to BOA-2.2.3 on ticket:721 the scripts in {{{/var/xdrago/}}} were changed, however the load spike issue hasn't been finally resolved, see ticket:670#comment:22. |
| 290 | |
| 291 | == Tickets == |
| 292 | |
| 293 | Most the "live server" tickets relate to puffin, but the older ones, prior to ticket number #466, are for previous servers. |
| 294 | |
| 295 | === Current live server tickets === |
| 296 | |
| 297 | [[TicketQuery(status=accepted|new|assigned|reopened&component=Live server,order=id,desc=1,format=table,col=summary|owner|reporter)]] |
| 298 | |
| 299 | === Closed live server tickets === |
| 300 | |
| 301 | [[TicketQuery(status=closed&component=Live server,order=id,desc=1,format=table,col=summary|owner|reporter)]] |
| 302 | |
| 303 | |