aws-mysql-jdbc icon indicating copy to clipboard operation
aws-mysql-jdbc copied to clipboard

[WIP] Add configuration option to load balance reader transactions

Open congoamz opened this issue 3 years ago • 0 comments

Summary

Add configuration option to load balance reader transactions

Description

  • If reader load balancing is enabled and setReadOnly(true) has been called, the ReadWriteSplittingPlugin will switch reader connections at transaction boundaries
  • Load balancing is performed by randomly selecting new reader hosts
  • Also added a connection cache in the ReadWriteSplittingPlugin to avoid performance penalty for regular reader switching

Additional Reviewers

congoamz avatar Aug 16 '22 18:08 congoamz