????· ?????????????4GB???
????· ????????Ubuntu 14.04 LTS
????· ?????????django
????· ????????apache ab
????· ?????????1000?????? 1000~10000??????
????????Ч????
????django
??????????????????django??server??????????????????10000????????????brokenpipe????????????1400???????????????????14%????????ü???????????
????django + nginx
??????δ?????nginx???????????????????django??????????????????????????????????10000??????????3684?????????????
????uwsgi + nginx
????uwsgi???????????????C??д??????????????uwsgiЭ?飬??????????nginx????django??request???????4????+2??????????????????????????????????????????90%???????????????????????????????uwsgi?????????????????????????????????????????????????????1000?β???????uwsgi????????????????100?????′???????????????????????????????????somaxcon???С????????????????uwsgi+nginx?????????????
????gunicorn + nginx
????gunicorn??uwsgi??????????????????http????????????ruby??unicorn????????????python??д??????????ü??????????????????????????????????????????????п??????????????????????django??????????????????????????????????90%?????
????gunicorn + nginx + gevent
????????????????????????????????????????????????gunicorn???????sync?????????????е??????????????Щ??????????????????gunicorn????-k gevent????????gevent?????????????????????????????????????п????????gunicorn + nginx + gevent??????????е??????????????????????????????5???????????е????????

???????в????????

?????????:http://www.jianshu.com/p/19c1af4dd24f?1487473000502