MySQL query optimization, sub-database partitioning, load balancing, Nginx+Tomcat+Redis (load balancing + session sharing)