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

Prevent randomUUID contention on Elasticsearch commands

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.0, 7.10, 8.2
    • Fix Version/s: 7.10-HF11, 8.3
    • Component/s: Elasticsearch

      Description

      It is known that java.util.UUID.randomUUID is slow, part of it is serialized which creates contention when used in concurrence.

      Some call are comming from third parts (mongo, es) others are from Nuxeo code (repository document id, es command id).

      When using large worker pool size the contention is limiting, mostly from the org.nuxeo.elasticsearch.commands.IndexingCommand to generates its id.

      Replacing this id by an atomic long sequence sounds to be working fine and remove the contention.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: