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

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

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 8.4.4
    • Annotations
    • None
    • Running in a cluster
    • Easy

    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

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

            Dates

              Created:
              Updated: