Shard Description

Last updated: 2018-09-14 15:45:55

PDF

Sharding strategy

  1. Supports ranged sharding.
  2. You can combine the shard keys of fields.
  3. Sharding is required for all data sets under a sharding instance. It is recommended to place non-sharded data in a separate replica set instance.

Authentication mechanism

Fully compatible with two mechanisms: SCRAM-SHA-1 and MONGODB-CR.

Supported sharding cluster commands

  Commands Subcommands Support
CRUD basic commands find filter Yes
sort Yes
projection Yes
hint Yes
skip Yes
limit Yes
batchSize Yes
singleBatch Yes
comment Yes
maxScan Yes
maxTimeMS Not Supported
readConcern Yes
max Yes
min Yes
returnKey Yes
showRecordId Yes
snapshot Not Supported
tailable Not Supported
oplogReplay Not Supported
noCursorTimeout Yes
awaitData Not Supported
allowPartialResults Not Supported
insert Must include shardkey field, the shard keys must be consistent during batch insert operations Yes
update The update field cannot be shardkey Yes
delete Yes
findandmodify Yes
count Yes
distinct Must include shard key Yes
aggregate Not Supported
group Not Supported
mapReduce Not Supported
getmore Yes
getLastError Not Supported
getPrevError Not Supported
resetError Not Supported
eval Not Supported
geoNear Not Supported
geoSearch Not Supported
parallelCollectionScan Not Supported
Diagnostic commands collStats Yes
dbstats Yes
explain Yes
listDatabases Yes
serverStatus Not Supported
top Not Supported
Sharding commands enableSharding Yes
shardCollection Yes
Managment commands listCollections Yes
dropDatabase Yes
drop Yes
creareIndexes Yes
listIndexes Yes
dropIndexes Yes
logout Yes
renameCollection Not Supported
copydb Not Supported
create Not Supported
clone Not Supported
cloneCollection Not Supported
cloneCollectionAsCapped Not Supported
convetToCapped Not Supported
filemd5 Not Supported
fsync Not Supported
clean Not Supported
connPoolSync Not Supported
connectionStatus Not Supported
compact Not Supported
collMod Not Supported
reIndex Not Supported
setParameter Not Supported
getParameter Not Supported
repairDatabase Not Supported
repairCursor Not Supported
touch Not Supported
shutdown Not Supported
logrotate Not Supported
killop Not Supported
User management commands Not Supported
Role management commands Not Supported
Replica set commands Not Supported