Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-8188

Configurable idle cursor timeout

    • Fully Compatible

      Issue Status as of Mar 17, 2015

      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.

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            chengas123 Ben McCann
            Votes:
            10 Vote for this issue
            Watchers:
            19 Start watching this issue

              Created:
              Updated:
              Resolved: