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

Elasticsearch Audit should not rely on sequence for logentry id

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 7.10, 8.2
    • Fix Version/s: QualifiedToSchedule
    • Component/s: Audit

      Description

      The cost of an external sequence for the an entry id is high.

      It is commons to log hundreds of events in a row, this create an ES bulk insert command but each entry need an id cost hudnreds of roundtrip with ES (or Redis depending on the sequence impl).

      A fist step is to see how much we rely on logentry id to be sequence.

      The possible solution are:

      • using an uuid
      • rely on ES automatic id generation
      • use a timestamp + Nuxeo node id
      • extend sequence service to reserve block of sequence
        ...

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: