当前位置:网站首页>ActiveMQ -- kahadb of persistent mechanism
ActiveMQ -- kahadb of persistent mechanism
2022-07-25 09:18:00 【Why don't you laugh】
KahaDB
KahaDB Is a file based persistence database , from 5.4 The version starts to use by default , Be similar to redis Of AOF
Better fast persistence
To configure
see activemq.xml

stay activemq Under installation path ,activemq/data/hahadb, You can see db file

KahaDB Storage principle
KahaDB At present, it is the default storage method , It can be used in any scene , Improved performance and resilience .
The message store uses a Transaction log And a Indexes To store all his addresses .
KahaDB The data storage directory has 4 Class file plus 1 individual lock file .
db-1.log,db.data,db.free,db.redo,lock
db-<number>.log Save message data,number Indicates when the stored message reaches the predetermined size , The command mode of the file . When the file is full , A new file will be created ,number The value increases with it ,db-1.log,db-2.log,db-3.log… When no more messages are stored in the data file , Files will be deleted or archivedIt stores specific message datadb.data Contains persistent B-Tree Indexes, Indexed the message data record (db-.log) The news of , He is the index file of the message , Essentially, B-Tree,Use B-Tree As an index, point to db-<number>.log The data stored insideIndex filedb-free Record db.data Free pages in the file, What you save is free pages id, Convenient for indexing , Start from the idle to ensure the continuity of the index , There are no fragmentsdb.redo Message recovery, If kahaDB The message store starts after forced exit , Used to recover B-Tree Indexeslock File lock , Indicates the current acquisition kahaDB Read write permission broker, similar mysql The pessimistic lock of
边栏推荐
- JDBC quick start
- uniapp中scroll-view的坑
- How to avoid duplicate data when the database is high and distributed
- Silicon Valley classroom lesson 12 - official account on demand course and live broadcast management module
- Arcgis10.2 installation tutorial
- CIR industrial automation radar
- This ten-year content industry infrastructure company is actually an invisible Web3 pioneer
- Redis/Mysql知识概述
- How does Youxuan database encrypt data?
- [STL]stack&queue模拟实现
猜你喜欢

Why use MQ message oriented middleware? These questions must be taken down!

2022-7-14 JMeter pressure test

Uniapp intercepts route jumps through addinterceptor to control whether the page needs to log in

activemq--消息重试机制

How to realize the drop-down option box of wechat applet

activemq--可持久化机制之JDBC的journal
![[deep learning] overview | the latest progress of deep learning](/img/b9/6117862397dcda4d555c819e913c9b.png)
[deep learning] overview | the latest progress of deep learning

How to avoid duplicate data when the database is high and distributed

Probe into Druid query timeout configuration → who is the querytimeout of datasource and jdbctemplate effective?

音乐人的 NFT 指南
随机推荐
Yolov5 environment configuration
Rich text style word image processing
Additional: in the lower division / county (data sheet)
Bi business interview with data center and business intelligence (I): preparation for Industry and business research
flink sql怎么持久化?
The garbage classification data set used in the excellent Yolo target detection training is shared - about 3000 labeled
Labview--- signal generator
Silicon Valley classroom lesson 15 - Tencent cloud deployment
学习周刊-总第 63 期-一款开源的本地代码片段管理工具
Disable module (attribute node) in LabVIEW
Arcgis10.2 installation tutorial
Ten thousand words long, one word thoroughly! Finally, someone has made business intelligence (BI) clear
uniapp中scroll-view的坑
Unity ugui interaction (new ideas)
What is steel grating?
Opencv realizes simple face tracking
Additional: SQL statement area / county in the middle half (data table)
JS pop-up City filtering component matches mobile terminal
Robot jumping problem
神经网络学习(1)前言介绍