基于分布式lamp架构的web服务性能分析
发布时间:2019-05-08 05:15
【摘要】:Web的特性有交互性、广泛性、易用性、实时性等,当Web出现之后,使互联网上的网页数量以指数级飞速增长。随着网络上流量的剧增,使一些Web站点负荷超载而变得反应缓慢甚至土崩瓦解。有很多网站都是在发展初期,由于无法承受巨大的压力导致崩溃。为了保证正常的web服务,必须搭建一套高效、稳定、健壮、7*24小时不间断的系统。基于分布式lamp架构对web的服务性能进行分析,可以找到Web服务组合型系统的性能的较优配置,而且结果比较精确。Web服务正成为不同企业的分布式应用之间通信的最重要的技术。现阶段Web服务已经作为关键技术基础服务于众多的Web的分布式应用(如电子政务、电子商务等)。 虽然现在关于服务器性能的优化已经有了成熟的发展,但是现在还存在多种问题,比如随着互联网用户群的膨胀,用户数量的增加,服务器不能单靠增加服务器来保持稳定的运营。从数据的存储和分发、多级缓存、负载均衡到前段的CSS和JS,都是经过完美的优化和处理,来解决日益增加的负载。当然,还有很多敏捷项目,他们用户群小,对系统的压力小,开发速度快,敏捷的特性使得项目和产品多变,,这使得我们可以更快更好的满足用户的需求,当然这也导致了系统在开发的过程中,难免变得脆弱,越来越大的系统,导致服务器负载增加,甚至出现了1核CPU使用100%的情况。对于这些问题,我们不断的总结、反思,着手优化,不断升级,不断试验,用新的技术创新去解决这些问题。 综上,本文通过apache服务器负载均衡,php框架性能分析及使用,mysql的优化,Rpc构建等几个方面来对服务器性能进行优化,基于效率、代码维护成本、对现有系统的影响程度、学习成本方面对调优试验结果数据进行分析,得出结论:高性能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
本文链接:https://www.wllwen.com/guanlilunwen/ydhl/2471645.html