ISSUE SUMMARY
Client cursors that are no longer used may not be closed by the server. These cursors continue to consume resources inside mongod. By default, inactive cursors expire after 10 minutes, this option makes it possible to configure this timeout.
RESOLUTION DETAILS
By specifing the cursorTimeoutMillis option, administrators can configure mongod or mongos to automatically remove idle client cursors after a specified interval. The timeout applies to all cursors maintained on a mongod or mongos, may be specified when starting the mongod or mongos and may be modified at any time using the setParameter command. Consider the following examples.
On startup:
mongod --setParameter cursorTimeoutMillis=<num>
or:
mongos --setParameter cursorTimeoutMillis=<num>
During operation, using the mongo shell:
use admin db.runCommand({setParameter:1, cursorTimeoutMillis: <num>})
Original description
The only options for timeout are 10 minutes or disabled. It would be very nice to be able to set this to other lengths of time.
- related to
-
SERVER-15042 Add noCursorTimeout option to command cursors
- Closed
-
SERVER-6036 Disable cursor timeout for cursors that belong to a session
- Closed