]
Tristan Tarrant updated ISPN-7641:
----------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
Do not use the Triangle when in server mode
-------------------------------------------
Key: ISPN-7641
URL:
https://issues.jboss.org/browse/ISPN-7641
Project: Infinispan
Issue Type: Enhancement
Components: Server
Affects Versions: 9.0.0.CR2
Reporter: Pedro Ruivo
Assignee: Pedro Ruivo
Labels: performance
Fix For: 9.0.0.CR4, 9.0.0.Final
The triangle algorithm optimizes the scenario where the originator is not the primary
owner of key, by sending ordered update from the primary to the backup.
Current implementation orders the updates by segments and if 2 or more keys in the same
segment are updated concurrently, they must be updated in the backup sequential by the
same order (safety condition, keeps the data consistent).
This approach has a negative impact in the scenario where the originator is the primary
owner. However, in server mode (more precise in hot rod protocol), the clients connect
directly to the primary owner of a key. This leads to a performance degradation with the
triangle.
Using the old algorithm only in server mode brings the performance back to normal.