当前位置:网站首页>30、 Modern storage system (management database and distributed storage system)
30、 Modern storage system (management database and distributed storage system)
2022-07-26 23:24:00 【[T]】
One 、 Database transactions
Large scale data , Efficient atomic operation
1、 Index and query optimization
Two 、 The realization of database
Virtual disk ( file ) Data structure on
1、 hold SQL The query is translated into read,write,lseek,fsync Call to
2、 concurrency control ( Transaction processing )
3、 ... and 、 The foundation of Distributed Systems
Distributed consensus protocol
1、 Copy state machine
2、RaftScope Visualization Tool
3、 ... and 、 Distributed data model :Key-Valie
LevelDB Key-Value Storage
1、 Single process ( Multithreading ), Press Key Sort
2、 Support transactions
3、 Support for snapshots ( Instant read-only snapshot of a state )
A way of implementation : journal
1、snapshot() Returns the length of the current file
2、put(k,v) All directly k,v Append to the end of the file
(1) Very efficient
3、get(k,v) Traverse the entire file
(1) Extremely inefficient ( Reading amplification )
Four 、Log-structured Merge(LSM)Tree
A simulated memory hierarchy
1、 Write direct append to log file
2、Crash safe; Not too fast
Solve read amplification
1、 Now maintain in memory log Real time data structure
边栏推荐
- [MySQL] CentOS 7.9 installation and use mysql-5.7.39 binary version
- Security team: Recently, there is an rce vulnerability in the COREMAIL email client of windows, which may lead to the disclosure of the private key of the wallet
- What is the reason for oom during redis shake synchronization in shake database?
- 2019 biometric forum successfully ended: these ten highlights should not be missed!
- One fingerprint patent has been declared invalid! Huiding and siliwei both officially responded!
- How to recover the original data when the U disk is damaged, and how to recover the damaged data when the U disk is damaged
- Cloud native microservices Chapter 1 server environment description
- SQL Basics
- Problems and solutions encountered in using nextline(), nextint() and next() in scanner
- How to use data pipeline to realize test modernization
猜你喜欢

Programmer growth chapter 29: how to motivate employees?

Download win10 system image and create virtual machine on VMware virtual machine

实战项目:Boost搜索引擎

华裔科学家Ashe教授对涉嫌造假的Nature论文的正面回应

How to recover the original data when the U disk is damaged, and how to recover the damaged data when the U disk is damaged

MySQL 数据的导入

About statefulwidget, you have to know the principle and main points!

Sign up now | frontier technology exploration: how to make spark stronger and more flexible

Import of MySQL data

【flask高级】结合源码分析flask中的线程隔离机制
随机推荐
Monte Carlo search tree (UCT) based on confidence upper bound to realize four sub chess
Kalibr calibration realsensed435i -- multi camera calibration
Novice online interview [Hangzhou multi tester] [Hangzhou multi tester _ Wang Sir]
The most classic Nature paper on Alzheimer's disease is suspected of fraud
电脑开机后内存占用过高(50%以上)
MySQL syntax uses detailed code version
ESMFold: AlphaFold2之后蛋白质结构预测的新突破
P5469 [noi2019] robot (Lagrange interpolation, interval DP)
Restful interface specification
[MySQL] CentOS 7.9 installation and use mysql-5.7.39 binary version
SQL 基础知识
New employees of black maredge takeout
Introduction to the use of Jerry downloader forced download tool_ Ac695n696nad14ad15 full range support
SQL Basics
Science | University of Washington uses AI and structural prediction to design new proteins
How to recover the original data when the U disk is damaged, and how to recover the damaged data when the U disk is damaged
Openstack virtual machine network card is renamed cirename0
Customer case | student education relies on observation cloud to create a new ecosystem of observable Smart Education
Disk expansion process and problems encountered in the virtual machine created by VMWare
面试官问:JS的this指向