Font Size: a A A

Design Of High Concurrent Web Server Based On Nginx And Memcached

Posted on:2014-08-07Degree:MasterType:Thesis
Country:ChinaCandidate:H DaiFull Text:PDF
GTID:2208330434472509Subject:Software engineering
Abstract/Summary:PDF Full Text Request
With the rapid development of Internet technology, network information access volume is also growing, people on the WEB web information acquisition volume is also growing, on the same WEB server with fast request volume to increase exponentially, resulting in the formation of the famous C1OK, even C500K problems, and the network operating system in the design and Application service itself characteristics resulting in efficient concurrent design of the WEB server becomes the current Internet technology is an important problem.Based on the analysis of the high concurrent accessing WEB server based on the features, analysis of the current WEB server10model as well as the server framework, while comparing the current popular open source WEB server lighttpd, Apache, nginx performance, high concurrent application needs, in a nginx open source framework based on distributed database, selection of type cached keyValue:memcached cache mechanism, realize the Nginx upstream module, so as to realize based on nginx and memcached WEB high concurrency server system.The design of the system in the in a non-blocking EPOLL support model, a convenient using TCP special settings, including TCP_DEFER, TCP_CORK, TCP_NODELAY, TCP_KEEPALIVE and non-blocking connect strategy to reduce the network load, improve the response time,thus to improve the overall efficiency of network access, on the other hand, the nginx based on the realization of custom memcached upstream module, according to HTTP service feature, all heat data cache to the memcached distributed database, thereby greatly improving the efficiency of accessing data. Since memcached supports the consistency of hash distributed algorithm, the system can be conveniently extend laterally, realizing responsible for balanced and distributed deployment strategy. Finally, after the comparative test, using the nginx+memcached strategy on one hand can be a very good solution to C10/C500K problem, at the same time, to all the users request response time within one second, thereby fully meet the current Internet high speed concurrent design WEB server requirements.
Keywords/Search Tags:nginx, high-speed sever, memcached
PDF Full Text Request
Related items