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

Extend cluster-wide lock to Workflow model import

    Details

    • Release Notes Summary:
      Workflow model import uses a cluster-wide lock.
    • Tags:
    • Backlog priority:
      750
    • Impact type:
      Configuration Change
    • Upgrade notes:
      Hide

      In cluster mode, the worfklows are initialized non-concurrently in a cluster-wide critical section.

      When a cluster node attempts to initialize its workflows and another node is already doing the same thing, it will wait for 1 min for the cluster-wide lock to be released and do its own initialization. If this timeout expires, then initialization fails with an exception.

      The following nuxeo.conf properties can be used to change this timeout:

      org.nuxeo.workflow.cluster.start.duration=1m
      

      In case where there's a startup crash while a lock is held, it may be necessary to manually cleanup the key/value store of its lock. The key corresponding to the lock is visible when using Redis with KEYS nuxeo:cluster:*, in this case nuxeo:cluster:start-workflows-default for the initialization of the workflows of the default repository. For a MongoDB key/value store, the keys are stored in the collection kv.cluster

      Show
      In cluster mode, the worfklows are initialized non-concurrently in a cluster-wide critical section. When a cluster node attempts to initialize its workflows and another node is already doing the same thing, it will wait for 1 min for the cluster-wide lock to be released and do its own initialization. If this timeout expires, then initialization fails with an exception. The following nuxeo.conf properties can be used to change this timeout: org.nuxeo.workflow.cluster.start.duration=1m In case where there's a startup crash while a lock is held, it may be necessary to manually cleanup the key/value store of its lock. The key corresponding to the lock is visible when using Redis with KEYS nuxeo:cluster:* , in this case nuxeo:cluster:start-workflows-default for the initialization of the workflows of the default repository. For a MongoDB key/value store, the keys are stored in the collection  kv.cluster

      Description

      Currently, when starting several Nuxeo nodes simultaneously, several workflow definitions are created/imported at the same time. The consequence is that an end-user will see several times the same workflow models in Nuxeo

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                3 Vote for this issue
                Watchers:
                5 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 - 4 hours
                  4h

                    PagerDuty

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