Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-15113

Annotation's update runs on ever node in cluster after DocumentUpdatedEvent

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 8.4.4
    • Fix Version/s: None
    • Component/s: Annotations
    • Labels:
      None
    • Environment:
      Running in a cluster
    • Difficulty:
      Easy
    • Similar issues:

      Description

      When XWiki is in cluster node, and the content of a page is edited, a DocumentUpdatedEvent is published. When running in a cluster, the DocumentContentAnnotationUpdateListener class on every host will process this message and diff the document content to determine if annotations need to be updated. This is typically minor, but in large document updates which require heavy processing in the char-by-char diff, this can cause elevated CPU consumption across an entire cluster.

      The annotations update only needs to be ran on one host, if I understand it correctly, and thus remote messages could be ignored inDocumentContentAnnotationUpdateListener and prevent performance issues from cascading to the rest of a cluster.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              vtelleria Vincent Telleria
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: