分库分表:http://www.cnblogs.com/zhongxinWang/p/4262650.html
用mongodb做日志记录:http://blog.csdn.net/sandysong28/article/details/6455926