博客转到goDaddy

由于我兄弟的主机要转向,个人博客 puzzlebird.com 今天转到了 goDaddy.com,每个月5美金,花了些时间搬站,不是很顺利,不过还是搞好了。

  1. MySQL的character set 由 latin1 转到了 UTF8,需要修改dump文件中SQL语句,使用 phpmyadmin import的时候,要把所有DB和Table的codepage都设为UTF8。
  2. 转移到新的服务器,所有的帖子都找不到了,禁用所有plugin解决。
现在都搞定了,升级完成,花了6个小时。如果请consultant做,大概是500-800美金.

Ensembl mirror inaccessbile under intensive MySQL requests

The background for this issue that our user found local ensembl mirror sometimes inaccessible, but after a few refresh the pages comes out again. I realized the problem was caused by the small default value of max_connections in MySQL server, and the fact the ensembl uses DBI instead of Apache::DBI in the perl.startup script.

In the latest CVS code of ensembl, perl.startup file still uses “DBI” module, soI believe it will have potential performance issues on other mirror sites.

Continue reading

ZT: High Traffic Web Development

From: /dev/random

One thing I’ve found in common with all large
sites and that should be pretty obvious, is a PHP compiler cache and
some type of caching system. Some of the more popular ones are APC,
Bware Afterburner, Turck MMCache, and the Zend Accelerator. PHP caching
systems are easy to write and can speed up template calls a ton.

Continue reading

BSQ_Stats component melts the mySQL server

BSQ_stat component and module used to be the major tool to track the users of my sites, but Jack just kicked my ass because some of my MySQL processes took almost 100% CPU. Command “show processlists” stated my site is updating the BSQ_stats’s table, and the process seemed to hang and messed up the system. Apparently there’s bug in this component. Anyway, I removed this componets and uses only Google Analytics to track the traffic.

Continue reading