[SERVER-9813] Provide an optional "note" field to connections which can be displayed in db.currentOp(true) Created: 30/May/13 Updated: 06/Dec/22 Resolved: 25/Oct/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Diagnostics |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | David Hows | Assignee: | Backlog - Storage Execution Team |
| Resolution: | Duplicate | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Assigned Teams: |
Storage Execution
|
||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
Have the option to pass client application names or other identifiers to MongoD which can be displayed in output from commands like db.currenOp(true) Having the ability to ID a given client directly by a passed identifier is valuable when doing auditing of client connections. This can remove the need to track back by IP/port to find a connection originating at a given host. |
| Comments |
| Comment by Asya Kamsky [ 28/Oct/16 ] | ||||||||||||||||||||||||||||||||
|
Closing as Example of db.currentOp() output:
Initial connection in MongoDB logs provides additional information:
| ||||||||||||||||||||||||||||||||
| Comment by Asya Kamsky [ 25/Oct/16 ] | ||||||||||||||||||||||||||||||||
|
Resolving as duplicate of See | ||||||||||||||||||||||||||||||||
| Comment by Edouard Servan-Schreiber [ 12/Jun/13 ] | ||||||||||||||||||||||||||||||||
|
Comment from a customer choosing to remain anonymous: | ||||||||||||||||||||||||||||||||
| Comment by Eliot Horowitz (Inactive) [ 30/May/13 ] | ||||||||||||||||||||||||||||||||
|
Not sure how useful it will really be given its totally spoofable. | ||||||||||||||||||||||||||||||||
| Comment by David Hows [ 30/May/13 ] | ||||||||||||||||||||||||||||||||
|
There are two ways that have been suggested to approach this. One suggested implementation was to make all connections require a sensible default, such as the invoking applications name and PID. This way all connections have a reasonable value if none is specified. Another suggestion was to have a command run by a given driver to set this optional field. |