Comments (8)
@Jessppp 感谢关注
对于插入请求不会影响,对于读取请求,在某些情况下可能会造成一定的影响。我们计划提供 SQL 优先级的功能,会在近期完成。
from docs-cn.
是否考虑加入只读只写的实例角色?实际生产环境中这种需求应该是挺大的。
from docs-cn.
@Jessppp 做复杂sql计算的时候,tikv、tidb都会参与,不过主要的计算任务会落在tidb上,你可以单独部署几个tidb-server,用来承载复杂计算任务。
from docs-cn.
我可以理解为,多个tidb就相当于是多个mysql的实例吗?比如我一个tidb被一条很复杂的sql卡在那了,但是其他用户的查询连接的是另外一个tidb实例,他们之间是不会相互影响的?
from docs-cn.
tidb是无状态的sql层,tikv则存储真正的数据。对于一条查询语句来说,首先tidb会去tikv获取数据(同时会做一些简单的filter、聚合、limit、topn这类操作),然后再tidb内部做各种复杂的计算。所以多个tidb同时读取tikv中的数据的时候,可能会相互影响,但是在不同的tidb内存做计算的时候,不会相互影响。
另外 tidb 自己也有binlog,也可以将数据实时同步到另外一个tidb或者mysql作为只读slave。
简单来说,mysql能做的 tidb 也能做(如通过binlog做主从同步以实现读写分离),但是tidb能做的,mysql做不了(启动多个tidb-sever,做业务分离)
from docs-cn.
tidb做主从同步的文档有吗?
from docs-cn.
这个目前有内部工具和文档,如果感兴趣 可以提供给贵司使用
from docs-cn.
那真是太感谢了,我发您邮件。
from docs-cn.
Related Issues (20)
- 下载的pdf和web界面的内容不一致 HOT 1
- versioning: 优化建议
- How to configure read-write separation?
- 表示 GROUP_CONCAT() 函数中,项目的最大缓冲区大小。 HOT 2
- 按照文档操作,使用tidb-cdc的增量同步的时候,会出现Error: [CDC:ErrMetaListDatabases] HOT 1
- 这个edit-config前可以添加一个备份当前配置的步骤么? HOT 1
- HAProxy
- HAProxy建立连接失败
- HAPROXY建连失败 HOT 2
- Inconsistency with the English doc: txn-local-latches HOT 2
- 在解决写偏斜问题的Golang版本的案例代码出错
- tidb-jdbc驱动版本错误 HOT 2
- 文档链接 404
- DDL的执行方式(并行或者串行)描述不准确 HOT 1
- token-limit 配置项最大值不合理 HOT 3
- Fast ddl和pitr不兼容描述不太准确 HOT 1
- 那么Index Join与Index Hash Join的区别是? HOT 1
- 关于日志示例问题的疑惑 HOT 4
- 该页面内容不适用于 8.1 版本,需要更新 HOT 1
- ticdc-open-protocol 的 h 标识如何理解 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docs-cn.