instacart / makara

A Read-Write Proxy for Connections; Also provides an ActiveRecord adapter.

Home Page:http://tech.taskrabbit.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple Databases, Separate YAML File

MatTarantini opened this issue · comments

Bit of context: we have 2 separate databases. A Primary DB that only contains data from an AWS Region, and a Global DB which contains data that is shared across all AWS Regions. The Primary DB config goes in database.yml and the Global DB config goes in database_global.yml.

The Primary DB master/slave config with Makara in database.yml works great, but the config in database_global.yml isn't working. Is it that Makara doesn't know to check the database_global.yml config file like it does with database.yml? If so, is there a way to make it aware of the config file? Otherwise, is there any additional configuration we should be adding or something we're missing here?

Let me know if I can provide any more info.

commented

Adding to this