How to Configure Read Replica #3659
Replies: 1 comment 7 replies
-
|
Refer: https://ebean.io/docs/read-replicas/ Specifying Note that if an application is not using the ebean datasource, and instead using something like Hikari, then that application needs to specify a separate DataSource. Note that is the application wants to specify different min/max connections for the read replica connection pool, then it should use the DataSourceBuilder instead via: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have been successfully using a read replica with Play Framework 2.7 for years. I am upgrading to Play Framework 2.9 and Ebean 15.1.0 with Play Ebean Plugin 7.3.0.
I have tried two different configurations and with both of them, the default database is recognized and used, but the read replica is not. Here are my two attempts:
Here is a link to the documentation that shows the 'readOnlyUrl' property in the configuration.
https://github.com/ebean-orm/ebean-datasource/blob/master/ebean-datasource-api/src/main/java/io/ebean/datasource/DataSourceConfig.java#L719
Please advise on the proper way to configure a read replica.
Beta Was this translation helpful? Give feedback.
All reactions