File tree Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,8 @@ that span shards in a cluster. The :dbcommand:`killOp` command from the
62
62
operation to be killed is a write operation.
63
63
64
64
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`.
66
67
67
68
For more information and examples on killing operations on a sharded
68
69
cluster, see:
Original file line number Diff line number Diff line change @@ -87,5 +87,22 @@ the target operation by operation ID.
87
87
88
88
.. include:: /includes/extracts/warning-terminating-ops-method.rst
89
89
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
+
You can’t perform that action at this time.
0 commit comments