I am running Flask with uwsgi threaded mode with processes 4 and using pymongo also flask_mongoengine and uwsgi says "MongoClient opened before fork. Create MongoClient only "
I tried connect with connect=False but the result is same
lazy-apps = true problem is fixed but it seems that uwsgi needs more time to load
what can be done for best performance ?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…