MongoDB:The Definitive Guide 2nd笔记之Seeing the Current Operations
来源:互联网 发布:代理注册公司 知乎 编辑:程序博客网 时间:2024/06/16 02:20
查看当前操作
db.currentOp()
过滤查看
db.currentOp({"ns" : "prod.users"})
杀死操作,不是所有的操作都可以被杀死,**operations can only be killed when they
yield, so updates, finds, and removes can all be killed**
db.killOp(123)
**replication thread (which will continue fetch‐
ing more operations from the sync source for as long as possible) and the writeback listener for sharding.**
上面这两种操作被杀死后MongoDB会重新启动它们,但是杀死replication thread会停止复制操作,杀死writeback listener会使mongos
错过一些重要的写入错误。
幽灵写入
组织幽灵写入的最好方法就是采用确认写入的方式:直到上一个写入已经完成再进行下一次的写入,而不是上一次写入的数据停留在数据服务器的缓冲区时就开始下一次写入。
0 0
- MongoDB:The Definitive Guide 2nd笔记之Seeing the Current Operations
- MongoDB:The Definitive Guide 2nd笔记之特殊Indexes
- MongoDB:The Definitive Guide 2nd笔记之system.profile
- MongoDB:The Definitive Guide 2nd笔记(二)
- MongoDB:The Definitive Guide 2nd笔记(三)
- MongoDB:The Definitive Guide 2nd笔记之查看数据库大小
- Ant: The Definitive Guide, 2nd Edition
- Cascading Style Sheets: The Definitive Guide, 2nd Edition [ILLUSTRATED]
- hadoop 文档Hadoop The Definitive Guide 2nd Edition
- CSS:The Definitive Guide(3nd)
- [JavaScript: The Definitive Guide]笔记(2)
- Hadoop- The Definitive Guide 笔记2
- Hadoop- The Definitive Guide 笔记
- 电子书下载:The Definitive Guide to MongoDB
- 读书笔记——《Ant – The Definitive Guide,2nd Edition》
- Cassandra The Definitive Guide, 2nd Edition.pdf 英文原版 免费下载
- [JavaScript: The Definitive Guide]笔记(1)
- JavaScript: The Definitive Guide
- 判断一棵二叉树中是否包含另一棵二叉树
- Flume安装步骤(单节点)
- CUDA优化策略
- 第四周求并联电阻的阻值
- CUDA程序优化技巧
- MongoDB:The Definitive Guide 2nd笔记之Seeing the Current Operations
- kullback-leibler distance的计算(matlab)
- C++本质:类的赋值运算符=的重载,以及深拷贝和浅拷贝(我又对其中一点点错误进行了一点修改)
- CUDA并行算法系列之FFT快速卷积
- CUDA 纹理内存
- CUDA 纹理的使用
- 品牌的命名
- CUDA数组分配
- GDOI【JZOJ4793】妮厨的愤怒