web optimization and server clustering technology
- Author
- LiLiang
- Advisor
- ZhangYiCheng
- School
- University of Electronic Science and Technology
- Major
- Software Engineering
- Classification
- TP393.05 Network equipment
- Degree
- Master's thesis
- Year
- 2010
- Downloads
- 130
- Citations
- 0
Abstract
With the rapid development of Internet, web2.0 wiki type site as a rising star, has been all over the world. Dadipedia is a wiki class web2.0 type site, which was very slow and occasionally crashed because of the increasing users. Dadipedia can not meet the follow-up development because of the bad structure, re- Optimization of the structure become an urgent task.This thesis analyzes the current existence of the earth dadipedia performance and scalability deficiencies, found some problems, such as PHP files all read from the disk, when the increase in high-traffic system IO overhead; system, the lack of opcode caching mechanism PHP code is executed each time leading to duplication of costs incurred in interpretation of compilation; structure, the lack of a database front-end caching mechanism so that when the pressure is too large to read the database; in scalability not take into account the situation of multi-server work together. In the analysis of these issues, this paper put forward a number of these solutions, and these programs have been field-testing and summary of test results last, dadipedias identified for the system architecture of the earth. The framework structure of the earth is divided into load balancing Wikipedia system modules, application layer, data access layer, data storage layer, cache, and other levels, ultimately to achieve these levels, respectively, reconstructed Wikipedia earth system architecture, while the reconstruction The author of the browser cache, web front end and so had a very good optimization. In the user state tracking, the author abandoned the Apache that comes with solutions, re-distributed to achieve a more efficient way user status tracking, multi-server work together for the future to create conditions for more profit.Although dadipedia on the reconstruction of the earth does not add any server, but makes the earth not only in the efficiency of the Wikipedia system are greatly enhanced, and more servers to work together for the future, paving the way, ultimately making the earth into a high-throughput dadipedia is easy expansion of the site. Able to cope with current and future growth of a certain period of time the user needs to upgrade the site’s user experience and service quality, and promote the dadipedia in the future development of the earth.
Table of contents
Abstract 4-5
ABSTRACT 5-10
Chapter Introduction 10-12
1.1 class wiki site development status 10
1.2 wiki class site in the country's future development direction 10-11
1.3 In this thesis, the main work 11
1.4 chapters arranged 11-12
Chapter needs analysis and system development preparation before 12-16
2.1 problems arise 12
2.2 Project Overview 12
2.3 specific needs 12
2.4 hardware and software environment 12-13
2.5 stress test tools 13-15
2.6 Summary 15-16
Chapter III of the original structure of the earth encyclopedia defect analysis 16-30
3.1 original Wikipedia earth system architecture 16
3.2 defect analysis and solutions 16-29
3.2.1 PHP program files repeatedly reading disk IO overhead 16-19
3.2.2 PHP program repeats explain 19-21
3.2.2.1 Using APC cache opcode 20-21
3.2.2.2 About APC expiration time 21
3.2.3 database front-end cache 21-27
3.2.3.1 full page caching 22-25
3.2.3.2 localized static 25-26
3.2.3.3 Data Cache 26-27
3.2.4 database problems 27-28
3.2.4.1 Anti-paradigm design benefits 27-28
3.2.4.2 database partitioning considerations 28
3.2.5 scalable design 28-29
3.3 Summary 29-30
Chapter overall design 30-32
4.1 system level division 30-31
4.2 data flow 31
4.3 Summary 31-32
Chapter detailed design 32-65
5.1 load balancing module 32-45
5.1.1 HTTP Redirect 32-33
5.1.2 DNS load balancing 33-35
5.1.3 reverse proxy load balancing 35-41
5.1.3.1 weights assigned tasks according 36
5.1.3.2 Expansion constraints 36-38
5.1.3.3 Health probing 38-40
5.1.3.4 sticky sessions 40-41
5.1.4 IP load balancing 41-43
5.1.5 routed directly 43-45
5.1.6 Earth Encyclopedia load balancing scheme selection 45
5.2 Application Layer 45-49
5.2.1 MVC pattern 45-46
5.2.2 directory structure 46-49
5.3 data access layer 49-59
5.4 database front-end cache 59-61
5.4.1 Memcached caching mode 59
5.4.2 Memcached cache expiration time 59
5.4.3 Object Serialization 59-60
5.4.4 distributed cache implementations 60-61
5.5 write buffer 61-64
5.6 data storage 64
5.7 Summary 64-65
Chapter VI system optimization 65-76
6.1 Domain planning 65-66
6.2 client cache utilization 66-69
6.2.1 browser cache location 66
6.2.2 caching negotiation 66-68
6.2.2.1 Last-Modified 67
6.2.2.2 ETag 67
6.2.2.3 Expries 67-68
6.2.2.4 browser cache strategy selection 68
6.2.3 use persistent connections 68
6.2.4 reduce HTTP requests page 68-69
6.3 an efficient solution for distributed session 69-75
6.3.1 Apache abandon inefficient session program 69-70
6.3.2 An efficient session implementations 70-73
6.3.3 Distributed session realization 73-75
6.4 Summary 75-76
Chapter VII summarizes 76-77
Thanks 77-78
References 78-80
Related dissertations
- The management of interest rate risk of Changsha bank
- Study on Stress Testing of China’s Commercial Banks in the Context of Financial Liberalization
- Study on Commercial Banks’ Liquidity Risk Stress Testing under Macroeconomic Shocks
- The Research on Inventory Risk Managemnt of Fast-Fashion Supply Chain Retailers Based on Stress Testing Method
- Study on Stress Testing of Commercial Banks
- Empirical Reseach of Commercial Banks Credit Risk Stress Test
- The Empirical Research of Stress Testing in Credit Risk on Commercial Banks
- Study on Macro Stress Testing of Commercial Banks’ Credit Risk in China Based on the Difference of Loan Structure
- Based on Electromagnetic Ultrasonic Detection Technology to Research Thermal Stress on Railway
- The Application of Load Balance for E-business Website
- Research and Application of Multi-Processing Load Balancing Technology Based on Multi-Core in Cloud Computing
- The Research of Dynamic Resource Management Key Technologies in Cloud Computing
- Research and Design of Scalable Network Server Based on Linux
- Research and application of pushing send technology of server cluster based on
- The Research for Distributed Control and Addressing Mode of Software Defined Network
- Research on Cloud Resource Scheduling Method Across Cloud Computing Federation
- Simulation and Implementation for Robust Energy-efficient Routing Algorithms Based on Network Topology in IP Backbone Networks
- Research on Resource Scheduling Algorithms in Cloud Computing Environment
- Design and Implementation of Crawler Subsystem of Alipay Merchant Risk Monitoring System
- Application and Research of Digital Room Service System Based on Cluster Server