Search code examples
cachingignitegridgain

Collocating cache entries needed for replicated caches with PRIMARY_SYNC & 'CacheConfiguration#readFromBackup' flag to false?


I understand from this that replicated caches can be set to use 'PRIMARY_SYNC' write synchronization mode (the default) and 'CacheConfiguration#readFromBackup' flag can be set to false (true by default) to make Ignite send the request to primary node and get the value from there.

Does that mean that one also needs to correspondingly take care of Collocating cache entries aswell to ensure performance?


Solution

  • Collocation is not needed when query with join is executed against replicated caches. Also the query is always distributed, so readFromBackup doesn't have any affect in this case. Write synchronization mode (PRIMARY_SYNC/FULL_SYNC) affects only writes.