基于分布式lamp架構的web服務性能分析
發(fā)布時間:2019-05-08 05:15
【摘要】:Web的特性有交互性、廣泛性、易用性、實時性等,當Web出現(xiàn)之后,使互聯(lián)網(wǎng)上的網(wǎng)頁數(shù)量以指數(shù)級飛速增長。隨著網(wǎng)絡上流量的劇增,使一些Web站點負荷超載而變得反應緩慢甚至土崩瓦解。有很多網(wǎng)站都是在發(fā)展初期,由于無法承受巨大的壓力導致崩潰。為了保證正常的web服務,必須搭建一套高效、穩(wěn)定、健壯、7*24小時不間斷的系統(tǒng);诜植际絣amp架構對web的服務性能進行分析,可以找到Web服務組合型系統(tǒng)的性能的較優(yōu)配置,而且結果比較精確。Web服務正成為不同企業(yè)的分布式應用之間通信的最重要的技術,F(xiàn)階段Web服務已經(jīng)作為關鍵技術基礎服務于眾多的Web的分布式應用(如電子政務、電子商務等)。 雖然現(xiàn)在關于服務器性能的優(yōu)化已經(jīng)有了成熟的發(fā)展,但是現(xiàn)在還存在多種問題,比如隨著互聯(lián)網(wǎng)用戶群的膨脹,用戶數(shù)量的增加,服務器不能單靠增加服務器來保持穩(wěn)定的運營。從數(shù)據(jù)的存儲和分發(fā)、多級緩存、負載均衡到前段的CSS和JS,都是經(jīng)過完美的優(yōu)化和處理,來解決日益增加的負載。當然,還有很多敏捷項目,他們用戶群小,對系統(tǒng)的壓力小,開發(fā)速度快,敏捷的特性使得項目和產(chǎn)品多變,,這使得我們可以更快更好的滿足用戶的需求,當然這也導致了系統(tǒng)在開發(fā)的過程中,難免變得脆弱,越來越大的系統(tǒng),導致服務器負載增加,甚至出現(xiàn)了1核CPU使用100%的情況。對于這些問題,我們不斷的總結、反思,著手優(yōu)化,不斷升級,不斷試驗,用新的技術創(chuàng)新去解決這些問題。 綜上,本文通過apache服務器負載均衡,php框架性能分析及使用,mysql的優(yōu)化,Rpc構建等幾個方面來對服務器性能進行優(yōu)化,基于效率、代碼維護成本、對現(xiàn)有系統(tǒng)的影響程度、學習成本方面對調(diào)優(yōu)試驗結果數(shù)據(jù)進行分析,得出結論:高性能web服務的搭建,需要對以上模塊的合理利用,通過負載均衡分散用戶請求,memcached,分布式存儲session信息,合理的使用框架和表結構。
[Abstract]:The characteristics of Web are interactive, extensive, easy to use, real-time, and so on. After the appearance of Web, the number of web pages on the Internet increases exponentially. With the rapid increase of traffic on the network, some Web sites are overloaded and become slow to respond and even collapse. There are many sites in the early stages of development, due to the unbearable pressure caused by collapse. In order to ensure a normal web service, we must build an efficient, stable, robust, 7-hour 24-hour system. By analyzing the service performance of web based on the distributed lamp architecture, we can find the optimal configuration of the performance of the Web services composite system. Web services are becoming the most important communication technology among distributed applications in different enterprises. At present, as the key technology foundation, Web service has been used in many distributed applications of Web (e-government, e-commerce, etc.). Although there has been a mature development in the optimization of server performance, there are still many problems, such as the expansion of the Internet user base and the increase in the number of users. Servers cannot be kept stable by simply adding them. From the storage and distribution of data, multi-level caching, load balancing to the front of the CSS and JS, are perfectly optimized and processed to solve the increasing load. Of course, there are a lot of agile projects, they have a small user base, less pressure on the system, rapid development, agile features make projects and products changeable, which allows us to meet the needs of users faster and better. Of course, this also led to the development of the system, inevitably become fragile, more and more large systems, resulting in an increase in server load, and even the use of 100% of the one-core CPU situation. For these problems, we continue to summarize, reflect, proceed to optimize, constantly upgrade, continue to experiment, with new technological innovation to solve these problems. In summary, this paper optimizes the server performance through apache server load balancing, php framework performance analysis and use, mysql optimization, Rpc construction and so on, based on efficiency, code maintenance cost, and the degree of impact on the existing system. From the aspect of learning cost, it is concluded that the construction of high-performance web service requires the rational utilization of the above modules, distributing user requests through load balancing, and distributed storage of session information by memcached, and it is concluded that the construction of high-performance session services requires a reasonable utilization of the above modules. Rational use of framework and table structure.
【學位授予單位】:吉林大學
【學位級別】:碩士
【學位授予年份】:2014
【分類號】:TP393.09
本文編號:2471645
[Abstract]:The characteristics of Web are interactive, extensive, easy to use, real-time, and so on. After the appearance of Web, the number of web pages on the Internet increases exponentially. With the rapid increase of traffic on the network, some Web sites are overloaded and become slow to respond and even collapse. There are many sites in the early stages of development, due to the unbearable pressure caused by collapse. In order to ensure a normal web service, we must build an efficient, stable, robust, 7-hour 24-hour system. By analyzing the service performance of web based on the distributed lamp architecture, we can find the optimal configuration of the performance of the Web services composite system. Web services are becoming the most important communication technology among distributed applications in different enterprises. At present, as the key technology foundation, Web service has been used in many distributed applications of Web (e-government, e-commerce, etc.). Although there has been a mature development in the optimization of server performance, there are still many problems, such as the expansion of the Internet user base and the increase in the number of users. Servers cannot be kept stable by simply adding them. From the storage and distribution of data, multi-level caching, load balancing to the front of the CSS and JS, are perfectly optimized and processed to solve the increasing load. Of course, there are a lot of agile projects, they have a small user base, less pressure on the system, rapid development, agile features make projects and products changeable, which allows us to meet the needs of users faster and better. Of course, this also led to the development of the system, inevitably become fragile, more and more large systems, resulting in an increase in server load, and even the use of 100% of the one-core CPU situation. For these problems, we continue to summarize, reflect, proceed to optimize, constantly upgrade, continue to experiment, with new technological innovation to solve these problems. In summary, this paper optimizes the server performance through apache server load balancing, php framework performance analysis and use, mysql optimization, Rpc construction and so on, based on efficiency, code maintenance cost, and the degree of impact on the existing system. From the aspect of learning cost, it is concluded that the construction of high-performance web service requires the rational utilization of the above modules, distributing user requests through load balancing, and distributed storage of session information by memcached, and it is concluded that the construction of high-performance session services requires a reasonable utilization of the above modules. Rational use of framework and table structure.
【學位授予單位】:吉林大學
【學位級別】:碩士
【學位授予年份】:2014
【分類號】:TP393.09
【參考文獻】
相關期刊論文 前1條
1 馬琳,羅鐵堅,宋進亮,葉世偉;Web性能測試與預測[J];中國科學院研究生院學報;2005年04期
本文編號:2471645
本文鏈接:http://www.wukwdryxk.cn/guanlilunwen/ydhl/2471645.html
最近更新
教材專著