mongostat报告的“命令”操作数量是多少?

时间:2018-08-24 10:54:21

标签: mongodb

我正在使用mongostat工具监视数据库性能。该工具每秒报告一次数据。输出显示以下数据

insert query update delete getmore command
  2063  3101   2062   1027       0  4131|0
  2103  3192   2105   1056       0  4239|0

mongostat文档说,命令:

command
  The number of commands per second. On secondary systems, mongostat 
  presents two values separated by a pipe character (e.g. |), in the form of
  local|replicated commands.

从MongoDb的角度来看,它每秒执行约4000次操作的“命令”是什么?我没有在MongoDb实例上运行任何其他管理,诊断,会话或分片命令。

“命令”计数器是告诉总数,计数或组操作的累积数量吗?

1 个答案:

答案 0 :(得分:1)

  

opcounters.command对除写命令之外的所有命令进行计数:插入,更新和删除

从文档-https://docs.mongodb.com/manual/reference/command/serverStatus/#serverstatus.opcounters.command

这包括many more commands,而不仅仅是querygetmore。这是mongodb文档的完整列表,其中命令计数中以粗体排除的命令。

  • is_self
  • 汇总
  • build_info
  • coll_stats
  • connection_pool_stats
  • 计数
  • db_stats
  • 与众不同
  • 找到
  • get_cmd_line_opts
  • get_last_error
  • get_log
  • get_more
  • get_parameter
  • host_info
  • 插入
  • is_master
  • last_collections
  • last_commands
  • 基于列表数据
  • list_indexes
  • ping
  • 个人资料
  • replset_get_rbid
  • replset_get_status
  • replset_heartbeat
  • replset_update_position
  • server_status
  • 更新
  • whatsmyuri