[SERVER-11021] cache dbhash results in mongod for config. collections Created: 03/Oct/13  Updated: 11/Jul/16  Resolved: 04/Oct/13

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 2.4.7, 2.5.3

Type: Improvement Priority: Major - P3
Reporter: Eliot Horowitz (Inactive) Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Participants:

 Description   
Issue Status as of November 26th, 2013

ISSUE SUMMARY
Cache results of dbhash command for config collections.

USER IMPACT
When multiple mongos instances issue the dbhash command simultaneously, config database can be overloaded and affect performance.
It is present in versions of MongoDB prior to and including v2.4.6.

SOLUTION
Cache dbhash commands on the server.

WORKAROUNDS
This is a performance improvement only.

PATCHES
Production release v2.4.7 contains the fix for this issue, and production release v2.6.0 will contain the fix as well.

Original Description

This will mitigate having lots of mongos doing hashes at the same time.



 Comments   
Comment by auto [ 06/Oct/13 ]

Author:

{u'username': u'IanWhalen', u'name': u'Ian Whalen', u'email': u'ian@mongodb.com'}

Message: SERVER-11021 skip dbhash2.js during sharding_passthrough
Branch: v2.4
https://github.com/mongodb/mongo/commit/874b42c4a70ab9eea507afbff0dda6d4faa9ebf0

Comment by auto [ 05/Oct/13 ]

Author:

{u'username': u'IanWhalen', u'name': u'Ian Whalen', u'email': u'ian@mongodb.com'}

Message: SERVER-11021 skip dbhash2.js during sharding_passthrough
Branch: master
https://github.com/mongodb/mongo/commit/4a075b087bb93598413bd99cc6cba75c313e1bef

Comment by auto [ 04/Oct/13 ]

Author:

{u'username': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: SERVER-11021: backport to 2.4
Branch: v2.4
https://github.com/mongodb/mongo/commit/577fe667c612de137251b34f96535e3afc9ad4bb

Comment by auto [ 03/Oct/13 ]

Author:

{u'username': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: SERVER-11021: add pragma once to header
Branch: master
https://github.com/mongodb/mongo/commit/61279ce0ba766a181748125d1a8dd48cec0a1d1b

Comment by auto [ 03/Oct/13 ]

Author:

{u'username': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: SERVER-11021: add header file
Branch: master
https://github.com/mongodb/mongo/commit/fe65e214eb4c230c3a55f4a2744a8d9bd1517bcd

Comment by auto [ 03/Oct/13 ]

Author:

{u'username': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: SERVER-11021: cache dbhash results in mongod for config. collections
Branch: master
https://github.com/mongodb/mongo/commit/5b74302fb716ed3ee812a008d4341a3c4355299d

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