Data storage method for large-scale bulk log
- Author
- WangZhaoYong
- Advisor
- QinZhiGuang
- School
- University of Electronic Science and Technology
- Major
- Information and Communication Engineering
- Classification
- TP311.13 Database theory and systems
- Degree
- Master's thesis
- Year
- 2011
- Downloads
- 144
- Citations
- 0
Abstract
Firewall, IPS / IDS, WEB server network systems in real-time to produce large amounts of log data, efficient storage, processing these data mining log data. Relational database because type checking statement analysis and other operations greatly affect its efficiency, more and more suitable for handling real-time data and a large number of logs. Without type constraints, easy to expand the key database will greatly enhance the efficiency of processing log data. With the development of the Internet key database applications more and more widespread, Baidu, Google, Yahoo, Alibaba and other large Internet companies are using key-value database access, popular cloud storage, cloud computing data also key technology. This paper describes the key principles and main technical database, and the design and implementation of an efficient, specialized processing network log data keys database capable of supporting multi-dimensional indexing and transaction processing, and to ensure the safety of processes and threads. Finally to complete the key database of test results and BerkeleyDB database comparison, pointing out the strengths and weaknesses of the key database, and gives further optimization improvements. The main subject of the design of a database of real-time processing of massive network log data. To achieve its main features include the following: (1) based on the key database technology, to develop a network log storage systems; (2) to ensure higher efficiency of read and write, and write logs to the database and read from the database log rate reached 100,000 records per second magnitude; (3) multidimensional index, record query logs from multiple domains, and supports the equivalent of Find the range Find traversal operation; (4) thread-safe, read, write, process synchronization ensure data integrity and mutual exclusion; (5) C / S distributed storage the libevent library to implement the master-slave communication between the memory. This topic will be a design ideas from the whole to the local log storage systems. First analysis of the characteristics of the logging and log system needs to provide functionality to the overall design of the key database. Database technology and research and analysis of contrast, and then from the whole to the various modules were designed and optimized, and eventually complete log storage database. To achieve the goal of real-time storage log records to the database, as well as real-time read from the database and log out.
Table of contents
Summary 4-5
ABSTRACT 5-10
Chapter Introduction 10-22
a 1.1 research background and significance nbsp the; 10-11
1.2 log data storage research status the 11-20 1.2.1 relational database
11-14
1.2.2 key database About 14-16
1.2.3 representative key database the 16-18 1.2.4 key database
development status and prospects 18-20
1.2.5 key database advantages in dealing with massive log 20
1.3 The main contents 20-21
1.4 papers organizational structure of 21-22 < br /> Chapter Two theoretical foundation 22-33
2.1 log data related concepts 22-25
2.1.1 log data outlined are found; 22-23 < br /> 2.1.2 log data format 23-25 ??
2.2 database-related indexing techniques 25-30
2.2.1 HASH the index, 25-27 < br /> 2.2.2 binary tree index 27-28
2.2.3 B-tree index of 28-29
2.2.4 B-tree index 29-30 < br /> 2.3 cache and memory-mapped 30-31
2.4 transaction processing 31
2.4.1 first write log 31
2.4.2 after write log 31
2.5 distributed storage introduced 31-32
2.6 Chapter Summary 32-33
Chapter key core database design technology 33-43
3.1 multidimensional indexing technology 33-35
3.1.1 multidimensional index storage implementation 33-34
3.1.2 multidimensional index Find a process and its optimization 34-35
3.2 data and index storage algorithm design 35-37
3.2.1 Data Module algorithm 35-37 <br / > 3.2.2 index module algorithm 37
3.3 cache design algorithm 37-38
3.4 concurrency control and shadow page 38-39
3.5 I / O multiplexing technology 39-42
3.5.1 Select mechanism nbsp 39-40
3.5.2 Epool The mechanism; 40-41 <br / the> 3.5.3 Libevent library 41-42
3.6 Chapter Summary 42-43
Chapter key database system to achieve 43-65
4.1 overall planning 43-48
the 4.1.1 system design goals 43
4.1.2 system design structure 43-44
4.1.3 system workflow; nbsp the 44-48 key database module
4.2 Design and Implementation 48-61
4.2.1 Data storage module 48-54
4.2.2 index storage module 54-58
4.2.3 cache module 58-59
4.2.4 concurrency, control module 59
4.2. 5 transaction processing module 59-60
4.2.6 distributed storage module the 60-61 4.3 log database design
61-63
4.4 log database design defects 63
4.5 Chapter Summary 63-65
Chapter experiments and results analysis 65-74
5.1 experimental environment 65
5.2 test call interface 65-66
the 5.3 experimental design 66-68
5.3.1 Experimental Description 66 <br / > 5.3.2 Experimental evaluation 66
5.3.3 Experimental Method 66-68
5.4 database performance test 68-72
5.4.1 the number of HASH bucket optimize test 68-69
the 5.4.2 page size to optimize test the 69-70
the 5.4.3 database performance comparison measurement 70-72
5.4.4 testing concluded 72
5.5 Chapter Summary 72-74
Chapter Summary and Outlook 74-76
6.1 summarizes 74-75
6.2 Looking 75-76
Acknowledgements to References 76-77
77-80
Related dissertations
- Implementation of Recommend System for Online Learning Based on Learning Platform Log Mining
- User Features Analysis Using Internet Access Logs
- Research and Implementation of Chinese Word Segmentation Technology Based on Lucene
- Three-Layout Key/Value Index System Base on JB~c-LSM
- A Hash Function Based on the RFID Security Authentication Protocol Design and Implementation
- Study and Application of Clickstream Data Warehouse in E-commerce
- Research on User Clustering Based on Web Log
- The design and Realization of the system of Web log analysis
- Study on Node Localization Management Technology in Wireless Sensor Networks
- Research on User Information Demand of Recognition Based on Web Log Mining
- The Design and Implementation of Open Report System Based on the Hadoop
- An Algorithm for Detecting Superpoints in Small Memory
- Algorithms Based on Bitmaps for Detecting Stealthy Spreaders
- Research on load balancing algorithm in high-speed network system based on
- Based on NAT/PT Conversion Gateway for IPV6and IPV4Research
- The Research of CDN Distribution Strategy Based on User Interest Model
- Research on RFID security protocol
- Research on RFID Security Protocols Based on Hash Function
- Research on E-Commcrcc Personalized Recommendation Based on Web Log Mining
- Incremental Mining Method Research of Association Rules of Web Log Based on Clustering Partition