当前位置:网站首页>Bee read write separation Usage Summary
Bee read write separation Usage Summary
2022-06-22 08:14:00 【abckingaa】
Bee Read / write separation RW、 A master-slave mode
2 Read / write separation RW、 A master-slave mode
bee.dosql.multiDS.enable=true
# Data sources that support simultaneous use of multiple types of databases .
#bee.dosql.multiDS.differentDbType=true
#bee.dosql.multiDS.defalutDS=ds1
#write DB just set one db.
bee.dosql.multiDS.writeDB=ds1
#bee.dosql.multiDS.readDB=ds2,ds3
#poll:1, rand:2
#bee.dosql.multiDS.rDbRouteWay=1
Support scenarios :
Support horizontal extension from the Library , Flexibly adjust any flow proportion of each slave library
Support to preferentially select the nearest library to read data , Avoid cross room access
Flexible mandatory master database policy , Support single SQL Or all within the entire request SQL Go to the main library
The write library cannot be placed in the read-only library list If you need to read data from the main library , Kertek
A transaction has both read and write operations , Is unified to the write library
Master slave synchronization , from DB be responsible for .
High availability problem . It mainly includes :
newly added slave node : If new slave node , Applications should be aware of , Read requests can be forwarded to new slave Node .
slave Down or offline : If one of them slave The node is hung / Or it's offline , They should be isolated , Then the subsequent read requests , The application forwards it to a working slave Node .
master Downtime : Need to switch between master and slave , Put one of them slave Upgrade to master, After the application, the write operation is transferred to the new master Node .
Find corresponding problems , Refresh the configuration information in time , And set the flag to update the context configuration :HoneyContext.setConfigRefresh(true);
improvement :
Provide nearest route 、 Current limiting and other functions .
边栏推荐
- Skills required for O & M automation?
- Example of multipoint alarm clock
- MySQL avoids the method of repeatedly inserting records (ignore, replace, on duplicate key update)
- Node red sends wechat official account message (template message)
- Chmod Chmod command
- Design skills of common table structure in database design
- [Oracle database] mammy tutorial day13 date function
- Seven challenges faced by CIO in 2022 and Solutions
- Expérience électrique en mode - - expérience 2 circuit d'amplification de source commune JFET
- Concatenate the specified character at the end of a number in a string
猜你喜欢

Mt4/mql4 getting started to proficient in foreign exchange EA automatic trading tutorial - common functions of MQL language

成为一名卓越云架构师要具备的五项技能

mapTalks:基础操作与WMS/WMTS地图服务加载
![[songhongkang MySQL database] [advanced chapter] [06] logical architecture of MySQL](/img/57/22d8a6dafffe685f69660fde9e8c87.png)
[songhongkang MySQL database] [advanced chapter] [06] logical architecture of MySQL

Example of QT qtableview

Node red sends wechat official account message (template message)

并发三大特性1-可见性

QT error prompt 1:invalid use of incomplete type '***‘

Model electricity experiment -- Experiment 1 transistor common emitter single transistor amplifier

Skills required for O & M automation?
随机推荐
并发三大特性2-有序性
Leetcode 172 Zero after factorial (2022.06.21)
JSON usage example
[songhongkang MySQL database] [advanced chapter] [07] MySQL storage engine
dom4j+xpath解析xml文件
矩阵运算
The jdbcurl is configured correctly in the project, but the jdbcurl is the wrong path after the project is started
Summary of basic knowledge of Oracle database SQL statements I: Data Definition Language (DDL)
Mt4-mql4 language EA automatic transaction programming introduction to proficiency
Dom4j+xpath parsing XML files
Type of sub database and sub table
《守望先锋》阵亡镜头、全场最佳和亮眼表现是如何设计
同态加密的基本概念
QT control adds double click event
Seven challenges faced by CIO in 2022 and Solutions
C语言双向链表实现图书管理系统 可读写文件
Kotlin a simple Android program
Oracle gets the working day time between two dates
Add, delete and modify easyUI data table
MySQL intercepts the string cs0000_ 1 medium_ Following characters