分片策略
- 支持 range 的分片机制。
- 支持联合字段的 shard key。
- 分片实例下所有数据集合必须使用分片,建议把不需要分片的数据放到单独的副本集实例下。
认证机制
完全兼容支持 SCRAM-SHA-1 和 MONGODB-CR 两种机制。
分片集群命令支持情况
分类 | 命令 | 子命令 | 支持情况 |
---|---|---|---|
CRUD 基本命令 | find | filter | 支持 |
sort | 支持 | ||
projection | 支持 | ||
hint | 支持 | ||
skip | 支持 | ||
limit | 支持 | ||
batchSize | 支持 | ||
singleBatch | 支持 | ||
comment | 支持 | ||
maxScan | 支持 | ||
maxTimeMS | 不支持 | ||
readConcern | 支持 | ||
max | 支持 | ||
min | 支持 | ||
returnKey | 支持 | ||
showRecordId | 支持 | ||
snapshot | 不支持 | ||
tailable | 不支持 | ||
oplogReplay | 不支持 | ||
noCursorTimeout | 支持 | ||
awaitData | 不支持 | ||
allowPartialResults | 不支持 | ||
insert | 必须带 shardkey 字段,批量 insert 时 shard key 必须一致 | 支持 | |
update | 更新字段不能是 shardkey | 支持 | |
delete | - | 支持 | |
findandmodify | - | 支持 | |
count | - | 支持 | |
distinct | 必须带有 shard key | 支持 | |
aggregate | - | 支持 | |
group | - | 不支持 | |
mapReduce | - | 不支持 | |
getmore | - | 支持 | |
getLastError | - | 不支持 | |
getPrevError | - | 不支持 | |
resetError | - | 不支持 | |
eval | - | 不支持 | |
geoNear | - | 不支持 | |
geoSearch | - | 不支持 | |
parallelCollectionScan | - | 不支持 | |
Diagnostic 命令 | collStats | - | 支持 |
dbstats | - | 支持 | |
explain | - | 支持 | |
listDatabases | - | 支持 | |
serverStatus | - | 不支持 | |
top | - | 不支持 | |
分片命令 | enableSharding | - | 支持 |
shardCollection | - | 支持 | |
管理命令 | listCollections | - | 支持 |
dropDatabase | - | 支持 | |
drop | - | 支持 | |
creareIndexes | - | 支持 | |
listIndexes | - | 支持 | |
dropIndexes | - | 支持 | |
logout | - | 支持 | |
renameCollection | - | 不支持 | |
copydb | - | 不支持 | |
create | - | 不支持 | |
clone | - | 不支持 | |
cloneCollection | - | 不支持 | |
cloneCollectionAsCapped | - | 不支持 | |
convetToCapped | - | 不支持 | |
filemd5 | - | 不支持 | |
fsync | - | 不支持 | |
clean | - | 不支持 | |
connPoolSync | - | 不支持 | |
connectionStatus | - | 不支持 | |
compact | - | 不支持 | |
collMod | - | 不支持 | |
reIndex | - | 不支持 | |
setParameter | - | 不支持 | |
getParameter | - | 不支持 | |
repairDatabase | - | 不支持 | |
repairCursor | - | 不支持 | |
touch | - | 不支持 | |
shutdown | - | 不支持 | |
logrotate | - | 不支持 | |
killop | - | 不支持 | |
user 管理命令 | - | - | 不支持 |
role 管理命令 | - | - | 不支持 |
副本集命令 | - | - | 不支持 |