[SERVER-8383] Make mongos poll less aggressively for cursor timeout Created: 29/Jan/13  Updated: 11/Jul/16  Resolved: 22/Mar/13

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 2.5.0

Type: Improvement Priority: Minor - P4
Reporter: Greg Studer Assignee: Greg Studer
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

Change polling timeout for mongos cursors from 400ms to 4000ms (4s, matching the mongod cursor polling timeout) (see s/cursors.cpp).

Mongos looks at all the open cursors and determines candidates for timeout every 400ms - this seems fairly aggressive since cursors time out after about 10 minutes and might unnecessarily take resources if lots of cursors are open. We could probably increase the polling period significantly.



 Comments   
Comment by auto [ 22/Mar/13 ]

Author:

{u'date': u'2013-03-20T21:19:36Z', u'name': u'Greg Studer', u'email': u'greg@10gen.com'}

Message: SERVER-8383 make mongos cursor timeout polling same as mongod (4s)
Branch: master
https://github.com/mongodb/mongo/commit/70e098ac3ed67c597db05cb14b5e8b7aefdd2b47

Generated at Thu Feb 08 03:17:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.