0
私はそれがスレーブの読みくださいシームレスなデータベースプールのスレーブデータベースをデフォルトとして読み込む方法を教えてください。
development:
adapter: jdbcmysql
database: mydb_development
username: read_user
password: abc123
pool_adapter: jdbcmysql
port: 3306
master:
host: master-db.example.com
port: 6000
username: master_user
password: 567pass
read_pool:
- host: read-db-1.example.com
pool_weight: 2
- host: read-db-2.example.com
シームレスな宝石に問題がある右[read-db-1.example.com]?それは奇妙だった..それは常にマスターデータベース[mydb_development]に読んだ。
あなたはどのように私はこの宝石をデフォルトのリード・スレーブ・データベース用に構成する必要がありますか?
が