|
1 |
| -.. code-block:: javascript |
2 | 1 |
|
3 |
| - { |
4 |
| - "inprog": [ |
5 |
| - { |
6 |
| - "desc" : <string>, |
7 |
| - "threadId" : <string>, |
8 |
| - "connectionId" : <number>, |
9 |
| - "client" : <string>, |
10 |
| - "appName" : <string>, |
11 |
| - "opid" : <number>, |
12 |
| - "active" : <boolean>, |
13 |
| - "secs_running" : <NumberLong()>, |
14 |
| - "microsecs_running" : <number>, |
15 |
| - "op" : <string>, |
16 |
| - "ns" : <string>, |
17 |
| - "query" : <document>, |
18 |
| - "insert" : <document>, |
19 |
| - "planSummary": <string>, |
20 |
| - "appName" : <string>, |
21 |
| - "msg": <string>, |
22 |
| - "progress" : { |
23 |
| - "done" : <number>, |
24 |
| - "total" : <number> |
25 |
| - }, |
26 |
| - "killPending" : <boolean>, |
27 |
| - "numYields" : <number>, |
28 |
| - "locks" : { |
29 |
| - "Global" : <string>, |
30 |
| - "MMAPV1Journal" : <string>, |
31 |
| - "Database" : <string>, |
32 |
| - "Collection" : <string>, |
33 |
| - "Metadata" : <string>, |
34 |
| - "oplog" : <string> |
35 |
| - }, |
36 |
| - "waitingForLock" : <boolean>, |
37 |
| - "lockStats" : { |
38 |
| - "Global": { |
39 |
| - "acquireCount": { |
40 |
| - "r": <NumberLong>, |
41 |
| - "w": <NumberLong>, |
42 |
| - "R": <NumberLong>, |
43 |
| - "W": <NumberLong> |
44 |
| - }, |
45 |
| - "acquireWaitCount": { |
46 |
| - "r": <NumberLong>, |
47 |
| - "w": <NumberLong>, |
48 |
| - "R": <NumberLong>, |
49 |
| - "W": <NumberLong> |
50 |
| - }, |
51 |
| - "timeAcquiringMicros" : { |
52 |
| - "r" : NumberLong(0), |
53 |
| - "w" : NumberLong(0), |
54 |
| - "R" : NumberLong(0), |
55 |
| - "W" : NumberLong(0) |
56 |
| - }, |
57 |
| - "deadlockCount" : { |
58 |
| - "r" : NumberLong(0), |
59 |
| - "w" : NumberLong(0), |
60 |
| - "R" : NumberLong(0), |
61 |
| - "W" : NumberLong(0) |
62 |
| - } |
63 |
| - }, |
64 |
| - "MMAPV1Journal": { |
65 |
| - ... |
66 |
| - }, |
67 |
| - "Database" : { |
68 |
| - ... |
69 |
| - }, |
70 |
| - ... |
71 |
| - } |
72 |
| - }, |
73 |
| - ... |
74 |
| - ], |
75 |
| - "fsyncLock": <boolean>, |
76 |
| - "info": <string> |
77 |
| - } |
| 2 | +.. tabs:: |
| 3 | + |
| 4 | + tabs: |
| 5 | + |
| 6 | + - id: standalone |
| 7 | + name: Standalone |
| 8 | + content: | |
| 9 | + |
| 10 | + The following is a prototype of the :dbcommand:`currentOp` |
| 11 | + output when run on a standalone: |
| 12 | + |
| 13 | + .. code-block:: javascript |
| 14 | +
|
| 15 | + { |
| 16 | + "inprog": [ |
| 17 | + { |
| 18 | + "desc" : <string>, |
| 19 | + "threadId" : <string>, |
| 20 | + "connectionId" : <number>, |
| 21 | + "client" : <string>, |
| 22 | + "appName" : <string>, |
| 23 | + "clientMetadata" : <document>, |
| 24 | + "active" : <boolean>, |
| 25 | + "opid" : <number>, |
| 26 | + "secs_running" : <NumberLong()>, |
| 27 | + "microsecs_running" : <number>, |
| 28 | + "op" : <string>, |
| 29 | + "ns" : <string>, |
| 30 | + "query" : <document>, |
| 31 | + "insert" : <document>, |
| 32 | + "originatingCommand" : <document>, |
| 33 | + "planSummary": <string>, |
| 34 | + "msg": <string>, |
| 35 | + "progress" : { |
| 36 | + "done" : <number>, |
| 37 | + "total" : <number> |
| 38 | + }, |
| 39 | + "killPending" : <boolean>, |
| 40 | + "numYields" : <number>, |
| 41 | + "locks" : { |
| 42 | + "Global" : <string>, |
| 43 | + "MMAPV1Journal" : <string>, |
| 44 | + "Database" : <string>, |
| 45 | + "Collection" : <string>, |
| 46 | + "Metadata" : <string>, |
| 47 | + "oplog" : <string> |
| 48 | + }, |
| 49 | + "waitingForLock" : <boolean>, |
| 50 | + "lockStats" : { |
| 51 | + "Global": { |
| 52 | + "acquireCount": { |
| 53 | + "r": <NumberLong>, |
| 54 | + "w": <NumberLong>, |
| 55 | + "R": <NumberLong>, |
| 56 | + "W": <NumberLong> |
| 57 | + }, |
| 58 | + "acquireWaitCount": { |
| 59 | + "r": <NumberLong>, |
| 60 | + "w": <NumberLong>, |
| 61 | + "R": <NumberLong>, |
| 62 | + "W": <NumberLong> |
| 63 | + }, |
| 64 | + "timeAcquiringMicros" : { |
| 65 | + "r" : NumberLong(0), |
| 66 | + "w" : NumberLong(0), |
| 67 | + "R" : NumberLong(0), |
| 68 | + "W" : NumberLong(0) |
| 69 | + }, |
| 70 | + "deadlockCount" : { |
| 71 | + "r" : NumberLong(0), |
| 72 | + "w" : NumberLong(0), |
| 73 | + "R" : NumberLong(0), |
| 74 | + "W" : NumberLong(0) |
| 75 | + } |
| 76 | + }, |
| 77 | + "MMAPV1Journal": { |
| 78 | + ... |
| 79 | + }, |
| 80 | + "Database" : { |
| 81 | + ... |
| 82 | + }, |
| 83 | + ... |
| 84 | + } |
| 85 | + }, |
| 86 | + ... |
| 87 | + ], |
| 88 | + "fsyncLock": <boolean>, |
| 89 | + "info": <string>, |
| 90 | + "ok": 1 |
| 91 | + } |
| 92 | +
|
| 93 | + - id: repl |
| 94 | + name: Replica Set (Primary) |
| 95 | + content: | |
| 96 | + |
| 97 | + The following is a prototype of the :dbcommand:`currentOp` |
| 98 | + output when run on a primary of a replica set: |
| 99 | + |
| 100 | + .. code-block:: javascript |
| 101 | +
|
| 102 | + { |
| 103 | + "inprog": [ |
| 104 | + { |
| 105 | + "desc" : <string>, |
| 106 | + "threadId" : <string>, |
| 107 | + "connectionId" : <number>, |
| 108 | + "client" : <string>, |
| 109 | + "appName" : <string>, |
| 110 | + "clientMetadata" : <document>, |
| 111 | + "active" : <boolean>, |
| 112 | + "opid" : <number>, |
| 113 | + "secs_running" : <NumberLong()>, |
| 114 | + "microsecs_running" : <number>, |
| 115 | + "op" : <string>, |
| 116 | + "ns" : <string>, |
| 117 | + "query" : <document>, |
| 118 | + "insert" : <document>, |
| 119 | + "originatingCommand" : <document>, |
| 120 | + "planSummary": <string>, |
| 121 | + "msg": <string>, |
| 122 | + "progress" : { |
| 123 | + "done" : <number>, |
| 124 | + "total" : <number> |
| 125 | + }, |
| 126 | + "killPending" : <boolean>, |
| 127 | + "numYields" : <number>, |
| 128 | + "locks" : { |
| 129 | + "Global" : <string>, |
| 130 | + "MMAPV1Journal" : <string>, |
| 131 | + "Database" : <string>, |
| 132 | + "Collection" : <string>, |
| 133 | + "Metadata" : <string>, |
| 134 | + "oplog" : <string> |
| 135 | + }, |
| 136 | + "waitingForLock" : <boolean>, |
| 137 | + "lockStats" : { |
| 138 | + "Global": { |
| 139 | + "acquireCount": { |
| 140 | + "r": <NumberLong>, |
| 141 | + "w": <NumberLong>, |
| 142 | + "R": <NumberLong>, |
| 143 | + "W": <NumberLong> |
| 144 | + }, |
| 145 | + "acquireWaitCount": { |
| 146 | + "r": <NumberLong>, |
| 147 | + "w": <NumberLong>, |
| 148 | + "R": <NumberLong>, |
| 149 | + "W": <NumberLong> |
| 150 | + }, |
| 151 | + "timeAcquiringMicros" : { |
| 152 | + "r" : NumberLong(0), |
| 153 | + "w" : NumberLong(0), |
| 154 | + "R" : NumberLong(0), |
| 155 | + "W" : NumberLong(0) |
| 156 | + }, |
| 157 | + "deadlockCount" : { |
| 158 | + "r" : NumberLong(0), |
| 159 | + "w" : NumberLong(0), |
| 160 | + "R" : NumberLong(0), |
| 161 | + "W" : NumberLong(0) |
| 162 | + } |
| 163 | + }, |
| 164 | + "MMAPV1Journal": { |
| 165 | + ... |
| 166 | + }, |
| 167 | + "Database" : { |
| 168 | + ... |
| 169 | + }, |
| 170 | + ... |
| 171 | + } |
| 172 | + }, |
| 173 | + ... |
| 174 | + ], |
| 175 | + "fsyncLock": <boolean>, |
| 176 | + "info": <string>, |
| 177 | + "ok": 1 |
| 178 | + } |
| 179 | +
|
| 180 | + - id: shardedcluster |
| 181 | + name: Sharded Cluster (mongos) |
| 182 | + content: | |
| 183 | + |
| 184 | + The following is a prototype of the :dbcommand:`currentOp` |
| 185 | + output when run on a :binary:`~bin.mongos` of a sharded |
| 186 | + cluster: |
| 187 | + |
| 188 | + .. code-block:: javascript |
| 189 | +
|
| 190 | + { |
| 191 | + "raw" : { |
| 192 | + <shard1>/<host>... : { |
| 193 | + "inprog": [ |
| 194 | + { |
| 195 | + "desc" : <string>, |
| 196 | + "threadId" : <string>, |
| 197 | + "connectionId" : <number>, |
| 198 | + "client" : <string>, |
| 199 | + "appName" : <string>, |
| 200 | + "clientMetadata" : <document>, |
| 201 | + "active" : <boolean>, |
| 202 | + "opid" : <number>, |
| 203 | + "secs_running" : <NumberLong()>, |
| 204 | + "microsecs_running" : <number>, |
| 205 | + "op" : <string>, |
| 206 | + "ns" : <string>, |
| 207 | + "query" : <document>, |
| 208 | + "insert" : <document>, |
| 209 | + "originatingCommand" : <document>, |
| 210 | + "planSummary": <string>, |
| 211 | + "msg": <string>, |
| 212 | + "progress" : { |
| 213 | + "done" : <number>, |
| 214 | + "total" : <number> |
| 215 | + }, |
| 216 | + "killPending" : <boolean>, |
| 217 | + "numYields" : <number>, |
| 218 | + "locks" : { |
| 219 | + "Global" : <string>, |
| 220 | + "Database" : <string>, |
| 221 | + "Collection" : <string>, |
| 222 | + "Metadata" : <string>, |
| 223 | + "oplog" : <string> |
| 224 | + }, |
| 225 | + "waitingForLock" : <boolean>, |
| 226 | + "lockStats" : { |
| 227 | + "Global": { |
| 228 | + "acquireCount": { |
| 229 | + "r": <NumberLong>, |
| 230 | + "w": <NumberLong>, |
| 231 | + "R": <NumberLong>, |
| 232 | + "W": <NumberLong> |
| 233 | + }, |
| 234 | + "acquireWaitCount": { |
| 235 | + "r": <NumberLong>, |
| 236 | + "w": <NumberLong>, |
| 237 | + "R": <NumberLong>, |
| 238 | + "W": <NumberLong> |
| 239 | + }, |
| 240 | + "timeAcquiringMicros" : { |
| 241 | + "r" : NumberLong(0), |
| 242 | + "w" : NumberLong(0), |
| 243 | + "R" : NumberLong(0), |
| 244 | + "W" : NumberLong(0) |
| 245 | + }, |
| 246 | + "deadlockCount" : { |
| 247 | + "r" : NumberLong(0), |
| 248 | + "w" : NumberLong(0), |
| 249 | + "R" : NumberLong(0), |
| 250 | + "W" : NumberLong(0) |
| 251 | + } |
| 252 | + }, |
| 253 | + "Database" : { |
| 254 | + ... |
| 255 | + }, |
| 256 | + ... |
| 257 | + } |
| 258 | + }, |
| 259 | + ... |
| 260 | + ], |
| 261 | + "ok" : <number>, |
| 262 | + "$gleStats": <document> |
| 263 | + } |
| 264 | + }, |
| 265 | + <shard2>/<host>... : { |
| 266 | + "inprog": [ |
| 267 | + ... |
| 268 | + ], |
| 269 | + "ok" : <number>, |
| 270 | + "$gleStats": <document> |
| 271 | + } |
| 272 | + }, |
| 273 | + "inprog" : [ |
| 274 | + { |
| 275 | + "desc" : <string>, |
| 276 | + "threadId" : <string>, |
| 277 | + "connectionId" : <number>, |
| 278 | + "client_s" : <string>, |
| 279 | + "active" : true, |
| 280 | + "opid" : <string>. // format <shardname>:id |
| 281 | +
|
| 282 | + ... |
| 283 | +
|
| 284 | + ], |
| 285 | + "ok" : 1 |
| 286 | + } |
0 commit comments