Details
-
Improvement
-
Resolution: Unresolved
-
Major
-
None
-
8.4.4
-
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.