1.修改gevent
/duitang/dist/sys/python/lib/python2.7/site-packages/gunicorn/workers/ggevent.py
monkey.patch_all(socket=True, dns=True, time=True, select=True, thread=False, os=True, ssl=True, httplib=False, aggressive=True)
2. 修改mysql backend
import sqlalchemy.pool as pool
Database = pool.manage(Database,recycle=604800,pool_size=2, max_overflow=0,use_threadlocal=True)
3.测试结果,非常不稳定。