[JAVA-241] driver has a bunch of hardcoded timing settings that many customers want to tweak Created: 21/Dec/10  Updated: 17/Mar/11  Resolved: 16/Feb/11

Status: Closed
Project: Java Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 2.5

Type: Improvement Priority: Major - P3
Reporter: Antoine Girbal Assignee: Antoine Girbal
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

even if it's not officially supported behavior, right now we have some kind of logic based on certain timing.
This should be changeable.



 Comments   
Comment by auto [ 16/Feb/11 ]

Author:

{u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'}

Message: JAVA-241: driver has a bunch of hardcoded timing settings that many customers want to tweak
https://github.com/mongodb/mongo-java-driver/commit/bda4c0638dc3e21128125354d292ee1877cff8aa

Comment by Antoine Girbal [ 16/Feb/11 ]

com.mongodb.updaterIntervalMS=5000
com.mongodb.slaveAcceptableLatencyMS=15
com.mongodb.updaterConnectTimeoutMS=20000
com.mongodb.updaterSocketTimeoutMS=20000

Some other settings will be available through URI options.

Comment by Eliot Horowitz (Inactive) [ 23/Dec/10 ]

Ok, makes sense.

Comment by Antoine Girbal [ 22/Dec/10 ]

Makes sense to add to -D properties for now.
Then we can concert effort and decide what we want to officially support in driver.

So far the settings needed, going from 1 large customer's needs:

  • updater thread interval in sec (ability to turn off) - now is 5s
  • slave selection latency group (select randomly a slave within the closest ones, closest being within N ms of best) - now is 15ms
  • timeout for server test - now is 20s
  • timeout for inactive connection in pool
Comment by Eliot Horowitz (Inactive) [ 21/Dec/10 ]

I don't want to put these in MongoOptions.
-D configurable options might be ok

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