Skip to content

Commit e17f210

Browse files
author
Kay Kim
committed
DOCS-12247: terminate-running-operations
1 parent 4db3ca3 commit e17f210

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

source/reference/command/killOp.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ that span shards in a cluster. The :dbcommand:`killOp` command from the
6262
operation to be killed is a write operation.
6363

6464
For information on how to list sharding operations that are active on a
65-
mongos, see the ``localOps`` parameter in :pipeline:`$currentOp`.
65+
:binary:`~bin.mongos`, see the ``localOps`` parameter in
66+
:pipeline:`$currentOp`.
6667

6768
For more information and examples on killing operations on a sharded
6869
cluster, see:

source/tutorial/terminate-running-operations.txt

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,22 @@ the target operation by operation ID.
8787

8888
.. include:: /includes/extracts/warning-terminating-ops-method.rst
8989

90-
.. related:: To return a list of running operations see
91-
:method:`db.currentOp()`.
90+
Sharded Cluster
91+
````````````````
92+
93+
Starting in MongoDB 4.0, the :dbcommand:`killOp` command can be run on
94+
a :binary:`~bin.mongos` and can kill queries (i.e. read operations)
95+
that span shards in a cluster. The :dbcommand:`killOp` command from the
96+
:binary:`~bin.mongos` does not propagate to the shards when the
97+
operation to be killed is a write operation.
98+
99+
For more information on killing operations on a sharded cluster, see:
100+
101+
- :ref:`kill-read-ops-sharded-cluster`
102+
103+
- :ref:`kill-write-ops-sharded-cluster`
104+
105+
For information on how to list sharding operations that are active on a
106+
:binary:`~bin.mongos`, see the ``localOps`` parameter in
107+
:pipeline:`$currentOp`.
108+

0 commit comments

Comments
 (0)