1

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 2

2

You may consider using pgPool that allows distribution of SELECT request across a pool of servers.

Sign up to request clarification or add additional context in comments.

Comments

1

PgBouncer efficiently supports both connection pooling and simple load balancing.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.