当前位置:网站首页>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 .
边栏推荐
- Summary of basic knowledge of Oracle database SQL statement II: data operation language (DML)
- MySQL master-slave replication
- MySQL intercepts the string cs0000_ 1 medium_ Following characters
- Mt4/mql4 getting started to be proficient in EA tutorial lesson 7 - common functions of MQL language (VII) - index value taking function
- Restrict input type (multiple methods)
- Mt4/mql4 getting started to mastering EA tutorial lesson 3 - common functions of MQL language (III) - common functions of K-line value taking
- Dom4j+xpath parsing XML files
- PostgreSQL common commands and SQL -- continuous update
- Using KDJ metrics on MT4
- Square array cyclic right shift
猜你喜欢

Kubernetes practice

Mt4/mql4 getting started to mastering EA tutorial lesson 8 - common functions of MQL language (VIII) - common time function

安装 MySQL 服务时提示 InstallRemove of the Service Denied

QT custom composite control (class promotion function)

(7)双向链表

Seven challenges faced by CIO in 2022 and Solutions

Detailed explanation of the underlying principle of concurrent thread pool and source code analysis
![[普通物理]波的能量与干涉](/img/fe/066aa9e8ed776b8f069b59b7123367.png)
[普通物理]波的能量与干涉

0 basic self-study STM32 (wildfire) -- what is a register?

并发三大特性2-有序性
随机推荐
歪门邪道之解决首屏图片加载闪烁问题
(9) Sequential queue and stack queue
安装 MySQL 服务时提示 InstallRemove of the Service Denied
MySQL view
SQL triggers
How Navicat queries the password information of the connected database
Summary of basic knowledge of Oracle database SQL statement II: data operation language (DML)
Record once · ulimit: open files: cannot modify limit: operation not allowed
MySQL master-slave replication
找出不是两个数组共有的元素
关于菲涅尔现象
Windchill API drops
Svn submits subfolder questions
Model electricity experiment -- Experiment 2 JFET common source amplifier circuit
Concatenate the specified character at the end of a number in a string
SQL server changes the primary key index to a non clustered index
Postgresql源码(56)可扩展类型分析ExpandedObject/ExpandedRecord
矩阵运算
JSON使用示例
计算水费问题