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

Update mongodb template to handle KeyValueStore and LockManager

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.3
    • Component/s: Core MongoDB
    • Release Notes Description:
      Hide

      When using the mongodb template, the KeyValueStore and LockManager now rely on MongoDB by default.

      Show
      When using the mongodb template, the KeyValueStore and LockManager now rely on MongoDB by default.
    • Upgrade notes:
      Hide

      Since 10.3 the mongodb template set the implementation of the keyValueStore and LockManager to MongoDB.

      If you want to keep or use a Redis implementation you need to be explicit in your nuxeo.conf:

      nuxeo.keyvalue.provider=redis
      nuxeo.lock.manager=redis
      
      Show
      Since 10.3 the mongodb template set the implementation of the keyValueStore and LockManager to MongoDB. If you want to keep or use a Redis implementation you need to be explicit in your nuxeo.conf: nuxeo.keyvalue.provider=redis nuxeo.lock.manager=redis
    • Sprint:
      nxcore 10.3.4
    • Story Points:
      1

      Description

      To switch from Redis to MongoDB implementation of the KeyValueStore there is a contribution to add.

        <extension target="org.nuxeo.runtime.kv.KeyValueService" point="configuration">
          <store name="default" class="org.nuxeo.ecm.core.mongodb.kv.MongoDBKeyValueStore">
            <property name="collection">kv</property>
          </store>
        </extension>
      

      This should be part of mongodb template and enable if

      nuxeo.keyvalue.provider=mongodb
      

      This should be the default when choosing mongodb template.

      Same for the lock manager implementation

      nuxeo.lock.manager=mongodb
      

      The lockmanager is by default done with the repository implementation, the important thing is to change `nuxeo.lock.manager` so it is not set to `redis`.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours
                  2h