Design and Implementation of Cache System Based on Memcached
- Author
- NiGaoPeng
- Advisor
- DingFeng
- School
- Dalian University of Technology
- Major
- Software Engineering
- Classification
- TP333 Memory
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 195
- Citations
- 0
Abstract
With the high develop of network technology, high-performance data cache system has become the research focus of e-commerce platform and telecommunications service providers. It is also an important problem and challenge that the other high-speed growth of business enterprises has to face, its low latency and efficient and high concurrency so that the overall design of the system performance in all aspects have put forward a high requirements. With the high develop of network technology, memory and variety of hardware facilities are becoming cheaper, high-performance data cache system is gotten more and more attention.The paper first introduces the cache technology, including the principle of caching technology, classification and common replacement algorithm. Then introduce a high-performance cache system in detail, including the network topology of cache system, communication protocols, and some distributed cache systems. Then, based on the analysis of memcached, we design a high-performance cache system which based on the memcached. In the designing of system, we should consider the network topology, cache replacement and hot spot in the system. Memcached cache system is divided into three levels, namely the network layer, system core layer and storage layer. Network layer is responsible for external client connections and connections management, the main function is to interpret the command and handle high concurrent connections. System core layer is responsible for the entire core functionality of the distributed system; the main function includes data storage, load balancing, and managing the life cycle of multi-copy of the hot spots. In the system core layer, in order to prevent the local peak access, presents an effective management strategy of multi-replica. Through this strategy can not only prevent a single server becoming the bottleneck of the system, and can make full use of the other servers. The storage layer is exactly a memcached node, responsible for the storage of data.In the scenarios of high-performance caching system, we test function and structure of the system on the rational design of the test, which shows that the designed system has good practicability.
Table of contents
Summary 4-5
Abstract 5-8
1 Introduction 8-14
1.1 research background 9-10 <br / > 1.2 domestic and foreign research status 10-12
1.2.1 replacement algorithm research status research status 10-11
1.2.2 cache protocol 11-12
1.3 dissertation structure 12-14
2 cache theory 14-26
2.1 caching theory and classification 14-16
2.2 cache replacement policy 16-18
2.3 distributed Cache 18-23
2.4 caching products 23-26
3 system level design 26-37
3.1 feasibility Analysis 26-27
3.2 Memcached analysis and research 27-30
3.2.1 internal mechanism 27 -28
3.2.2 processing and storage mechanisms 28-30
3.2.3 Agreement with the command 30
3.3 overall system architecture 30 - 31
3.4 overall system design 31-35
3.5 system workflow 35-37
4 system detailed design 37-44
4.1 network Layer Design 37-38
4.2 system core layer design 38-42
4.2.1 network Management 38-41
4.2.2 multiple copies of management 41-42
4.2.3 node Manager 42
4.3 storage layer design 42-44
5 system implementation 44-61
5.1 network layer 44-48
5.1.1 epoll model 44-47
5.1.2 network layer communication 47 - 48
5.2 kernel layer implementation 48-59
5.2.1 virtual node 48-50
5.2.2 routing workflow 50-58
5.2.3 copy lifecycle management 58-59
5.3 storage layer implementation 59-61
6 experiments and test results 61-68
6.1 system test environment and indicators 61-62
6.1.1 hardware test environment 61-62
6.1.2 software test environment 62 <br / > 6.2 functionality test 62-68
6.2.1 testing purposes 63
6.2.2 test Conditions 63
6.2.3 test Method 63-65
6.2.4 test Results 65-67
6.2.5 analysis 67-68
conclusion 68 - 69
References 69-71
Thanks 71-72
Related dissertations
- Massive Data Query Optimization and Their Application in Power Inspection System
- The Design and Implementation of the Online Examination System Based on MVC Model
- Design and Implementation of an EICS Server for Red-ray High Definition Playing
- The Research of Function Extension Based on the Emcached Cache
- Design and Verification of Data Cache Bank
- The Research and Implementation of Network Education Management Information System
- Application Research of Data Cache Technology in MIS
- The Research and Application of Web Proxy Cache Server in OSE
- Research of the Methods of Cache Optimization in the Oracle RAC Database
- Design and Implementation of Security Authentication Module Based on KERBEROS
- Design and implementation of high concurrent performance monitoring system based on the real-time visualization of data mining
- Design and Implementation of the logistics management information system based on B / S mode
- The Research of High Performance Comjunication Framework and Smart Master