从MongoDB 8.0开始,这些是您可以直接在分片上运行的唯一分片。 您还可以直接在分片上运行shell助手,分片是它调用以下命令之一:
此页面可能不是详尽的列表 [1]。
abortTransaction
Session.abortTransaction()
appendOplogNote
authenticate
passwordPrompt()
autoCompact
buildInfo
commitTransaction
Session.commitTransaction() Session.withTransaction()
Session.commitTransaction()
Session.withTransaction()
compact
connectionStatus
connPoolStats
createRole
db.createRole()
createUser
db.createUser()
currentOp
db.currentOp()
dbHash (已在 8.0.5 中添加)
dbHash
dropAllRolesFromDatabase
db.dropAllRoles()
dropAllUsersFromDatabase
db.dropAllUsers()
dropRole
db.dropRole()
dropUser
db.dropUser()
endSessions
flushRouterConfig
fsync
db.fsyncLock()
fsyncUnlock
db.fsyncUnlock()
getAuditConfig
getClusterParameter
getCmdLineOpts
getLog
getParameter
getShardMap
grantPrivilegesToRole
db.grantPrivilegesToRole()
grantRolesToRole
db.grantRolesToRole()
grantRolesToUser
db.grantRolesToUser()
hello
hostInfo
invalidateUserCache
killAllSessions
killAllSessionsByPattern
killCursors
killOp
killSessions
listCommands
lockInfo
logApplicationMessage
logout
logRotate
ping
profile
db.setProfilingLevel()
replSetAbortPrimaryCatchUp
replSetFreeze
rs.freeze()
replSetGetConfig
rs.conf()
replSetGetStatus
rs.status()
replSetMaintenance
replSetReconfig
rs.reconfig()
replSetResizeOplog
replSetStepDown
rs.stepDown()
replSetSyncFrom
rs.syncFrom()
revokePrivilegesFromRole
db.revokePrivilegesFromRole()
revokeRolesFromRole
db.revokeRolesFromRole()
revokeRolesFromUser
db.revokeRolesFromUser()
rolesInfo
rotateCertificates
serverStatus
setParameter
shardingState
startSession
Mongo.startSession()
top
updateRole
db.updateRole()
updateUser
db.changeUserPassword()
usersInfo
whatsmyuri
后退
对分片集群进行故障排除
来年
存储