I want to make a master/slave setup on my postgresql servers. My problem is how I can get queries from my rails app balanced to the databases? I can't use a gem like Octopus, because it collides with my use of the Apartment gem (both modifies ActiveRecord) inspired by this rails cast. Does anyone know of a way to load balance outside the rails app?
2 Answers
You may consider using pgPool that allows distribution of SELECT request across a pool of servers.