How can I tell if connections are being routed to the reader node? #986
-
| I have all classes that have a Spring JPA repo injected tagged w/  I can see the driver is introspecting the topology and finding the writer and reader nodes: But I also see logs like this, which seem to indicate that it isn't routing to the reader node: I have loggers turned up in  spring:
  datasource:
    driver-class-name: software.amazon.jdbc.Driver
    hikari:
      data-source-properties:
        keepSessionStateOnFailover: true
      exception-override-class-name: software.amazon.jdbc.util.HikariCPSQLException
logging.level:
  software.amazon.jdbc: trace
  software.amazon.jdbc.plugin.DefaultConnectionPlugin: debug
  com.zaxxer.hikari: trace
  com.mysql: trace
  org.springframework.data.jpa: debugHow can I verify that my read-only transactions are going to the reader node? | 
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
| Figured it out. I needed to enable the  
 However, now it isn't connecting to the reader node.  | 
Beta Was this translation helpful? Give feedback.
-
| Hi @efenderbosch-atg, are you able to connect successfully to the reader instance endpoint  | 
Beta Was this translation helpful? Give feedback.
Figured it out. I needed to enable the
readWriteSplittingalong w/ the default plugins.spring.datasource.hikari.data-source-properties.wrapperPlugins=readWriteSplitting,auroraConnectionTracker,failover,efm2However, now it isn't connecting to the reader node.