Skip to content

DOCS-14046 Separate statistics for ServiceExecutor #4851

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 100 additions & 4 deletions source/reference/command/serverStatus.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1324,10 +1324,25 @@ network
"numSlowSSLOperations" : <num>,
"numRequests" : <num>,
"tcpFastOpen" : {
"kernelSetting" : NumberLong("<num>"),
"serverSupported" : <bool>,
"clientSupported" : <bool>,
"accepted" : "NumberLong(<num>)"
"kernelSetting" : NumberLong(<num>),
"serverSupported" : <bool>,
"clientSupported" : <bool>,
"accepted" : NumberLong(<num>)
},
"serviceExecutors" : {
"passthrough" : {
"threadsRunning" : <num>,
"clientsInTotal" : <num>,
"clientsRunning" : <num>,
"clientsWaitingForData" : <num>
},
"fixed" : {
"threadsRunning" : <num>,
"clientsInTotal" : <num>,
"clientsRunning" : <num>,
"clientsWaitingForData" : <num>
}
}
},

.. serverstatus:: network
Expand Down Expand Up @@ -1427,6 +1442,87 @@ network
to the :binary:`~bin.mongod` / :binary:`~bin.mongos` since the
``mongod / mongos`` last started.

.. serverstatus:: network.serviceExecutors

.. versionadded:: 5.0

A document that reports data on the service executors, which run
operations for client requests.

.. serverstatus:: network.serviceExecutors.passthrough

.. versionadded:: 5.0

A document that reports data about the threads and clients for the
``passthrough`` service executor. The ``passthrough`` service
executor creates a new thread for each client and destroys the thread
after the client ends.

.. serverstatus:: network.serviceExecutors.passthrough.threadsRunning

.. versionadded:: 5.0

Number of threads running in the ``passthrough`` service executor.

.. serverstatus:: network.serviceExecutors.passthrough.clientsInTotal

.. versionadded:: 5.0

Total number of clients allocated to the ``passthrough`` service
executor. A client can be allocated to the ``passthrough`` service
executor and not currently running requests.

.. serverstatus:: network.serviceExecutors.passthrough.clientsRunning

.. versionadded:: 5.0

Number of clients currently using the ``passthrough`` service
executor to run requests.

.. serverstatus:: network.serviceExecutors.passthrough.clientsWaitingForData

.. versionadded:: 5.0

Number of clients using the ``passthrough`` service executor that are
waiting for incoming data from the network.

.. serverstatus:: network.serviceExecutors.fixed

.. versionadded:: 5.0

A document that reports data about the threads and clients for the
``fixed`` service executor. The ``fixed`` service executor has a
fixed number of threads. A thread is temporarily assigned to a client
and the thread is preserved after the client ends.

.. serverstatus:: network.serviceExecutors.fixed.threadsRunning

.. versionadded:: 5.0

Number of threads running in the ``fixed`` service executor.

.. serverstatus:: network.serviceExecutors.fixed.clientsInTotal

.. versionadded:: 5.0

Total number of clients allocated to the ``fixed`` service executor.
A client can be allocated to the ``fixed`` service executor and not
currently running requests.

.. serverstatus:: network.serviceExecutors.fixed.clientsRunning

.. versionadded:: 5.0

Number of clients currently using the ``fixed`` service executor to
run requests.

.. serverstatus:: network.serviceExecutors.fixed.clientsWaitingForData

.. versionadded:: 5.0

Number of clients using the ``fixed`` service executor that are
waiting for incoming data from the network.

opLatencies
~~~~~~~~~~~

Expand Down
9 changes: 8 additions & 1 deletion source/release-notes/5.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ output:
Read Concern Counters
.. list-table::

* - | :serverstatus:`readConcernCounters`, which tracks
* - | :serverstatus:`readConcernCounters`, which reports on
the :ref:`read concern level <read-concern-levels>`
specified by query operations
(:serverstatus:`readConcernCounters` replaces
Expand All @@ -242,6 +242,13 @@ output:
* - | :serverstatus:`shardingStatistics.resharding`, which
reports statistics about resharding operations

Service Executor Metrics
.. list-table::

* - | :serverstatus:`network.serviceExecutors`, which reports
on the service executors that run operations for client
requests

Additional ``dbStats`` Free Space Statistics
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down