Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-29111

Allow full configuration of MongoDB connection

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.10-HF27, 11.1, 2021.0
    • Component/s: Core MongoDB
    • Release Notes Summary:
      New properties are exposed to configure MongoDB connections.
    • Tags:
    • Impact type:
      Configuration Change
    • Upgrade notes:
      Hide

      To contribute options to MongoDB one can now use the following syntax:

        <extension target="org.nuxeo.runtime.mongodb.MongoDBComponent" point="connection">
          <connection id="default">
            <property name="requiredReplicaSetName">myreplicaset</property>
            <property name="readPreference">primary</property>
            <property name="readConcern">majority</property>
            <property name="writeConcern">majority</property>
          </connection>
        </extension>
      

      The properties that can be used are those of the MongoClientOptions.Builder class.

      Show
      To contribute options to MongoDB one can now use the following syntax: <extension target= "org.nuxeo.runtime.mongodb.MongoDBComponent" point= "connection" > <connection id= "default" > <property name= "requiredReplicaSetName" > myreplicaset </property> <property name= "readPreference" > primary </property> <property name= "readConcern" > majority </property> <property name= "writeConcern" > majority </property> </connection> </extension> The properties that can be used are those of the MongoClientOptions.Builder class.
    • Team:
      FG
    • Sprint:
      nxFG 11.1.13
    • Story Points:
      2

      Description

      Allow full configuration of all possible options of a MongoDB connection from the XML contributions. Previously the connection could only be configured through the mongodb:// connection URL.

      The extension point for MongoDB connection configuration should also support merge, for easy update.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.