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

MongoDB server configuration does not supersede client driver config

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Admin
    • Environment:
      mongodb 3.x
    • Service Arch

      mongo clients can override some parameters (e.g "no cursor timeout") resulting in uncontrollable outcomes.

      Example :
      DB perf. can be impacted if the number of opened cursors reaches 4k, this is caused by setting "no cursor timeout" on the client side, unfortunately the later override current value in DB servers

      Due to mongo limitations we cannot prevent a client (via a driver) to override the current server setting (including open/close explicit cursors), the alternative we have adopted for now is to alert & detect:

      1- Setup an alert for all parameters susceptible of causing perf. issues in DB
      Note: Alert(s) thresholds have been revised and values have been lowered in order to have enough room for action | e.g cursor threshold is 50

      2- Isolate offending clients by providing IP address and checking for any driver config update (DBA > through logs and/or mongo shell commands)

      The option cited above (#1 & #2) is just a temporary measure as we would like to see more flexibility from the DB and back end side.

            Assignee:
            backlog-server-servicearch [DO NOT USE] Backlog - Service Architecture
            Reporter:
            asahraoui@elance.com Amine Sahraoui
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: